[Gc] segfault with CACAO on OpenSolaris

Boehm, Hans hans.boehm at hp.com
Tue Aug 19 13:19:41 PDT 2008


The CVS version contains a recent bug fix to call GC_init_thread_local from GC_register_my_thread.  (See http://bdwgc.cvs.sourceforge.net/bdwgc/bdwgc/pthread_support.c?r1=1.13&r2=1.14 around line 1036.)  Might this be the problem here?

Hans

> -----Original Message-----
> From: Christian Thalinger [mailto:twisti at complang.tuwien.ac.at]
> Sent: Tuesday, August 19, 2008 10:59 AM
> To: Boehm, Hans
> Cc: gc ml
> Subject: RE: [Gc] segfault with CACAO on OpenSolaris
>
> On Mon, 2008-08-18 at 21:59 +0000, Boehm, Hans wrote:
> > It would be good to understand whether that's the first allocation
> > from a thread, or whether the failing allocation is in a
> threads that
> > previously succeeded.  It may be that a thread is somehow getting
> > created without setting up the free list structure.  Does 0xc8
> > correspond to a tsd value of zero?
>
> Yes, it's the first allocation on that thread and tsd is zero:
>
> <snip>
> thread=1: GC_malloc(72): tsd=fffffd7ffedede38,
> tiny_fl=fffffd7ffededf00
> thread=1: GC_malloc(72) = 5fc5f0 : 1
> thread=1: GC_malloc(104): tsd=fffffd7ffedede38,
> tiny_fl=fffffd7ffededf00
> thread=1: GC_malloc(104) = 601e00 : 1
> thread=1: GC_malloc(152): tsd=fffffd7ffedede38,
> tiny_fl=fffffd7ffededf00
> thread=1: GC_malloc(152) = 5b7b40 : 1
> thread=1: GC_malloc(80): tsd=fffffd7ffedede38,
> tiny_fl=fffffd7ffededf00
> thread=1: GC_malloc(80) = 5fc5a0 : 1
> thread=5: GC_malloc(72): tsd=0, tiny_fl=c8
> LOG: [0x0000000000000005] We received a SIGSEGV and tried to
> handle it, but we were
> LOG: [0x0000000000000005] unable to find a Java method at:
> LOG: [0x0000000000000005]
> LOG: [0x0000000000000005] PC=0xfffffd7ffed0c46e
>
> - twisti
>
>



More information about the Gc mailing list