{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/3101","repository_url":"https://api.github.com/repos/dotnet/coreclr","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/3101/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/3101/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/3101/events","html_url":"https://github.com/dotnet/coreclr/issues/3101","id":132498467,"number":3101,"title":"Seg Fault in ETW::MethodLog::MethodJitted on Ubuntu","user":{"login":"eerhardt","id":8291187,"avatar_url":"https://avatars.githubusercontent.com/u/8291187?v=3","gravatar_id":"","url":"https://api.github.com/users/eerhardt","html_url":"https://github.com/eerhardt","followers_url":"https://api.github.com/users/eerhardt/followers","following_url":"https://api.github.com/users/eerhardt/following{/other_user}","gists_url":"https://api.github.com/users/eerhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/eerhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eerhardt/subscriptions","organizations_url":"https://api.github.com/users/eerhardt/orgs","repos_url":"https://api.github.com/users/eerhardt/repos","events_url":"https://api.github.com/users/eerhardt/events{/privacy}","received_events_url":"https://api.github.com/users/eerhardt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/coreclr/labels/blocking-release","name":"blocking-release","color":"e11d21"},{"url":"https://api.github.com/repos/dotnet/coreclr/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/dotnet/coreclr/milestones/6","html_url":"https://github.com/dotnet/coreclr/milestones/1.0.0-rc2%20","labels_url":"https://api.github.com/repos/dotnet/coreclr/milestones/6/labels","id":1380513,"number":6,"title":"1.0.0-rc2 ","description":"","creator":{"login":"tzwlai","id":9966807,"avatar_url":"https://avatars.githubusercontent.com/u/9966807?v=3","gravatar_id":"","url":"https://api.github.com/users/tzwlai","html_url":"https://github.com/tzwlai","followers_url":"https://api.github.com/users/tzwlai/followers","following_url":"https://api.github.com/users/tzwlai/following{/other_user}","gists_url":"https://api.github.com/users/tzwlai/gists{/gist_id}","starred_url":"https://api.github.com/users/tzwlai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzwlai/subscriptions","organizations_url":"https://api.github.com/users/tzwlai/orgs","repos_url":"https://api.github.com/users/tzwlai/repos","events_url":"https://api.github.com/users/tzwlai/events{/privacy}","received_events_url":"https://api.github.com/users/tzwlai/received_events","type":"User","site_admin":false},"open_issues":44,"closed_issues":155,"state":"open","created_at":"2015-10-27T22:42:35Z","updated_at":"2016-02-09T19:00:54Z","due_on":"2016-02-02T08:00:00Z","closed_at":null},"comments":8,"created_at":"2016-02-09T18:45:54Z","updated_at":"2016-02-10T00:14:15Z","closed_at":null,"body":"The https://github.com/dotnet/cli build is currently broken on Ubuntu because of a seg fault.\r\n\r\nWhen I attached a debugger, I got the following stack trace:\r\n\r\n```\r\n(lldb) Process 19292 stopped\r\n* thread #6: tid = 19300, 0x00007ffff79c021f libpthread.so.0`start_thread + 351, name = 'dotnet', stop reason = thread exiting\r\n    frame #0: 0x00007ffff79c021f libpthread.so.0`start_thread + 351\r\n-> 0x7ffff79c021f <start_thread+351>: addq   $0x90, %rsp\r\n   0x7ffff79c0226 <start_thread+358>: xorb   %al, %al\r\n   0x7ffff79c0228 <start_thread+360>: popq   %rbx\r\n   0x7ffff79c0229 <start_thread+361>: retq\r\n  thread #16: tid = 19317, 0x00007ffff641fc8c libcoreclr.so`ETW::MethodLog::MethodJitted(MethodDesc*, SString*, SString*, SString*, unsigned long, unsigned long) + 204, name = 'dotnet', stop reason = invalid address (fault address: 0x0)\r\n    frame #0: 0x00007ffff641fc8c libcoreclr.so`ETW::MethodLog::MethodJitted(MethodDesc*, SString*, SString*, SString*, unsigned long, unsigned long) + 204\r\n-> 0x7ffff641fc8c <ETW::MethodLog::MethodJitted+204>: movq   (%rdi), %rax\r\n   0x7ffff641fc8f <ETW::MethodLog::MethodJitted+207>: movq   0x10(%rax), %rax\r\n   0x7ffff641fc93 <ETW::MethodLog::MethodJitted+211>: callq  *%rax\r\n   0x7ffff641fc95 <ETW::MethodLog::MethodJitted+213>: movl   $0x40000, %esi\r\n```\r\n\r\n\r\nTo repro:\r\n\r\n- git clone https://github.com/dotnet/cli.git\r\n- cd cli\r\n- ./build.sh\r\n\r\nThere will be a compile error of the form:\r\n\r\n```\r\nCompiling Microsoft.DotNet.ProjectModel for DNXCore,Version=v5.0\r\n/home/eerhardt/git/cli/.dotnet_stage0/ubuntu.14.04-x64/share/dotnet/cli/bin/dotnet \"compile-csc\" \"@/home/eerhardt/git/cli/src/Microsoft.DotNet.ProjectModel/obj/Debug/dnxcore50/dotnet-compile.rsp\" returned Exit Code 139\r\n```\r\n\r\nif you run that command `/home/.../bin/dotnet \"compile-csc\" @\".../dnxcore50/dotnet-compile.rsp\"` in a loop, you will see `Segmentation fault (core dumped)`\r\n\r\nNote: We are currently on build rc2-23805 in the dotnet/cli repo."},"comment":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/comments/182142956","html_url":"https://github.com/dotnet/coreclr/issues/3101#issuecomment-182142956","issue_url":"https://api.github.com/repos/dotnet/coreclr/issues/3101","id":182142956,"user":{"login":"piotrpMSFT","id":2379589,"avatar_url":"https://avatars.githubusercontent.com/u/2379589?v=3","gravatar_id":"","url":"https://api.github.com/users/piotrpMSFT","html_url":"https://github.com/piotrpMSFT","followers_url":"https://api.github.com/users/piotrpMSFT/followers","following_url":"https://api.github.com/users/piotrpMSFT/following{/other_user}","gists_url":"https://api.github.com/users/piotrpMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrpMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrpMSFT/subscriptions","organizations_url":"https://api.github.com/users/piotrpMSFT/orgs","repos_url":"https://api.github.com/users/piotrpMSFT/repos","events_url":"https://api.github.com/users/piotrpMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/piotrpMSFT/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T00:14:15Z","updated_at":"2016-02-10T00:14:15Z","body":"@jankotas what controls logging on Unix? I can check if our build scripts are setting the flag..."}}