-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Description
If you set use-jemalloc to false in your config.toml, but then attempt to use the resulting binary with massif, 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:
So, some part of your executable is compiled against jemalloc 4.5.0. massif intercepts some vanilla malloc, free, etc, calls and it segfaults
Here is a relevant stack trace:
https://pastebin.mozilla.org/9078214
which shows a transition from heap.rs:dealloc() to jemalloc.c:sdallocx().
cc @alexcrichton -- any theories?
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)