Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithreaded gctest terminated with signal SIGTRAP on cygwin #525

Open
ivmai opened this issue Jan 29, 2023 · 1 comment
Open

Multithreaded gctest terminated with signal SIGTRAP on cygwin #525

ivmai opened this issue Jan 29, 2023 · 1 comment

Comments

@ivmai
Copy link
Owner

ivmai commented Jan 29, 2023

Source: master (2b45fef5d)
Host: Windows x64 (cygwin64)
How to reproduce: gcc -O0 -g -I include -Wall -Wextra -Wpedantic -D GC_ASSERTIONS -D USE_MMAP -D USE_MUNMAP -D GC_THREADS tests/gctest.c extra/gc.c && gdb a.exe
Output:
Program terminated with signal SIGTRAP, Trace/breakpoint trap.

Also, reproduced w/o gdb (silent termination of gctest), after:

--> Marking for collection #122 after 8295584 allocated bytes
Marked from 34 dirty pages
World-stopped marking took 14 ms 628300 ns (9 ms in average)

Related #523

@ivmai
Copy link
Owner Author

ivmai commented Aug 6, 2024

Source: master (7f1503d)
Build: https://ci.appveyor.com/project/ivmai/bdwgc/builds/50339350/job/luq90myko01fvw7y
Config: TARGET=msys64, CFLAGS_EXTRA=-O3 -march=native -D GC_THREADS -D GC_GCJ_SUPPORT -D GC_TIME_LIMIT=10 -D WINXP_USE_PERF_COUNTER -D NO_MSGBOX_ON_ERROR -D NO_TEST_ENDTHREADEX
Note: msys2 is a clone of cygwin (i.e. it is not a mingw build)
Output (gctest):

Supported VDBs: manual mprotect
Switched to incremental mode
Emulating dirty bits with mprotect/signals (covering also ptr-free pages)

Build is successful because gctest is terminated silently with zero exit code.

Relates to #634

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant