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
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
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