-
Notifications
You must be signed in to change notification settings - Fork 408
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
Core dump in GC_push_all_stacks (collecting from unknown thread) #333
Comments
Which operating system? |
Which operating system?: linux-3.6.5 on arm embedded |
hi, I tried to reproduce the issue on 8.04 release by the following code:
then I can see the core dump:
|
The issue is on your side: please change this code in your sample:
to
(i.e. there should be GC_THREADS defined and gc-specific includes should precede pthread.h) |
I'm using bdwgc. it is quite useful but sometimes I run into the issue:
#0 0xb680c6a8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#1 0xb680d924 in __GI_abort () at abort.c:89
#2 0x0104bec4 in GC_push_all_stacks ()
#3 0x01043edc in GC_mark_some ()
#4 0x0104e0a8 in GC_stopped_mark ()
#5 0x0104eba8 in GC_try_to_collect_inner ()
#6 0x0104f560 in GC_collect_or_expand ()
#7 0x0104f7ac in GC_allocobj ()
#8 0x01040af8 in GC_generic_malloc_inner ()
#9 0x01040c4c in GC_generic_malloc ()
#10 0x01040f14 in GC_malloc_kind_global ()
#11 0x001c9464 in pal_mem_calloc (type=MTYPE_LIST_NODE, size=12) at pal_memory.c:65
#12 0xb6bda048 in mfh_calloc () from /usr/lib/lib_libshared.so
#13 0xb6bcb16c in listnode_add () from /usr/lib/lib_libshared.so
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
I'm using gc 8 .0.4 and configure with enable-threads=posix, enable-thread-local-alloc, enable-parallel-mark.
please give a hand on the issue: how to avoid or anyway to fix it?
The text was updated successfully, but these errors were encountered: