[LLVMdev] process_root.

Tobias Nurmiranta spyck at lysator.liu.se
Wed Aug 18 12:54:10 PDT 2004



Seems like Root in process_root sometimes is a null pointer. Wonder if it
is my fault? :) *debugging*
,	Tobias

On Wed, 18 Aug 2004, Tobias Nurmiranta wrote:

>
> On Wed, 18 Aug 2004, Reid Spencer wrote:
> > On Wed, 2004-08-18 at 11:54, Tobias Nurmiranta wrote:
> >
> > Okay. I'm not an expert on GC but I'll take a look ...
>
> Thanks :)
>
> >
> > > For some strange reason I get segmentation fault in process_pointer in
> > > semispace.c (I've implemented a small collector, hopefully :). The fault
> > > occurs when I do:
> > >
> > >  printf("process_root[0x%p] = 0x%p\n", (void*) Root, (void*) *Root);
> > >
> > > I.e, when I reference Root.
> >
> > I don't know what "Root" is but possibly the %p substitution with
> > "*Root" isn't valid.
>
> Hmm, ok, that was in the file when I checked it out from the cvs. The
> point is that is crashes when using *Root, no matter how, even when not
> using it in the printf.
>
> ,	Tobias
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list