-
Notifications
You must be signed in to change notification settings - Fork 406
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
gctest hang on Cygwin in gdb (multi-threaded w/o thread-local-alloc) #523
Comments
If launched w/o gdb, may hang in other places: Case 1:
|
Case 2:
|
Also reproduced without gdb: |
Probably same case with Mingw32.
|
Reproduced locally on release-8_2 (bef858c)
Not reproduced with -D THREAD_LOCAL_ALLOC |
Source: unknown |
Source: master (98200e4) (also reproduced even on release-7_4)
Host: Windows 10 (x64)
Build: gcc -O0 -g -I include -D GC_THREADS -D GC_ASSERTIONS -D GC_DISABLE_INCREMENTAL tests/test.c extra/gc.c && gdb a.exe
(same w/o -D GC_ASSERTIONS -D GC_DISABLE_INCREMENTAL)
set GC_PRINT_STATS=1
(same w/o GC_PRINT_STATS)
Ctrl-C (or Break) does not work.
Output:
...
--> Marking for collection #2 after 0 allocated bytes
World-stopped marking took 8 ms 225600 ns (10 ms in average)
GC #2 freed 0 bytes, heap 64 KiB (+ 425 KiB internal)
In-use heap: 0% (0 KiB pointers + 0 KiB other)
0 finalization entries; 0/0 short/long disappearing links alive
0 finalization-ready objects; 0/0 short/long links cleared
Finalize and initiate sweep took 0 ms 900 ns + 1 ms 987500 ns
Complete collection took 20 ms 565100 ns
Switched to incremental mode
Emulating dirty bits with mprotect/signals
[New Thread 158144.0x26b48]
Adding block map for size of 3 granules (48 bytes)
Adding block map for size of 12 granules (192 bytes)
The text was updated successfully, but these errors were encountered: