[Tux3] Errors with latest build

Pranith Kumar bobby.prani at gmail.com
Tue Oct 7 23:27:36 PDT 2008


Hey all,

I did a make tests with the latest build and got the following errors, been
trying to make head and tail of it.
May be someone can point what's wrong to me :) or may be Ill beat them to it
:-P

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

Thanks,
-- 
Pranith.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phunq.net/pipermail/tux3/attachments/20081008/99e4a693/attachment.html>
-------------- next part --------------
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3


More information about the Tux3 mailing list