I built valgrind 3.1.0 with the given patch, but for some reason
valgrind fails to start the program correctly; I attached the log of a
run; When I do not run with valgrind the program starts successfully.
What is wrong? how should I get valgrind with the program running?
Script started on Mon Feb 6 19:16:17 2006
[19:16:[EMAIL PROTECTED]:~/.wine/drive_c/Program Files/KnightsAndMerchants$
valgrind --leak-check=full --trace-children=yes wine KaM_800.exe
==29564== Memcheck, a memory error detector.
==29564== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==29564== Using LibVEX rev 1471, a library for dynamic binary translation.
==29564== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==29564== Using valgrind-3.1.0, a dynamic binary instrumentation framework.
==29564== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==29564== For more details, rerun with: -v
==29564==
--29564-- DWARF2 CFI reader: unhandled CFI instruction 0:50
--29564-- DWARF2 CFI reader: unhandled CFI instruction 0:50
--29564-- DWARF2 CFI reader: unhandled CFI instruction 0:50
--29564-- DWARF2 CFI reader: unhandled CFI instruction 0:50
==29564== Memcheck, a memory error detector.
==29564== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==29564== Using LibVEX rev 1471, a library for dynamic binary translation.
==29564== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==29564== Using valgrind-3.1.0, a dynamic binary instrumentation framework.
==29564== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==29564== For more details, rerun with: -v
==29564==
==29564== Warning: set address range perms: large range 535756800, a 0, v 0
--29564-- DWARF2 CFI reader: unhandled CFI instruction 0:50
--29564-- DWARF2 CFI reader: unhandled CFI instruction 0:50
--29564-- DWARF2 CFI reader: unhandled CFI instruction 0:50
--29564-- DWARF2 CFI reader: unhandled CFI instruction 0:50
==29564== Warning: set address range perms: large range 1040056320, a 0, v 0
==29564== Warning: set address range perms: large range 1040056320, a 1, v 1
==29564== Warning: set address range perms: large range 520028160, a 0, v 0
==29564== Warning: set address range perms: large range 520028160, a 0, v 0
==29564== Warning: set address range perms: large range 520028160, a 1, v 1
==29564== Warning: set address range perms: large range 259981312, a 0, v 0
==29564== Warning: set address range perms: large range 260046848, a 0, v 0
==29564== Warning: set address range perms: large range 260046848, a 1, v 1
==29564== Warning: set address range perms: large range 130023424, a 0, v 0
==29564== Warning: set address range perms: large range 130023424, a 1, v 1
==29564== Warning: set address range perms: large range 130023424, a 0, v 0
==29564== Warning: set address range perms: large range 545259520, a 0, v 0
==29564== Warning: set address range perms: large range 545259520, a 1, v 1
==29564== Warning: set address range perms: large range 272629760, a 0, v 0
==29564== Warning: set address range perms: large range 272629760, a 1, v 1
==29564== Warning: set address range perms: large range 136314880, a 0, v 0
==29564== Warning: set address range perms: large range 136314880, a 1, v 1
==29566== Memcheck, a memory error detector.
==29566== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==29566== Using LibVEX rev 1471, a library for dynamic binary translation.
==29566== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==29566== Using valgrind-3.1.0, a dynamic binary instrumentation framework.
==29566== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==29566== For more details, rerun with: -v
==29566==
--29566-- DWARF2 CFI reader: unhandled CFI instruction 0:50
--29566-- DWARF2 CFI reader: unhandled CFI instruction 0:50
==29566==
==29566== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 25 from 1)
==29566== malloc/free: in use at exit: 277 bytes in 14 blocks.
==29566== malloc/free: 69 allocs, 55 frees, 6,209 bytes allocated.
==29566== For counts of detected errors, rerun with: -v
==29566== searching for pointers to 14 not-freed blocks.
==29566== checked 182,280 bytes.
==29566==
==29566== 156 (36 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 1 of 4
==29566== at 0x401B65A: malloc (in /usr/local/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==29566== by 0x4228EE6: (within /lib/tls/libc-2.3.2.so)
==29566== by 0x4228788: __nss_database_lookup (in /lib/tls/libc-2.3.2.so)
==29566== by 0x437CAFB: ???
==29566== by 0x41E9D4B: getpwuid_r (in /lib/tls/libc-2.3.2.so)
==29566== by 0x41E9590: getpwuid (in /lib/tls/libc-2.3.2.so)
==29566== by 0x4021D67: (within /usr/local/lib/libwine.so.1)
==29566== by 0x402218C: wine_get_server_dir (in /usr/local/lib/libwine.so.1)
==29566== by 0x8068570: (within /usr/local/bin/wineserver)
==29566== by 0x8068BAD: (within /usr/local/bin/wineserver)
==29566== by 0x8058452: (within /usr/local/bin/wineserver)
==29566== by 0x4156973: __libc_start_main (in /lib/tls/libc-2.3.2.so)
==29566==
==29566== LEAK SUMMARY:
==29566== definitely lost: 36 bytes in 1 blocks.
==29566== indirectly lost: 120 bytes in 10 blocks.
==29566== possibly lost: 0 bytes in 0 blocks.
==29566== still reachable: 121 bytes in 3 blocks.
==29566== suppressed: 0 bytes in 0 blocks.
==29566== Reachable blocks (those to which a pointer was found) are not shown.
==29566== To see them, rerun with: --show-reachable=yes
==29564== Warning: noted but unhandled ioctl 0x30B with no size/direction hints
==29564== This could cause spurious value errors to appear.
==29564== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==29564== Syscall param writev(vector[...]) points to uninitialised byte(s)
==29564== at 0x2012B5E8: (within /lib/tls/libc-2.3.2.so)
==29564== by 0x202E3377: (within /usr/local/lib/wine/ntdll.dll.so)
==29564== by 0x202E34C7: wine_server_call (in /usr/local/lib/wine/ntdll.dll.so)
==29564== by 0x202D70D8: NtSetValueKey (in /usr/local/lib/wine/ntdll.dll.so)
==29564== by 0x205D9E72: (within /usr/local/lib/wine/kernel32.dll.so)
==29564== by 0x205DA2A7: (within /usr/local/lib/wine/kernel32.dll.so)
==29564== by 0x205DFF96: (within /usr/local/lib/wine/kernel32.dll.so)
==29564== by 0x205E024A: __wine_kernel_init (in /usr/local/lib/wine/kernel32.dll.so)
==29564== by 0x202CE093: __wine_process_init (in /usr/local/lib/wine/ntdll.dll.so)
==29564== by 0x20024985: wine_init (in /usr/local/lib/libwine.so.1)
==29564== by 0x7BF010E9: main (in /usr/local/bin/wine-pthread)
==29564== Address 0xBEFFE884 is on thread 1's stack
==29564== Warning: client switching stacks? SP change: 0xBEFFEB2C --> 0x2091FFF0
==29564== to suppress, use: --max-stackframe=1636963524 or greater
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21A175BC: (within /usr/lib/libGL.so.1.0.7174)
==29564== Address 0x2091FA74 is on thread 1's stack
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21A175E6: (within /usr/lib/libGL.so.1.0.7174)
==29564== Address 0x2091FA60 is on thread 1's stack
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x219F76C7: (within /usr/lib/libGL.so.1.0.7174)
==29564== Address 0x2091FA4C is on thread 1's stack
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21D1609C: (within /usr/lib/libGLcore.so.1.0.7174)
==29564== Address 0x2091F940 is on thread 1's stack
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21D160C9: (within /usr/lib/libGLcore.so.1.0.7174)
==29564== Address 0x2091F940 is on thread 1's stack
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21D160F3: (within /usr/lib/libGLcore.so.1.0.7174)
==29564== Address 0x2091F930 is on thread 1's stack
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21D16123: (within /usr/lib/libGLcore.so.1.0.7174)
==29564== Address 0x2091F940 is on thread 1's stack
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21D16153: (within /usr/lib/libGLcore.so.1.0.7174)
==29564== Address 0x2091F940 is on thread 1's stack
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21D1618E: (within /usr/lib/libGLcore.so.1.0.7174)
==29564== Address 0x2091F930 is on thread 1's stack
==29564==
==29564== Conditional jump or move depends on uninitialised value(s)
==29564== at 0x21D1619D: (within /usr/lib/libGLcore.so.1.0.7174)
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21D161BF: (within /usr/lib/libGLcore.so.1.0.7174)
==29564== Address 0x2091F930 is on thread 1's stack
==29564==
==29564== Conditional jump or move depends on uninitialised value(s)
==29564== at 0x21D161D1: (within /usr/lib/libGLcore.so.1.0.7174)
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21D1620A: (within /usr/lib/libGLcore.so.1.0.7174)
==29564== Address 0x2091F940 is on thread 1's stack
==29564==
==29564== Conditional jump or move depends on uninitialised value(s)
==29564== at 0x21D16222: (within /usr/lib/libGLcore.so.1.0.7174)
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21D1633C: (within /usr/lib/libGLcore.so.1.0.7174)
==29564== Address 0x2091F9FC is on thread 1's stack
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21D163ED: (within /usr/lib/libGLcore.so.1.0.7174)
==29564== Address 0x2091FA0C is on thread 1's stack
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21D16413: (within /usr/lib/libGLcore.so.1.0.7174)
==29564== Address 0x2091FA0C is on thread 1's stack
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x219FEAD8: (within /usr/lib/libGL.so.1.0.7174)
==29564== Address 0x2091FA18 is on thread 1's stack
==29564==
==29564== Syscall param ioctl(generic) points to uninitialised byte(s)
==29564== at 0x2012B114: ioctl (in /lib/tls/libc-2.3.2.so)
==29564== by 0x21A1771A: (within /usr/lib/libGL.so.1.0.7174)
==29564== Address 0x2091FA4C is on thread 1's stack
--29564-- INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--29564-- si_code=1; Faulting address: 0x6E746170; sp: 0x62348D10
valgrind: the 'impossible' happened:
Killed by fatal signal
==29564== at 0xB0020892: (within /usr/local/lib/valgrind/x86-linux/memcheck)
==29564== by 0xB00209D2: (within /usr/local/lib/valgrind/x86-linux/memcheck)
==29564== by 0xB0011369: (within /usr/local/lib/valgrind/x86-linux/memcheck)
==29564== by 0xB0001703: (within /usr/local/lib/valgrind/x86-linux/memcheck)
==29564== by 0xB000184E: (within /usr/local/lib/valgrind/x86-linux/memcheck)
==29564== by 0xB0035DE2: (within /usr/local/lib/valgrind/x86-linux/memcheck)
==29564== by 0xB00357CB: (within /usr/local/lib/valgrind/x86-linux/memcheck)
==29564== by 0xB0049BC2: (within /usr/local/lib/valgrind/x86-linux/memcheck)
==29564== by 0xB0049CD9: (within /usr/local/lib/valgrind/x86-linux/memcheck)
sched status:
running_tid=1
Thread 1: status = VgTs_Runnable
Segmentation fault
[19:16:[EMAIL PROTECTED]:~/.wine/drive_c/Program Files/KnightsAndMerchants$
==29567==
==29567== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 28 from 2)
==29567== malloc/free: in use at exit: 1,536 bytes in 21 blocks.
==29567== malloc/free: 29,391 allocs, 29,370 frees, 2,013,256 bytes allocated.
==29567== For counts of detected errors, rerun with: -v
==29567== searching for pointers to 21 not-freed blocks.
==29567== checked 182,604 bytes.
==29567==
==29567== 156 (36 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 1 of 6
==29567== at 0x401B65A: malloc (in /usr/local/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==29567== by 0x4228EE6: (within /lib/tls/libc-2.3.2.so)
==29567== by 0x4228788: __nss_database_lookup (in /lib/tls/libc-2.3.2.so)
==29567== by 0x437CAFB: ???
==29567== by 0x41E9D4B: getpwuid_r (in /lib/tls/libc-2.3.2.so)
==29567== by 0x41E9590: getpwuid (in /lib/tls/libc-2.3.2.so)
==29567== by 0x4021D67: (within /usr/local/lib/libwine.so.1)
==29567== by 0x402218C: wine_get_server_dir (in /usr/local/lib/libwine.so.1)
==29567== by 0x8068570: (within /usr/local/bin/wineserver)
==29567== by 0x8068BAD: (within /usr/local/bin/wineserver)
==29567== by 0x8058452: (within /usr/local/bin/wineserver)
==29567== by 0x4156973: __libc_start_main (in /lib/tls/libc-2.3.2.so)
==29567==
==29567== LEAK SUMMARY:
==29567== definitely lost: 36 bytes in 1 blocks.
==29567== indirectly lost: 120 bytes in 10 blocks.
==29567== possibly lost: 0 bytes in 0 blocks.
==29567== still reachable: 1,380 bytes in 10 blocks.
==29567== suppressed: 0 bytes in 0 blocks.
==29567== Reachable blocks (those to which a pointer was found) are not shown.
==29567== To see them, rerun with: --show-reachable=yes
[A
[19:16:[EMAIL PROTECTED]:~/.wine/drive_c/Program Files/KnightsAndMerchants$[K
[19:17:[EMAIL PROTECTED]:~/.wine/drive_c/Program Files/KnightsAndMerchants$
exit
Script done on Mon Feb 6 19:17:18 2006