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.86k stars 397 forks source link

SIGSEGV in threadkeytest (Linux/x64) #238

Open ivmai opened 5 years ago

ivmai commented 5 years ago

Host: Ubuntu 16.04/x64 Compiler: gcc-5.5.0 Glibc: 2.23-0ubuntu10 Source: latest master (0c0e4cd)

How to reproduce:

ivmai commented 5 years ago

Program terminated with signal SIGSEGV, Segmentation fault. #0 __pthread_create_2_1 (newthread=newthread@entry=0x7fac337f5e48, attr=attr@entry=0x7fac337f5e50, start_routine=start_routine@entry=0x7fac82bcec80 , arg=arg@entry=0x82f8c0) at pthread_create.c:713

(gdb) bt #0 __pthread_create_2_1 (newthread=newthread@entry=0x7fac337f5e48, attr=attr@entry=0x7fac337f5e50, start_routine=start_routine@entry=0x7fac82bcec80 , arg=arg@entry=0x82f8c0) at pthread_create.c:713 # 1 0x00007fac82bdece4 in GC_pthread_create (new_thread=0x7fac337f5e48, attr=0x7fac337f5e50, start_routine=, arg=) at extra/../pthread_support.c:1900 # 2 0x0000000000400e8a in on_thread_exit_inner (sb=, arg=) at tests/threadkey_test.c:71

ivmai commented 5 years ago

pthread_create.c:713 : if (pd->stopped_start)

ivmai commented 5 years ago

Probably could be caused by a bug in Glibc.

ivmai commented 1 year ago

Not reproducible on Ubuntu 20.04.4 LTS (GNU/Linux 4.15.0-74-generic x86_64) Source: master (c1a6378297) Test runs: >7000 gcc version: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 glibc version: ldd (Ubuntu GLIBC 2.31-0ubuntu9.9) 2.31

But glibc version (2.31) is older than originally reported (2.33).

ivmai commented 1 year ago

Source: release-8_2 (cd1fbc1d) Host: Ubuntu Xenial x64 Link: https://app.travis-ci.com/github/ivmai/bdwgc/jobs/581044040 (rebuilt)

ivmai commented 1 year ago

Source: release-8_2 (2b342c4) Host: Ubuntu Xenial x64 Failed build: https://app.travis-ci.com/github/ivmai/bdwgc/jobs/588637532

ivmai commented 1 year ago

Source: master (d389c2d) Build: https://app.travis-ci.com/github/ivmai/bdwgc/jobs/594219320 Host: Ubuntu 16.04.7 LTS (x64) Config: CFLAGS_EXTRA="-D _FORTIFY_SOURCE=2 -D FIND_LEAK -D SKIP_LEAKED_OBJECTS_PRINTING" CONF_OPTIONS="--enable-gc-assertions --enable-cplusplus"

ivmai commented 1 year ago

Source: master (dac8f77614) Build: https://app.travis-ci.com/github/ivmai/bdwgc/jobs/595514321 Host: Ubuntu 16.04.7 LTS (x64) Config: CONF_OPTIONS="--disable-thread-local-alloc --enable-cplusplus --enable-static"

ivmai commented 1 year ago

Source: release-8_2 (bef858c) Build: https://app.travis-ci.com/github/ivmai/bdwgc/jobs/601194715 Host: Ubuntu 16.04.7 LTS / x64 Compiler: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609 Config: CONF_OPTIONS="--enable-gcov --enable-single-obj-compilation --enable-cplusplus --disable-shared --enable-gc-assertions" CFLAGS_EXTRA="-D USE_CUSTOM_SPECIFIC" CC_FOR_CHECK=g++ MAKEFILE_TARGETS="all" MAKEFILE_TARGETS_CHECK="check"

cat threadkey_test.log: FAIL threadkey_test (exit status: 139)

ivmai commented 1 year ago

Source: release-8_2 (0c12d15) Build: https://app.travis-ci.com/github/ivmai/bdwgc/jobs/602925319