From: ts Date: 2004-09-17T21:50:57+09:00 Subject: Re: Valgrind analysis of [BUG] unknown node type 0 >>>>> "A" == Andrew Walrond writes: A> " So if lomem and himem are not the culprits, then it must be 'p' " static inline int is_pointer_to_heap(ptr) void *ptr; { register RVALUE *p = RANY(ptr); register RVALUE *heap_org; register long i; if (p < lomem || p > himem) return Qfalse; /* check if p looks like a pointer */ for (i=0; i < heaps_used; i++) { heap_org = heaps[i].slot; if (heap_org <= p && p < heap_org + heaps[i].limit && ((((char*)p)-((char*)heap_org))%sizeof(RVALUE)) == 0) return Qtrue; } return Qfalse; } How do you want that p is unitialized ? Guy Decoux