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
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 >
On Wed, 2004-08-18 at 12:54, Tobias Nurmiranta wrote:> Seems like Root in process_root sometimes is a null pointer. Wonder if it > is my fault? :) *debugging* > , Tobias >Okay. I don't know much about the GC stuff, but if you tell me where this process_root thing is, I might be able to help. I couldn't find it in a search. Reid -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040818/dd8c8d26/attachment.sig>