ivmai / bdwgc

The Boehm-Demers-Weiser conservative C/C++ Garbage Collector (bdwgc, also known as bdw-gc, boehm-gc, libgc)
https://www.hboehm.info/gc/
Other
2.98k stars 407 forks source link

mach_msg failed in GC_mprotect_thread_notify (Darwin/x64, THREADS+HANDLE_FORK) #134

Closed ivmai closed 7 years ago

ivmai commented 8 years ago

Source: bdwgc and libatomic_ops master How to reproduce: gcc -O0 -I include -I libatomic_ops/src -Wno-deprecated-declarations -DGC_THREADS -DHANDLE_FORK tests/test.c extra/gc.c && ./a.out

More over, the following configuration results in a hang: gcc -O0 -I include -I libatomic_ops/src -Wno-deprecated-declarations -DGC_THREADS -DHANDLE_FORK -DUSE_MUNMAP -DTHREAD_LOCAL_ALLOC tests/test.c extra/gc.c && ./a.out

ivmai commented 8 years ago

Related issue: #103

ivmai commented 7 years ago

Fixed by 6bfc840