-
Notifications
You must be signed in to change notification settings - Fork 13k
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
"disable jemalloc" option for config.toml
no longer (fully) disables jemalloc
#48370
Comments
So one potential theory is that we're enabling the debug-jemalloc feature and that enables jemalloc. Is there a chance you could try building with that disabled as well? (I'll probably do so eventually, but it'll be a few days at least I imagine). |
@Mark-Simulacrum I can give it a try |
The gisted log there also shows usage of the rustup cargo shim and cargo itself, both using jemalloc. To confirm, the issue remains if rustc is invoked directly? |
Seems like @alexcrichton is right.
vs
|
Hm, @spastorino, try removing the |
@nikomatsakis in my machine the default is nightly but without and also with +stable I get the same segfault |
Clarified on gitter that when you run the executable directory from the rustc directory, it seems to work. Good to know. |
Actually when I used the executable from dev directory (I forgot to remove +stage1), without it works perfect ... [santiago@archlinux tmp]$ valgrind --tool=massif /home/santiago/src/oss/rust1/build/x86_64-unknown-linux-gnu/stage1/bin/rustc test.rs
[santiago@archlinux tmp]$ ms_print massif.out.24926 |
Jemalloc was tweaked a lot in #55238 so I'm going to close this |
If you set
use-jemalloc
to false in your config.toml, but then attempt to use the resulting binary withmassif
, you get weird errors in the regex parser. This gist gives precise reproduction instructions:https://gist.github.com/nikomatsakis/246baafb1c1c60212e36541ec70ca852
@julian-seward1 tracked this down to incompletely intercepting all calls to jemalloc. As they wrote over IRC:
Here is a relevant stack trace:
https://pastebin.mozilla.org/9078214
which shows a transition from
heap.rs:dealloc()
tojemalloc.c:sdallocx()
.cc @alexcrichton -- any theories?
The text was updated successfully, but these errors were encountered: