<div dir="ltr">Hey all,<br><br>I did a make tests with the latest build and got the following errors, been trying to make head and tail of it.<br>May be someone can point what's wrong to me :) or may be Ill beat them to it :-P<br>
<br>bobby@lappy:~/proj/tux3/user/test$ make tests<br>gcc -std=gnu99 -Wall -g -D_FILE_OFFSET_BITS=64 vfs.o dleaf.c -o dleaf<br>valgrind --error-exitcode=200 --leak-check=full ./dleaf<br>==5364== Memcheck, a memory error detector.<br>
==5364== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.<br>==5364== Using LibVEX rev 1804, a library for dynamic binary translation.<br>==5364== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.<br>
==5364== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation framework.<br>==5364== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.<br>==5364== For more details, rerun with: -v<br>==5364== <br>
--- leaf test ---<br>dwalk_probe: probe for 0x3000055<br>dwalk_probe: extent = 0, exstop = 0<br>==5364== Invalid read of size 4<br>==5364== at 0x804C342: main (dleaf.c:641)<br>==5364== Address 0x4184428 is 0 bytes after a block of size 1,024 alloc'd<br>
==5364== at 0x4022AB8: malloc (vg_replace_malloc.c:207)<br>==5364== by 0x804A0F6: leaf_create (dleaf.c:102)<br>==5364== by 0x804C209: main (dleaf.c:632)<br>==5364== <br>==5364== Invalid read of size 4<br>==5364== at 0x804C356: main (dleaf.c:642)<br>
==5364== Address 0x4184428 is 0 bytes after a block of size 1,024 alloc'd<br>==5364== at 0x4022AB8: malloc (vg_replace_malloc.c:207)<br>==5364== by 0x804A0F6: leaf_create (dleaf.c:102)<br>==5364== by 0x804C209: main (dleaf.c:632)<br>
==5364== <br>==5364== Invalid read of size 1<br>==5364== at 0x804B375: dwalk_pack (dleaf.c:419)<br>==5364== by 0x804C407: main (dleaf.c:645)<br>==5364== Address 0x4184428 is 0 bytes after a block of size 1,024 alloc'd<br>
==5364== at 0x4022AB8: malloc (vg_replace_malloc.c:207)<br>==5364== by 0x804A0F6: leaf_create (dleaf.c:102)<br>==5364== by 0x804C209: main (dleaf.c:632)<br>==5364== <br>==5364== Invalid read of size 1<br>==5364== at 0x804B387: dwalk_pack (dleaf.c:419)<br>
==5364== by 0x804C407: main (dleaf.c:645)<br>==5364== Address 0x4184428 is 0 bytes after a block of size 1,024 alloc'd<br>==5364== at 0x4022AB8: malloc (vg_replace_malloc.c:207)<br>==5364== by 0x804A0F6: leaf_create (dleaf.c:102)<br>
==5364== by 0x804C209: main (dleaf.c:632)<br>group -1/0 at entry -1/0<br>dwalk_pack: add entry 0x3001001<br>dwalk_pack: add group 0<br>dwalk_pack: add extent 0<br>group 1/1 at entry 2/1<br>dwalk_pack: add entry 0x3001002<br>
dwalk_pack: add extent 1<br>group 1/1 at entry 4/2<br>dwalk_pack: add entry 0x3001003<br>dwalk_pack: add extent 2<br>group 1/1 at entry 6/3<br>dwalk_pack: add entry 0x3001004<br>dwalk_pack: add extent 3<br>group 1/1 at entry 8/4<br>
dwalk_pack: add entry 0x3001005<br>dwalk_pack: add extent 4<br>group 1/1 at entry 10/5<br>dwalk_pack: add entry 0x3001006<br>dwalk_pack: add extent 5<br>1 entry groups:<br>==5364== <br>==5364== Conditional jump or move depends on uninitialised value(s)<br>
==5364== at 0x804A3E0: dleaf_dump (dleaf.c:157)<br>==5364== by 0x804C65C: main (dleaf.c:653)<br>==5364== <br>==5364== Conditional jump or move depends on uninitialised value(s)<br>==5364== at 0x804A472: dleaf_dump (dleaf.c:159)<br>
==5364== by 0x804C65C: main (dleaf.c:653)<br>==5364== <br>==5364== Use of uninitialised value of size 4<br>==5364== at 0x804A408: dleaf_dump (dleaf.c:160)<br>==5364== by 0x804C65C: main (dleaf.c:653)<br> 0/6: 3001001 => 1/1; 3001002 => 2/1; 3001003 => 3/1; 3001004 => 4/1; 3001005 => 5/1; 3001006 => 6/1;<br>
==5364== <br>==5364== Conditional jump or move depends on uninitialised value(s)<br>==5364== at 0x804B7D0: dleaf_check (dleaf.c:469)<br>==5364== by 0x804C674: main (dleaf.c:654)<br>==5364== <br>==5364== Conditional jump or move depends on uninitialised value(s)<br>
==5364== at 0x804B805: dleaf_check (dleaf.c:472)<br>==5364== by 0x804C674: main (dleaf.c:654)<br>==5364== <br>==5364== ERROR SUMMARY: 29 errors from 9 contexts (suppressed: 11 from 1)<br>==5364== malloc/free: in use at exit: 1,024 bytes in 1 blocks.<br>
==5364== malloc/free: 1 allocs, 0 frees, 1,024 bytes allocated.<br>==5364== For counts of detected errors, rerun with: -v<br>==5364== searching for pointers to 1 not-freed blocks.<br>==5364== checked 60,220 bytes.<br>==5364== <br>
==5364== <br>==5364== 1,024 bytes in 1 blocks are definitely lost in loss record 1 of 1<br>==5364== at 0x4022AB8: malloc (vg_replace_malloc.c:207)<br>==5364== by 0x804A0F6: leaf_create (dleaf.c:102)<br>==5364== by 0x804C209: main (dleaf.c:632)<br>
==5364== <br>==5364== LEAK SUMMARY:<br>==5364== definitely lost: 1,024 bytes in 1 blocks.<br>==5364== possibly lost: 0 bytes in 0 blocks.<br>==5364== still reachable: 0 bytes in 0 blocks.<br>==5364== suppressed: 0 bytes in 0 blocks.<br>
make: *** [dleaftest] Error 200<br>bobby@lappy:~/proj/tux3/user/test$ <br><br>Thanks,<br>-- <br>Pranith.<br>
</div>