|
From: Htin H. <hh...@ve...> - 2004-09-21 22:28:46
|
Hi, I am a new user of valgrind. If I run my executable by itself, it runs fine but the valgrind, it is not ok. It produces the following output... It says undefined symbol. Any help and pointer is appreciated. [192.168.10.118] /usr/local/valgrind/bin/valgrind -v --leak-check=3Dyes VAScanTest=20 =3D=3D793=3D=3D Memcheck, a memory error detector for x86-linux. =3D=3D793=3D=3D Copyright (C) 2002-2004, and GNU GPL'd, by Julian = Seward. =3D=3D793=3D=3D Using valgrind-2.1.0, a program supervision framework = for x86-linux. =3D=3D793=3D=3D Copyright (C) 2000-2004, and GNU GPL'd, by Julian = Seward. =3D=3D793=3D=3D Valgrind library directory: = /usr/local/valgrind/lib/valgrind =3D=3D793=3D=3D Command line =3D=3D793=3D=3D VAScanTest =3D=3D793=3D=3D Startup, with flags: =3D=3D793=3D=3D -v =3D=3D793=3D=3D --leak-check=3Dyes =3D=3D793=3D=3D Reading syms from VAScanTest (0x8048000) =3D=3D793=3D=3D Reading syms from /usr/libexec/ld-elf.so.1 (0x3C000000) =3D=3D793=3D=3D object doesn't have a symbol table =3D=3D793=3D=3D object doesn't have any debug info =3D=3D793=3D=3D Reading syms from /usr/lib/libc.so.4 (0xB001D000) =3D=3D793=3D=3D Reading syms from /usr/local/valgrind/lib/valgrind/vgskin_memcheck.so (0xB00B4000) =3D=3D793=3D=3D Reading syms from /usr/local/valgrind/bin/valgrind = (0xB8000000) =3D=3D793=3D=3D object doesn't have a dynamic symbol table =3D=3D793=3D=3D Reading suppressions file: /usr/local/valgrind/lib/valgrind/default.supp =3D=3D793=3D=3D Estimated CPU clock rate is 1835 MHz =3D=3D793=3D=3D REDIRECT soname:libc.so.6(__GI___errno_location) to soname:libpthread.so.0(__errno_location) =3D=3D793=3D=3D REDIRECT soname:libc.so.6(__errno_location) to soname:libpthread.so.0(__errno_location) =3D=3D793=3D=3D REDIRECT soname:libc.so.6(__GI___h_errno_location) to soname:libpthread.so.0(__h_errno_location) =3D=3D793=3D=3D REDIRECT soname:libc.so.6(__h_errno_location) to soname:libpthread.so.0(__h_errno_location) =3D=3D793=3D=3D REDIRECT soname:libc.so.6(__GI___res_state) to soname:libpthread.so.0(__res_state) =3D=3D793=3D=3D REDIRECT soname:libc.so.6(__res_state) to soname:libpthread.so.0(__res_state) =3D=3D793=3D=3D REDIRECT soname:libc.so.6(stpcpy) to *vgpreload_memcheck.so*(stpcpy) =3D=3D793=3D=3D REDIRECT soname:libc.so.6(strnlen) to *vgpreload_memcheck.so*(strnlen) =3D=3D793=3D=3D REDIRECT soname:ld-linux.so.2(stpcpy) to *vgpreload_memcheck.so*(stpcpy) =3D=3D793=3D=3D REDIRECT soname:ld-linux.so.2(strchr) to *vgpreload_memcheck.so*(strchr) =3D=3D793=3D=3D=20 =3D=3D793=3D=3D Warning: ignoring --pointercheck=3Dyes, because = i386_set_ldt failed (errno=3D45) =3D=3D793=3D=3D Reading syms from = /usr/local/valgrind/lib/valgrind/vg_inject.so (0x3C01F000) =3D=3D793=3D=3D Reading syms from /usr/local/valgrind/lib/valgrind/vgpreload_memcheck.so (0x3C022000) =3D=3D793=3D=3D Reading syms from /usr/local/lib/libvascan.so.0.0 = (0x3C028000) =3D=3D793=3D=3D Reading syms from /usr/local/lib/libvnifull.so.0.0 = (0x3C062000) =3D=3D793=3D=3D Reading syms from /usr/lib/libutil.so.3 (0x3C172000) =3D=3D793=3D=3D object doesn't have a symbol table =3D=3D793=3D=3D object doesn't have any debug info =3D=3D793=3D=3D Reading syms from /usr/local/lib/librdal.so.0.0 = (0x3C17C000) =3D=3D793=3D=3D Reading syms from /usr/local/lib/libdtl.so.0.0 = (0x3C6B8000) =3D=3D793=3D=3D Reading syms from /usr/local/lib/libtpcap.so.0.0 = (0x3C72E000) =3D=3D793=3D=3D Reading syms from /usr/local/lib/libexpat.so.4 = (0x3C753000) =3D=3D793=3D=3D object doesn't have any debug info =3D=3D793=3D=3D Reading syms from /usr/local/lib/libodbc.so.1 = (0x3C770000) =3D=3D793=3D=3D Reading syms from /usr/local/lib/libiconv.so.3 = (0x3C7CA000) =3D=3D793=3D=3D object doesn't have any debug info =3D=3D793=3D=3D Reading syms from /usr/local/lib/libssl.so.3 = (0x3C8A6000) =3D=3D793=3D=3D object doesn't have any debug info =3D=3D793=3D=3D Reading syms from /usr/local/lib/libcrypto.so.3 = (0x3C8D5000) =3D=3D793=3D=3D object doesn't have any debug info =3D=3D793=3D=3D Reading syms from /usr/local/lib/libapr-0.so.9 = (0x3C9C3000) =3D=3D793=3D=3D Reading syms from /usr/local/lib/libdmallocthcxx.so.1 (0x3C9E2000) =3D=3D793=3D=3D Reading syms from /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.3.1/libstdc++.so.5 (0x3CA8A000) =3D=3D793=3D=3D object doesn't have any debug info =3D=3D793=3D=3D Reading syms from /usr/lib/libm.so.2 (0x3CAF8000) =3D=3D793=3D=3D object doesn't have a symbol table =3D=3D793=3D=3D object doesn't have any debug info =3D=3D793=3D=3D Reading syms from /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.3.1/libgcc_s.so.1 (0x3CB11000) =3D=3D793=3D=3D Reading syms from = /usr/local/valgrind/lib/valgrind/libc_r.so.4 (0x3CB1A000) =3D=3D793=3D=3D Reading syms from /usr/lib/libc.so.4 (0x3CB38000) /usr/libexec/ld-elf.so.1: /usr/local/lib/libdmallocthcxx.so.1: Undefined symbol "__sys_write" =3D=3D793=3D=3D=20 =3D=3D793=3D=3D ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 = from 0) =3D=3D793=3D=3D malloc/free: in use at exit: 0 bytes in 0 blocks. =3D=3D793=3D=3D malloc/free: 0 allocs, 0 frees, 0 bytes allocated. =3D=3D793=3D=3D=20 =3D=3D793=3D=3D No malloc'd blocks -- no leaks are possible. --793-- TT/TC: 0 tc sectors discarded. --793-- 639 chainings, 0 unchainings. --793-- translate: new 783 (11894 -> 178660; ratio 150:10) --793-- discard 0 (0 -> 0; ratio 0:10). --793-- dispatch: 10700000 jumps (bb entries), of which 599858 (5%) were unchained. --793-- 262/1315 major/minor sched events. 784 tt_fast misses. --793-- reg-alloc: 110 t-req-spill, 33234+492 orig+spill uis, 3893 total-reg-r. --793-- sanity: 263 cheap, 11 expensive checks. --793-- ccalls: 3836 C calls, 54% saves+restores avoided (12286 bytes) --793-- 4881 args, avg 0.91 setup instrs each (860 bytes) --793-- 0% clear the stack (11508 bytes) --793-- 1322 retvals, 35% of reg-reg movs avoided (922 bytes) Thanks, Htin |