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

SIGSEGV in gctest (Linux/amd64) #370

Open ivmai opened 3 years ago

ivmai commented 3 years ago

Build: https://app.travis-ci.com/github/ivmai/bdwgc/jobs/536840949 Source: release-7_4 (https://github.com/ivmai/bdwgc/commit/ed1bd608304c58f159ba9e4bc7f74bc90f5dafef) Host: Linux/x64 (Ubuntu 16.04.6 LTS) Compiler: clang-7.0 Configuration: CFLAGS_EXTRA="-O3 -march=native" CONF_OPTIONS="--enable-cplusplus --enable-single-obj-compilation"

Output (make check): Switched to incremental mode Emulating dirty bits with mprotect/signals Unexpected bus error or segmentation fault FAIL gctest (exit status: 134)

ivmai commented 3 years ago

Probably related issue: #238

ivmai commented 3 years ago

Failed to reproduce locally (>1000 runs of gctest). Same for running make -j check >1000 runs. Host: Ubuntu 20.04 LTS/x86_64

ivmai commented 3 years ago

Failed to reproduce on travis (even with same commit) https://app.travis-ci.com/github/ivmai/bdwgc/builds/238449133 number of gctest runs (sequential) - 55.

ivmai commented 3 years ago

Reproduced on nearly latest release-7_4 (after 34 runs of make -j check): https://app.travis-ci.com/github/ivmai/bdwgc/builds/238484375 compiler: clang v7.0.0 CFLAGS_EXTRA="-O3 -march=native" CONF_OPTIONS="--enable-single-obj-compilation --enable-gc-assertions --disable-gcj-support --disable-atomic-uncollectible --disable-disclaim" gctest.log: Switched to incremental mode Emulating dirty bits with mprotect/signals Unexpected bus error or segmentation fault FAIL gctest (exit status: 134)

ivmai commented 3 years ago

The issue is to reproduced in release-7_4 after commit af09adb3c7 (same for release-7_6 and release-8_0) but the reason why commit b7a182848a (in master) leads to a crash still needs investigation.

ivmai commented 3 years ago

The issue is to reproduced in release-7_4 after commit af09adb3c7 (same for release-7_6 and release-8_0) but the reason why commit b7a182848a (in master) leads to a crash still needs investigation.

Not confirmed! Not reproduced again after 178 iterations of make check (https://app.travis-ci.com/github/ivmai/bdwgc/builds/238496819).

ivmai commented 3 years ago

Not reproduced on latest master - https://app.travis-ci.com/github/ivmai/bdwgc/builds/238524053