{"action":"created","issue":{"url":"https://api.github.com/repos/dlang/druntime/issues/2172","repository_url":"https://api.github.com/repos/dlang/druntime","labels_url":"https://api.github.com/repos/dlang/druntime/issues/2172/labels{/name}","comments_url":"https://api.github.com/repos/dlang/druntime/issues/2172/comments","events_url":"https://api.github.com/repos/dlang/druntime/issues/2172/events","html_url":"https://github.com/dlang/druntime/pull/2172","id":319773016,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg1NjA2NjE2","number":2172,"title":"Fix Issue 18068 - No file names and line numbers in stack trace","user":{"login":"wilzbach","id":4370550,"node_id":"MDQ6VXNlcjQzNzA1NTA=","avatar_url":"https://avatars3.githubusercontent.com/u/4370550?v=4","gravatar_id":"","url":"https://api.github.com/users/wilzbach","html_url":"https://github.com/wilzbach","followers_url":"https://api.github.com/users/wilzbach/followers","following_url":"https://api.github.com/users/wilzbach/following{/other_user}","gists_url":"https://api.github.com/users/wilzbach/gists{/gist_id}","starred_url":"https://api.github.com/users/wilzbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilzbach/subscriptions","organizations_url":"https://api.github.com/users/wilzbach/orgs","repos_url":"https://api.github.com/users/wilzbach/repos","events_url":"https://api.github.com/users/wilzbach/events{/privacy}","received_events_url":"https://api.github.com/users/wilzbach/received_events","type":"User","site_admin":false},"labels":[{"id":537492854,"node_id":"MDU6TGFiZWw1Mzc0OTI4NTQ=","url":"https://api.github.com/repos/dlang/druntime/labels/Bug%20Fix","name":"Bug Fix","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-05-03T02:49:36Z","updated_at":"2018-06-08T22:31:49Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/dlang/druntime/pulls/2172","html_url":"https://github.com/dlang/druntime/pull/2172","diff_url":"https://github.com/dlang/druntime/pull/2172.diff","patch_url":"https://github.com/dlang/druntime/pull/2172.patch"},"body":"Turns out all that changed was PIE and the addresses with ASLR.\n\nExample:\n\n```d\nimport std.exception;\nvoid main() {\n    enforce(0);\n}\n```\n\nSo we finally get our line number back in the stack trace on Linux:\n\n```\n> dmddev -g hello.d && ./hello\n/home/seb/dlang/dmd/generated/linux/release/64/../../../../../phobos/std/exception.d:515 pure @safe void std.exception.bailOut!(Exception).bailOut(immutable(char)[], ulong, const(char[])) [0x555869fe]\n/home/seb/dlang/dmd/generated/linux/release/64/../../../../../phobos/std/exception.d:436 pure @safe int std.exception.enforce!().enforce!(int).enforce(int, lazy const(char)[], immutable(char)[], ulong) [0x55586979]\nhello.d:3 _Dmain [0x555868f7]\n```\n\nCC @JinShil @ZombineDev\n\nThis is a PoC because I'm not sure on the best way to get the base offset of the binary."},"comment":{"url":"https://api.github.com/repos/dlang/druntime/issues/comments/395909665","html_url":"https://github.com/dlang/druntime/pull/2172#issuecomment-395909665","issue_url":"https://api.github.com/repos/dlang/druntime/issues/2172","id":395909665,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTkwOTY2NQ==","user":{"login":"JinShil","id":6023641,"node_id":"MDQ6VXNlcjYwMjM2NDE=","avatar_url":"https://avatars1.githubusercontent.com/u/6023641?v=4","gravatar_id":"","url":"https://api.github.com/users/JinShil","html_url":"https://github.com/JinShil","followers_url":"https://api.github.com/users/JinShil/followers","following_url":"https://api.github.com/users/JinShil/following{/other_user}","gists_url":"https://api.github.com/users/JinShil/gists{/gist_id}","starred_url":"https://api.github.com/users/JinShil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JinShil/subscriptions","organizations_url":"https://api.github.com/users/JinShil/orgs","repos_url":"https://api.github.com/users/JinShil/repos","events_url":"https://api.github.com/users/JinShil/events{/privacy}","received_events_url":"https://api.github.com/users/JinShil/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T22:31:49Z","updated_at":"2018-06-08T22:31:49Z","author_association":"MEMBER","body":"Ping!  Is this ready to go?  It'd be awesome to get this in the upcoming release."}}
{"actor":{"display_login":"JinShil"}}