It's this code in las.c that defines alloc_node_s:
BLOCK_ALLOC_FILL_PAGES(node_s, 2)
This macro is defined in block_alloc.h.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2004-03-02 23:31: Subject: valgrinding Pike - some problems
Hi,
Just attempted to valgrind recent version (from CVS), immediately got thousands of errors like this:
==7875== Conditional jump or move depends on uninitialised value(s) ==7875== at 0x81B5AF7: debug_check_node_hash (las.c:830) ==7875== by 0x81506F1: optimize_binary (operators.c:1712) ==7875== by 0x81C8A04: optimize (treeopt.h:3289) ==7875== by 0x81CCCF3: optimize_node (las.c:5363)
Where is the catch?
It seems that entire structure is initialized correctly upon allocation (there is a call to MEMSET)... What makes me curious, though - is - where alloc_node_s() is defined? Grepping all files in src/ gives single match - call to this function, object file symbol table says that alloc_node_s() is defined in las.c, but...
Regards, /Al
/ Brevbäraren