{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/29839","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/29839/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/29839/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/29839/events","html_url":"https://github.com/rust-lang/rust/issues/29839","id":116960284,"number":29839,"title":"jemalloc related segfault on windows","user":{"login":"DemonOne","id":10238305,"avatar_url":"https://avatars.githubusercontent.com/u/10238305?v=3","gravatar_id":"","url":"https://api.github.com/users/DemonOne","html_url":"https://github.com/DemonOne","followers_url":"https://api.github.com/users/DemonOne/followers","following_url":"https://api.github.com/users/DemonOne/following{/other_user}","gists_url":"https://api.github.com/users/DemonOne/gists{/gist_id}","starred_url":"https://api.github.com/users/DemonOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemonOne/subscriptions","organizations_url":"https://api.github.com/users/DemonOne/orgs","repos_url":"https://api.github.com/users/DemonOne/repos","events_url":"https://api.github.com/users/DemonOne/events{/privacy}","received_events_url":"https://api.github.com/users/DemonOne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-14T23:43:00Z","updated_at":"2015-11-16T04:50:21Z","closed_at":null,"body":"Any rust built exe file sometimes crashes on my system with segfault caused by RtlpWaitOnCriticalSection(), the call originates from jemalloc_constructor().\r\n\r\nThis happens with any file I build and even with the delivered cargo.exe, but it never seems to happen with rustc.exe\r\n\r\nOS: Win 7 SP1\r\n\r\nRust version:\r\nrustc 1.3.0 (9a92aaf19 2015-09-15)\r\nbinary: rustc\r\ncommit-hash: 9a92aaf19a64603b02b4130fe52958cc12488900\r\ncommit-date: 2015-09-15\r\nhost: x86_64-pc-windows-gnu\r\nrelease: 1.3.0\r\n\r\n-Note: this also happens with rustc 1.2.0\r\n\r\nCall stack:\r\n \tntdll.dll!RtlpWaitOnCriticalSection()\r\n \tntdll.dll!RtlEnterCriticalSection()\r\n\trust_application1.exe!jemalloc_constructor() Line 693\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/156914839","html_url":"https://github.com/rust-lang/rust/issues/29839#issuecomment-156914839","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/29839","id":156914839,"user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T04:50:21Z","updated_at":"2015-11-16T04:50:21Z","body":"Looks like it's just tyring to use an uninitialized mutex, but since we last pinned jemalloc they've updated to using `SRWLOCK` which has static initialization and doesn't suffer this problem. I think to fix this we just need to update jemalloc.\r\n\r\ne.g. land https://github.com/rust-lang/rust/pull/29214"}}