-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
-Cprefer-dynamicCodegen option: Prefer dynamic linking to static linking.Codegen option: Prefer dynamic linking to static linking.A-allocatorsArea: Custom and system allocatorsArea: Custom and system allocatorsA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Description
Since 1.71.0 a regression has been added into the compiler causing segmentation faults in applications compiled using prefer-dynamic
, this issue is not present in 1.70.0. It appears that the system allocator is still being used in some cases causing segmentation faults.
Code
https://github.com/alexkornitzer/dylib-errors/tree/error/jemalloc
use jemallocator::Jemalloc;
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;
fn main() {
let a = std::thread::spawn(move || {});
a.join().unwrap();
println!("didn''t crash");
}
Version it worked on
It most recently worked on: 1.70.0
Version with regression
1.71.0
Have run git bisect and the regression was introduced with the following commit: a2b1646
Metadata
Metadata
Assignees
Labels
-Cprefer-dynamicCodegen option: Prefer dynamic linking to static linking.Codegen option: Prefer dynamic linking to static linking.A-allocatorsArea: Custom and system allocatorsArea: Custom and system allocatorsA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.