From: Ruben Date: 2004-09-18T03:48:52+09:00 Subject: Re: Valgrind analysis of [BUG] unknown node type 0 At Sat, 18 Sep 2004 00:31:36 +0900, Andrew Walrond wrote: > > On Friday 17 Sep 2004 16:05, Yukihiro Matsumoto wrote: > > > > It's something called 'conservative garbage collection', which often > > screws valgrind and other memory debugger. Can you show us error > > reproducing scripts? > > > > [Scripts too big to post here; Sent to matz directly] > > So the question becomes: Has valgrind been somehow fooled in this case, or are > we really searching through uninitialised garbage for heap pointers? > > I await your wise council ;) hmm... conservative garbage collection = treat everything that looks like a pointer as a pointer; so yes, this includes uninitialised garbage. If that uninitialised garbage looks like a pointer into the heap, the collector will treat it as a pointer into the heap and assume that whatever it points to is live and can not be collected. Ruben