==12253== Memcheck, a memory error detector. ==12253== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==12253== Using LibVEX rev 1471, a library for dynamic binary translation. ==12253== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==12253== Using valgrind-3.1.0-Debian, a dynamic binary instrumentation framework. ==12253== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==12253== --12253-- Command line --12253-- ./vgatest --12253-- Startup, with flags: --12253-- -v --12253-- Contents of /proc/version: --12253-- Linux version 2.6.15-27-amd64-generic (buildd@king) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 SMP PREEMPT Fri Dec 8 17:50:54 UTC 2006 --12253-- Arch and subarch: X86, x86-sse2 --12253-- Valgrind library directory: /usr/lib/valgrind --12253-- Reading syms from /lib32/ld-2.3.6.so (0x4100000) --12253-- Reading debug info from /lib32/ld-2.3.6.so... --12253-- ... CRC mismatch (computed C342CBFF wanted D8B78035) --12253-- object doesn't have a symbol table --12253-- Reading syms from /download/svgalib-1.9.25/demos/vgatest (0x8048000) --12253-- object doesn't have a symbol table --12253-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x70000000) --12253-- object doesn't have a dynamic symbol table --12253-- Reading suppressions file: /usr/lib/valgrind/default.supp --12253-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4397000) --12253-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x43BE000) --12253-- Reading syms from /usr/lib32/libvgagl.so.1.9.25 (0x441C000) --12253-- object doesn't have a symbol table --12253-- Reading syms from /usr/lib32/libvga.so.1.9.25 (0x444E000) --12253-- Reading syms from /lib32/libc-2.3.6.so (0x4511000) --12253-- Reading debug info from /lib32/libc-2.3.6.so... --12253-- ... CRC mismatch (computed 164609ED wanted 42302265) --12253-- object doesn't have a symbol table --12253-- Reading syms from /lib32/libm-2.3.6.so (0x6060000) --12253-- Reading debug info from /lib32/libm-2.3.6.so... --12253-- ... CRC mismatch (computed 22B00579 wanted 744963C8) --12253-- object doesn't have a symbol table ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x4109BA0: (within /lib32/ld-2.3.6.so) ==12253== by 0x4102A91: (within /lib32/ld-2.3.6.so) ==12253== by 0x411033F: (within /lib32/ld-2.3.6.so) ==12253== by 0x410144F: (within /lib32/ld-2.3.6.so) ==12253== by 0x4100786: (within /lib32/ld-2.3.6.so) ==12253== ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x4109BD0: (within /lib32/ld-2.3.6.so) ==12253== by 0x4102A91: (within /lib32/ld-2.3.6.so) ==12253== by 0x411033F: (within /lib32/ld-2.3.6.so) ==12253== by 0x410144F: (within /lib32/ld-2.3.6.so) ==12253== by 0x4100786: (within /lib32/ld-2.3.6.so) ==12253== ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x410A420: (within /lib32/ld-2.3.6.so) ==12253== by 0x4102A91: (within /lib32/ld-2.3.6.so) ==12253== by 0x411033F: (within /lib32/ld-2.3.6.so) ==12253== by 0x410144F: (within /lib32/ld-2.3.6.so) ==12253== by 0x4100786: (within /lib32/ld-2.3.6.so) ==12253== ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x4109A54: (within /lib32/ld-2.3.6.so) ==12253== by 0x4102B02: (within /lib32/ld-2.3.6.so) ==12253== by 0x411033F: (within /lib32/ld-2.3.6.so) ==12253== by 0x410144F: (within /lib32/ld-2.3.6.so) ==12253== by 0x4100786: (within /lib32/ld-2.3.6.so) ==12253== ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x4109A8D: (within /lib32/ld-2.3.6.so) ==12253== by 0x4102B02: (within /lib32/ld-2.3.6.so) ==12253== by 0x411033F: (within /lib32/ld-2.3.6.so) ==12253== by 0x410144F: (within /lib32/ld-2.3.6.so) ==12253== by 0x4100786: (within /lib32/ld-2.3.6.so) ==12253== ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x4109BD0: (within /lib32/ld-2.3.6.so) ==12253== by 0x4102B02: (within /lib32/ld-2.3.6.so) ==12253== by 0x411033F: (within /lib32/ld-2.3.6.so) ==12253== by 0x410144F: (within /lib32/ld-2.3.6.so) ==12253== by 0x4100786: (within /lib32/ld-2.3.6.so) --12253-- REDIR: 0x457C2A0 (rindex) redirected to 0x43C0E50 (rindex) --12253-- REDIR: 0x457BED0 (strlen) redirected to 0x43C1000 (strlen) --12253-- REDIR: 0x4576F40 (malloc) redirected to 0x43BF3A0 (malloc) --12253-- REDIR: 0x457D620 (memcpy) redirected to 0x43C14A0 (memcpy) --12253-- REDIR: 0x457B970 (strcmp) redirected to 0x43C10F0 (strcmp) --12253-- REDIR: 0x4574E70 (free) redirected to 0x43BFFB0 (free) --12253-- REDIR: 0x457C0C0 (strncmp) redirected to 0x43C1060 (strncmp) --12253-- REDIR: 0x457B9E0 (strcpy) redirected to 0x43C16E0 (strcpy) ==12253== Warning: noted but unhandled ioctl 0x5601 with no size/direction hints ==12253== This could cause spurious value errors to appear. ==12253== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper. ==12253== Warning: noted but unhandled ioctl 0x5601 with no size/direction hints ==12253== This could cause spurious value errors to appear. ==12253== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper. ==12253== Warning: noted but unhandled ioctl 0x5601 with no size/direction hints ==12253== This could cause spurious value errors to appear. ==12253== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper. ==12253== ==12253== Use of uninitialised value of size 4 ==12253== at 0x454B2A7: (within /lib32/libc-2.3.6.so) ==12253== by 0x454E719: vfprintf (in /lib32/libc-2.3.6.so) ==12253== by 0x4567FCA: vsprintf (in /lib32/libc-2.3.6.so) ==12253== by 0x4554A2A: sprintf (in /lib32/libc-2.3.6.so) ==12253== by 0x44653AF: __svgalib_open_devconsole (in /usr/lib32/libvga.so.1.9.25) ==12253== ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x454B2AF: (within /lib32/libc-2.3.6.so) ==12253== by 0x454E719: vfprintf (in /lib32/libc-2.3.6.so) ==12253== by 0x4567FCA: vsprintf (in /lib32/libc-2.3.6.so) ==12253== by 0x4554A2A: sprintf (in /lib32/libc-2.3.6.so) ==12253== by 0x44653AF: __svgalib_open_devconsole (in /usr/lib32/libvga.so.1.9.25) [svgalib: allocated virtual console #8] ==12253== ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x4465595: __svgalib_open_devconsole (in /usr/lib32/libvga.so.1.9.25) ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x100506: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x100506: ??? ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x100506: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x100506: ??? ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x446498F: __svgalib_pci_find_vendor_vga_pos (in /usr/lib32/libvga.so.1.9.25) ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x60400BF: ??? ...removed more than a megabyte of similar error messages... ==12253== by 0x200001F: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x200001F: ??? ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x200001F: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x200001F: ??? ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x200001F: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x200001F: ??? ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x200001F: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x200001F: ??? ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x200001F: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x200001F: ??? ==12253== Warning: invalid file descriptor -1 in syscall read() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x200001F: ??? ==12253== Warning: invalid file descriptor -1 in syscall close() ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x200001F: ??? --12253-- REDIR: 0x457D0F0 (memset) redirected to 0x43C13C0 (memset) --12253-- REDIR: 0x457CBF0 (memchr) redirected to 0x43C11D0 (memchr) ==12253== ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x445DB64: (within /usr/lib32/libvga.so.1.9.25) ==12253== by 0x4525EAB: __libc_start_main (in /lib32/libc-2.3.6.so) ==12253== ==12253== Syscall param ioctl(arg) contains uninitialised byte(s) ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x4525EAB: __libc_start_main (in /lib32/libc-2.3.6.so) ==12253== ==12253== ERROR SUMMARY: 2110 errors from 12 contexts (suppressed: 0 from 0) ==12253== ==12253== 1 errors in context 1 of 12: ==12253== Syscall param ioctl(arg) contains uninitialised byte(s) ==12253== at 0x4100762: (within /lib32/ld-2.3.6.so) ==12253== by 0x4525EAB: __libc_start_main (in /lib32/libc-2.3.6.so) ==12253== ==12253== 1 errors in context 2 of 12: ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x445DB64: (within /usr/lib32/libvga.so.1.9.25) ==12253== by 0x4525EAB: __libc_start_main (in /lib32/libc-2.3.6.so) ==12253== ==12253== 1 errors in context 3 of 12: ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x4465595: __svgalib_open_devconsole (in /usr/lib32/libvga.so.1.9.25) ==12253== ==12253== 1 errors in context 4 of 12: ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x454B2AF: (within /lib32/libc-2.3.6.so) ==12253== by 0x454E719: vfprintf (in /lib32/libc-2.3.6.so) ==12253== by 0x4567FCA: vsprintf (in /lib32/libc-2.3.6.so) ==12253== by 0x4554A2A: sprintf (in /lib32/libc-2.3.6.so) ==12253== by 0x44653AF: __svgalib_open_devconsole (in /usr/lib32/libvga.so.1.9.25) ==12253== ==12253== 1 errors in context 5 of 12: ==12253== Use of uninitialised value of size 4 ==12253== at 0x454B2A7: (within /lib32/libc-2.3.6.so) ==12253== by 0x454E719: vfprintf (in /lib32/libc-2.3.6.so) ==12253== by 0x4567FCA: vsprintf (in /lib32/libc-2.3.6.so) ==12253== by 0x4554A2A: sprintf (in /lib32/libc-2.3.6.so) ==12253== by 0x44653AF: __svgalib_open_devconsole (in /usr/lib32/libvga.so.1.9.25) ==12253== ==12253== 1 errors in context 6 of 12: ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x4109BD0: (within /lib32/ld-2.3.6.so) ==12253== by 0x4102B02: (within /lib32/ld-2.3.6.so) ==12253== by 0x411033F: (within /lib32/ld-2.3.6.so) ==12253== by 0x410144F: (within /lib32/ld-2.3.6.so) ==12253== by 0x4100786: (within /lib32/ld-2.3.6.so) ==12253== ==12253== 1 errors in context 7 of 12: ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x4109A8D: (within /lib32/ld-2.3.6.so) ==12253== by 0x4102B02: (within /lib32/ld-2.3.6.so) ==12253== by 0x411033F: (within /lib32/ld-2.3.6.so) ==12253== by 0x410144F: (within /lib32/ld-2.3.6.so) ==12253== by 0x4100786: (within /lib32/ld-2.3.6.so) ==12253== ==12253== 1 errors in context 8 of 12: ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x4109A54: (within /lib32/ld-2.3.6.so) ==12253== by 0x4102B02: (within /lib32/ld-2.3.6.so) ==12253== by 0x411033F: (within /lib32/ld-2.3.6.so) ==12253== by 0x410144F: (within /lib32/ld-2.3.6.so) ==12253== by 0x4100786: (within /lib32/ld-2.3.6.so) ==12253== ==12253== 2 errors in context 9 of 12: ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x410A420: (within /lib32/ld-2.3.6.so) ==12253== by 0x4102A91: (within /lib32/ld-2.3.6.so) ==12253== by 0x411033F: (within /lib32/ld-2.3.6.so) ==12253== by 0x410144F: (within /lib32/ld-2.3.6.so) ==12253== by 0x4100786: (within /lib32/ld-2.3.6.so) ==12253== ==12253== 5 errors in context 10 of 12: ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x4109BD0: (within /lib32/ld-2.3.6.so) ==12253== by 0x4102A91: (within /lib32/ld-2.3.6.so) ==12253== by 0x411033F: (within /lib32/ld-2.3.6.so) ==12253== by 0x410144F: (within /lib32/ld-2.3.6.so) ==12253== by 0x4100786: (within /lib32/ld-2.3.6.so) ==12253== ==12253== 7 errors in context 11 of 12: ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x4109BA0: (within /lib32/ld-2.3.6.so) ==12253== by 0x4102A91: (within /lib32/ld-2.3.6.so) ==12253== by 0x411033F: (within /lib32/ld-2.3.6.so) ==12253== by 0x410144F: (within /lib32/ld-2.3.6.so) ==12253== by 0x4100786: (within /lib32/ld-2.3.6.so) ==12253== ==12253== 2088 errors in context 12 of 12: ==12253== Conditional jump or move depends on uninitialised value(s) ==12253== at 0x446498F: __svgalib_pci_find_vendor_vga_pos (in /usr/lib32/libvga.so.1.9.25) ==12253== IN SUMMARY: 2110 errors from 12 contexts (suppressed: 0 from 0) ==12253== ==12253== malloc/free: in use at exit: 262,442 bytes in 10 blocks. ==12253== malloc/free: 179 allocs, 169 frees, 274,626 bytes allocated. ==12253== ==12253== searching for pointers to 10 not-freed blocks. ==12253== checked 1,598,048 bytes. ==12253== ==12253== LEAK SUMMARY: ==12253== definitely lost: 0 bytes in 0 blocks. ==12253== possibly lost: 0 bytes in 0 blocks. ==12253== still reachable: 262,442 bytes in 10 blocks. ==12253== suppressed: 0 bytes in 0 blocks. ==12253== Reachable blocks (those to which a pointer was found) are not shown. ==12253== To see them, rerun with: --show-reachable=yes --12253-- memcheck: sanity checks: 65 cheap, 3 expensive --12253-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --12253-- memcheck: auxmaps: 0 searches, 0 comparisons --12253-- memcheck: secondaries: 29 issued (1856k, 1M) --12253-- memcheck: secondaries: 39 accessible and distinguished (2496k, 2M) --12253-- tt/tc: 22,703 tt lookups requiring 29,938 probes --12253-- tt/tc: 22,703 fast-cache updates, 2 flushes --12253-- translate: new 4,370 (89,493 -> 1,429,848; ratio 159:10) [0 scs] --12253-- translate: dumped 0 (0 -> ??) --12253-- translate: discarded 0 (0 -> ??) --12253-- scheduler: 3,257,086 jumps (bb entries). --12253-- scheduler: 65/46,690 major/minor sched events. --12253-- sanity: 66 cheap, 3 expensive checks. --12253-- exectx: 30,011 lists, 46 contexts (avg 0 per list) --12253-- exectx: 2,458 searches, 2,412 full compares (981 per 1000) --12253-- exectx: 0 cmp2, 2,165 cmp4, 0 cmpAll