{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corert/issues/1704","repository_url":"https://api.github.com/repos/dotnet/corert","labels_url":"https://api.github.com/repos/dotnet/corert/issues/1704/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corert/issues/1704/comments","events_url":"https://api.github.com/repos/dotnet/corert/issues/1704/events","html_url":"https://github.com/dotnet/corert/issues/1704","id":172707326,"number":1704,"title":"Console application fails when not run through Terminal on OSX","user":{"login":"christianscheuer","id":4005316,"avatar_url":"https://avatars.githubusercontent.com/u/4005316?v=3","gravatar_id":"","url":"https://api.github.com/users/christianscheuer","html_url":"https://github.com/christianscheuer","followers_url":"https://api.github.com/users/christianscheuer/followers","following_url":"https://api.github.com/users/christianscheuer/following{/other_user}","gists_url":"https://api.github.com/users/christianscheuer/gists{/gist_id}","starred_url":"https://api.github.com/users/christianscheuer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianscheuer/subscriptions","organizations_url":"https://api.github.com/users/christianscheuer/orgs","repos_url":"https://api.github.com/users/christianscheuer/repos","events_url":"https://api.github.com/users/christianscheuer/events{/privacy}","received_events_url":"https://api.github.com/users/christianscheuer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-23T14:01:30Z","updated_at":"2016-08-23T23:51:15Z","closed_at":"2016-08-23T23:39:37Z","body":"Natively compiled application works fine when run through Terminal, but fails here when invoked from any other process (through NSTask).\r\nIt has no effect whether or not StandardInput/output/error is redirected or not.\r\n\r\nMight this it be an environment issue, or are there made any assumptions in the bootstrapping code which makes this fail?\r\n\r\nThis is the stacktrace from lldb:\r\n\r\n```\r\nProcess 65308 stopped\r\n* thread #1: tid = 0x10790f, 0x0000000100105d90 cptsbackend`REGDISPLAY::GetFP(this=0x00007fff5fbff630) + 16 at regdisplay.h:42, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)\r\n    frame #0: 0x0000000100105d90 cptsbackend`REGDISPLAY::GetFP(this=0x00007fff5fbff630) + 16 at regdisplay.h:42\r\n   39  \t    inline PCODE GetIP() { return IP; }\r\n   40  \t    inline PTR_PCODE GetAddrOfIP() { return pIP; }\r\n   41  \t    inline UIntNative GetSP() { return SP; }\r\n-> 42  \t    inline UIntNative GetFP() { return *pRbp; }\r\n   43  \t    inline UIntNative GetPP() { return *pRbx; }\r\n   44  \t\r\n   45  \t    inline void SetIP(PCODE IP) { this->IP = IP; }\r\n(lldb) thread backtrace\r\n* thread #1: tid = 0x10790f, 0x0000000100105d90 cptsbackend`REGDISPLAY::GetFP(this=0x00007fff5fbff630) + 16 at regdisplay.h:42, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)\r\n  * frame #0: 0x0000000100105d90 cptsbackend`REGDISPLAY::GetFP(this=0x00007fff5fbff630) + 16 at regdisplay.h:42\r\n    frame #1: 0x0000000100105679 cptsbackend`UnixNativeCodeManager::GetFramePointer(this=0x00006180000200a0, pMethodInfo=0x00007fff5fbff6c8, pRegisterSet=0x00007fff5fbff630) + 89 at UnixNativeCodeManager.cpp:90\r\n    frame #2: 0x00000001000303f1 cptsbackend`StackFrameIterator::CalculateCurrentMethodState(this=0x00007fff5fbff610) + 449 at StackFrameIterator.cpp:1418\r\n    frame #3: 0x00000001000319b1 cptsbackend`::RhpSfiNext(pThis=0x00007fff5fbff610, puExCollideClauseIdx=0x00007fff5fbff594, pfUnwoundReversePInvoke=\"\") + 97 at StackFrameIterator.cpp:1598\r\n    frame #4: 0x000000010010c06d cptsbackend`System_Private_CoreLib_System_Runtime_EH__DispatchEx + 453\r\n    frame #5: 0x000000010010a1db cptsbackend`RhThrowEx + 95\r\n    frame #6: 0x0000000100106106 cptsbackend`RhpThrowEx + 148 at ExceptionHandling.S:541\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/corert/issues/comments/241917840","html_url":"https://github.com/dotnet/corert/issues/1704#issuecomment-241917840","issue_url":"https://api.github.com/repos/dotnet/corert/issues/1704","id":241917840,"user":{"login":"jkotas","id":6668460,"avatar_url":"https://avatars.githubusercontent.com/u/6668460?v=3","gravatar_id":"","url":"https://api.github.com/users/jkotas","html_url":"https://github.com/jkotas","followers_url":"https://api.github.com/users/jkotas/followers","following_url":"https://api.github.com/users/jkotas/following{/other_user}","gists_url":"https://api.github.com/users/jkotas/gists{/gist_id}","starred_url":"https://api.github.com/users/jkotas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkotas/subscriptions","organizations_url":"https://api.github.com/users/jkotas/orgs","repos_url":"https://api.github.com/users/jkotas/repos","events_url":"https://api.github.com/users/jkotas/events{/privacy}","received_events_url":"https://api.github.com/users/jkotas/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T23:51:14Z","updated_at":"2016-08-23T23:51:14Z","body":"@christianscheuer which security setting it was?"}}
{"actor":{"display_login":"jkotas"}}