Open niedhui opened 4 years ago
Could you report this as well to jemalloc upstream and link that bug report here? Thanks.
I'm getting the same thing on OSX 10.14.6 as well.
Since none of the relevant code is around in a recent version of jemalloc, perhaps someone who can reproduce the issue should try bumping the version shipped with jemallocator?
I am seeing a segfault on Catalina 10.15.4 when I swap the default allocator out for jemallocator in one of my projects. It only happens though when that project calls into a *-sys
crate that binds to a third party DSO.
Hmm, that is strange…would you mind sharing a crash log? I was seeing this in jemalloc's constructor, and I can't reproduce it in your project :(
I never get a crash log.
Steps to repo (just tried):
# Assuming you are on macOS,
# cloned https://github.com/virtualritz/rust-diffusion-limited-aggregation.git
# and downloaded & installed 3Delight (I'm using 2.0.7 since today).
git checkout b3942167a0aa1817e4d44bb1203c606083a3480c
cargo build
target/debug/rdla -p 100 dump test.nsi
[00:00:00] [████████████████████████████████████████] 100/100 (0s)
[1] 93067 segmentation fault target/debug/rdla -p 100 dump test.nsi
Actually, I did get one; in Console:
Date/Time: 2020-05-05 04:38:46.819 +0200
OS Version: Mac OS X 10.15.4 (19E287)
Report Version: 12
Anonymous UUID: 431E6A8B-D8DD-BC8A-E603-DC897D7AAD76
Sleep/Wake UUID: 08FA2E75-CEFB-4C83-883B-1FE9CBD40211
Time Awake Since Boot: 680000 seconds
Time Since Wake: 19000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000797475616562
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [93067]
VM Regions Near 0x797475616562:
Stack 000070000c054000-000070000c0d6000 [ 520K] rw-/rwx SM=COW thread 2
-->
MALLOC_TINY 00007fd35cc00000-00007fd35cd00000 [ 1024K] rw-/rwx SM=PRV
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 lib3delight.dylib 0x00000001072f51c7 0x1070b5000 + 2359751
1 lib3delight.dylib 0x000000010717bac7 0x1070b5000 + 813767
2 lib3delight.dylib 0x000000010717c3d2 0x1070b5000 + 816082
3 lib3delight.dylib 0x000000010718b9d5 NSISetAttribute + 229
4 rdla 0x0000000105f30e7b nsi::Context::set_attribute::hece01fa6af020aae + 1291
5 rdla 0x0000000105ec75e8 rdla::dla::Model::output_scene_nsi::hf4e4db23fecfc048 + 6456 (dla.rs:680)
6 rdla 0x0000000105ec3f98 rdla::dla::Model::write_nsi::he138a2523116eab5 + 504 (dla.rs:214)
7 rdla 0x0000000105f6e29a rdla::run::h68fc195a66728b31 + 2746 (main.rs:189)
8 rdla 0x0000000105f6d377 rdla::main::h07d0073c095b8ae9 + 23 (main.rs:106)
9 rdla 0x0000000105e7342e std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h290cdda0e5709f42 + 14 (rt.rs:67)
10 rdla 0x000000010648ca59 std::rt::lang_start_internal::h2d2d7c5f224149f7 + 441 (rt.rs:51)
11 rdla 0x0000000105e73411 std::rt::lang_start::hfedcbb7371f0dcc8 + 65 (rt.rs:67)
12 rdla 0x0000000105f70432 main + 34
13 libdyld.dylib 0x00007fff6aac0cc9 start + 1
cargo run --release
will crash when using jemallocator. I tried on two machines running macOS 10.15 beta, both will produce the same result.got output:
backtrace is:
maybe it's a bug of macOS, I found a similar issue https://bugzilla.mozilla.org/show_bug.cgi?id=1570451#c41