[LLVMdev] process_root.

Tobias Nurmiranta spyck at lysator.liu.se
Wed Aug 18 12:37:33 PDT 2004


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




More information about the llvm-dev mailing list