|
From: Dan K. <da...@ke...> - 2003-11-21 18:26:01
|
Salim SAYOURI wrote: > I'm trying to run valgrind on my stack. Unfortunately it fails all time when > calling a function in the Judy lib (C libraries for creating and accessing > dynamic arrays: http://judy.sourceforge.net/) > ==21866== Invalid read of size 4 > ==21866== at 0x402702E4: JudySLIns (src/JudySL/JudySL.c:630) > ==21866== by 0x8048789: main (judySL_test.c:20) > ==21866== by 0x40296686: __libc_start_main (../sysdeps/generic/libc-start.c:129) > ==21866== by 0x8048630: (within /home/ocadmin/salim/lab_RD/a.out) > ==21866== Address 0x40D35020 is 4 bytes before a block of size 7 alloc'd > ==21866== at 0x4002BB60: malloc (vg_replace_malloc.c:153) > ==21866== by 0x40270009: JudySLIns (src/JudySL/JudySL.c:552) > ==21866== by 0x8048789: main (judySL_test.c:20) > ==21866== by 0x40296686: __libc_start_main (../sysdeps/generic/libc-start.c:129) > ==21866== > ==21866== Invalid free() / delete / delete[] > ==21866== at 0x4002BE5B: free (vg_replace_malloc.c:231) > ==21866== by 0x40270378: JudySLIns (src/JudySL/JudySL.c:639) > ==21866== by 0x8048789: main (judySL_test.c:20) > ==21866== by 0x40296686: __libc_start_main (../sysdeps/generic/libc-start.c:129) > ==21866== Address 0x40D35020 is 4 bytes before a block of size 7 alloc'd > ==21866== at 0x4002BB60: malloc (vg_replace_malloc.c:153) > ==21866== by 0x40270009: JudySLIns (src/JudySL/JudySL.c:552) > ==21866== by 0x8048789: main (judySL_test.c:20) > ==21866== by 0x40296686: __libc_start_main (../sysdeps/generic/libc-start.c:129) > File 'judySL_test.c', line 20: JudySLIns(), JU_ERRNO_* == 7, ID == 396 Assuming your test program isn't buggy, you may have found a bug in the Judy library. Either way, you probably want to take this up on the Judy mailing list... - Dan |