Re: [Gc] Re: Segfault in mark_from

Ivan Maidanski ivmai at mail.ru
Fri Nov 14 06:55:16 PST 2008


Hi!

"Hans W. Uhlig" <huhlig at gmail.com> wrote:
> 
> ktreichel at web.de wrote:
> > Hi once more,
> > 
> > the libgc version used is now including all changes till Oct, 21th.
> > 
> >>> libgc is built with assertions enabled but without mmap and munmap.
> >> You are not using THREAD_LOCAL_ALLOC and PARALLEL_MARK, aren't you?
> >> And, on the contrary, ALL_INTERIOR_POINTERS should be defined.
> > 
> > This is how libgc is build:
> > 
> > ...
> > 
> > Klaus
> Is this still an open issue? I checked out the latest CVS and am still 
> getting a segfault. Valgrind output included below.
> 
> ==16007== Process terminating with default action of signal 11 (SIGSEGV)
> ==16007==  Access not within mapped region at address 0xBEC1E168
> ==16007==    at 0x405D39D: GC_mark_from (in /usr/lib/libgc.so.1.0.2)
> ==16007==    by 0x405DB8F: GC_mark_some (in /usr/lib/libgc.so.1.0.2)
> ==16007==    by 0x40556DA: GC_stopped_mark (in /usr/lib/libgc.so.1.0.2)
> ==16007==    by 0x4055A8B: GC_try_to_collect_inner (in 
> /usr/lib/libgc.so.1.0.2)
> ==16007==    by 0x405FB6D: GC_init_inner (in /usr/lib/libgc.so.1.0.2)
> ==16007==    by 0x405FD74: GC_init (in /usr/lib/libgc.so.1.0.2)
> ==16007==    by 0x81DB3F4: operator new(unsigned) (mem.c:28)
> ==16007==    by 0x8161A23: (within /home/hans/ldc/ldc-gccvs/bin/ldc)
> ==16007==    by 0x88B5238: __libc_csu_init (in 
> /home/hans/ldc/ldc-gccvs/bin/ldc)
> ==16007==    by 0x41B43EB: (below main) (in /lib/i686/cmov/libc-2.7.so)
> --16007-- REDIR: 0x420e820 (free) redirected to 0x4022ad0 (free)

Please call GC_INIT() at the beginning of Your app and try again.

Bye.



More information about the Gc mailing list