Skip to content

jemalloc related segfault on windows #29839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DemonOne opened this issue Nov 14, 2015 · 5 comments
Closed

jemalloc related segfault on windows #29839

DemonOne opened this issue Nov 14, 2015 · 5 comments

Comments

@DemonOne
Copy link

Any rust built exe file sometimes crashes on my system with segfault caused by RtlpWaitOnCriticalSection(), the call originates from jemalloc_constructor().

This happens with any file I build and even with the delivered cargo.exe, but it never seems to happen with rustc.exe

OS: Win 7 SP1

Rust version:
rustc 1.3.0 (9a92aaf 2015-09-15)
binary: rustc
commit-hash: 9a92aaf
commit-date: 2015-09-15
host: x86_64-pc-windows-gnu
release: 1.3.0

-Note: this also happens with rustc 1.2.0

Call stack:
ntdll.dll!RtlpWaitOnCriticalSection()
ntdll.dll!RtlEnterCriticalSection()
rust_application1.exe!jemalloc_constructor() Line 693

@retep998
Copy link
Member

Related to #14600 and #26647

cc @alexcrichton

@alexcrichton
Copy link
Member

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.

e.g. land #29214

@alexcrichton
Copy link
Member

#30434 landed so I believe this is now fixed

@DemonOne
Copy link
Author

DemonOne commented Feb 5, 2016

Still fails on my machine with Rust 1.6

@retep998
Copy link
Member

retep998 commented Feb 5, 2016

@DemonOne That's because due to the train release system, the fixes aren't in Rust 1.6. The jemalloc upgrade will be in Rust 1.7 and the disabling of jemalloc on Windows will be in Rust 1.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants