|
From: Amol K. <am...@in...> - 2003-11-14 17:33:44
|
Hi Attched is the output of ./valgrind -v ls -al [test@mmsc bin]$ ./valgrind -v ls -al ==5684== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==5684== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==5684== Using valgrind-2.0.0, a program supervision framework for x86-linux. ==5684== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward. ==5684== Command line: ==5684== ls ==5684== -al ==5684== Startup, with flags: ==5684== --suppressions=/usr/local/bin/valgrind-2.0.0//lib/valgrind/d efault.s upp ==5684== -v ==5684== Reading syms from /bin/ls ==5684== object doesn't have a symbol table ==5684== object doesn't have any debug info ==5684== Reading syms from /lib/ld-2.2.2.so ==5684== Reading syms from /usr/local/bin/valgrind-2.0.0/lib/valgrind/vgskin_mem check.so ==5684== Reading syms from /usr/local/bin/valgrind-2.0.0/lib/valgrind/valgrind.s o ==5684== Reading syms from /lib/libtermcap.so.2.0.8 ==5684== object doesn't have a symbol table ==5684== object doesn't have any debug info ==5684== Reading syms from /lib/i686/libc-2.2.2.so ==5684== Reading suppressions file: /usr/local/bin/valgrind-2.0.0//lib/valgrind/ default.supp ==5684== Estimated CPU clock rate is 751 MHz ==5684== ==5684== Reading syms from /lib/libnss_files-2.2.2.so total 1336 drwxrwxr-x 2 root root 4096 Nov 14 18:35 . drwxrwxr-x 17 root root 4096 Nov 14 13:12 .. -rwxrwxrwx 1 root root 31885 Nov 14 12:13 cg_annotate -rw------- 1 root root 2637824 Nov 14 18:34 core -rwxrwxrwx 1 root root 0 Nov 14 18:37 test.log -rwxrwxrwx 1 root root 5610 Nov 14 12:13 valgrind -rwxrwxrwx 1 root root 61561 Nov 14 12:13 valgrind-listener ==5684== Invalid read of size 4 ==5684== at 0x40262C83: _nl_unload_locale (loadlocale.c:237) ==5684== by 0x4026279C: free_mem (findlocale.c:257) ==5684== by 0x402C1961: __libc_freeres (set-freeres.c:34) ==5684== by 0x40186E43: vgPlain___libc_freeres_wrapper (vg_intercept.c:873) ==5684== Address 0x40C95050 is 12 bytes inside a block of size 380 free'd ==5684== at 0x4002BEA7: free (vg_replace_malloc.c:231) ==5684== by 0x40262CB9: _nl_unload_locale (loadlocale.c:245) ==5684== by 0x40262217: free_mem (setlocale.c:460) ==5684== by 0x402C1961: __libc_freeres (set-freeres.c:34) ==5684== ==5684== Invalid read of size 4 ==5684== at 0x40262C8A: _nl_unload_locale (loadlocale.c:238) ==5684== by 0x4026279C: free_mem (findlocale.c:257) ==5684== by 0x402C1961: __libc_freeres (set-freeres.c:34) ==5684== by 0x40186E43: vgPlain___libc_freeres_wrapper (vg_intercept.c:873) ==5684== Address 0x40C9504C is 8 bytes inside a block of size 380 free'd ==5684== at 0x4002BEA7: free (vg_replace_malloc.c:231) ==5684== by 0x40262CB9: _nl_unload_locale (loadlocale.c:245) ==5684== by 0x40262217: free_mem (setlocale.c:460) ==5684== by 0x402C1961: __libc_freeres (set-freeres.c:34) ==5684== ==5684== Invalid read of size 4 ==5684== at 0x40262C91: _nl_unload_locale (loadlocale.c:238) ==5684== by 0x4026279C: free_mem (findlocale.c:257) ==5684== by 0x402C1961: __libc_freeres (set-freeres.c:34) ==5684== by 0x40186E43: vgPlain___libc_freeres_wrapper (vg_intercept.c:873) ==5684== Address 0x40C95048 is 4 bytes inside a block of size 380 free'd ==5684== at 0x4002BEA7: free (vg_replace_malloc.c:231) ==5684== by 0x40262CB9: _nl_unload_locale (loadlocale.c:245) ==5684== by 0x40262217: free_mem (setlocale.c:460) ==5684== by 0x402C1961: __libc_freeres (set-freeres.c:34) [amol@mmsc bin]$ ./valgrind -v ls -al ==5691== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==5691== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward. ==5691== Using valgrind-2.0.0, a program supervision framework for x86-linux. ==5691== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward. ==5691== Command line: ==5691== ls ==5691== -al ==5691== Startup, with flags: ==5691== --suppressions=/usr/local/bin/valgrind-2.0.0//lib/valgrind/d efault.s upp ==5691== -v ==5691== Reading syms from /bin/ls ==5691== object doesn't have a symbol table ==5691== object doesn't have any debug info ==5691== Reading syms from /lib/ld-2.2.2.so ==5691== Reading syms from /usr/local/bin/valgrind-2.0.0/lib/valgrind/vgskin_mem check.so ==5691== Reading syms from /usr/local/bin/valgrind-2.0.0/lib/valgrind/valgrind.s o ==5691== Reading syms from /lib/libtermcap.so.2.0.8 ==5691== object doesn't have a symbol table ==5691== object doesn't have any debug info ==5691== Reading syms from /lib/i686/libc-2.2.2.so ==5691== Reading suppressions file: /usr/local/bin/valgrind-2.0.0//lib/valgrind/ default.supp ==5691== Estimated CPU clock rate is 752 MHz ==5691== total 1336 ==5691== Reading syms from /lib/libnss_files-2.2.2.so drwxrwxr-x 2 root root 4096 Nov 14 18:35 . drwxrwxr-x 17 root root 4096 Nov 14 13:12 .. -rwxrwxrwx 1 root root 31885 Nov 14 12:13 cg_annotate -rw------- 1 root root 2637824 Nov 14 18:34 core -rwxrwxrwx 1 root root 0 Nov 14 18:37 test.log -rwxrwxrwx 1 root root 5610 Nov 14 12:13 valgrind -rwxrwxrwx 1 root root 61561 Nov 14 12:13 valgrind-listener ==5691== Invalid read of size 4 ==5691== at 0x40262C83: _nl_unload_locale (loadlocale.c:237) ==5691== by 0x4026279C: free_mem (findlocale.c:257) ==5691== by 0x402C1961: __libc_freeres (set-freeres.c:34) ==5691== by 0x40186E43: vgPlain___libc_freeres_wrapper (vg_intercept.c:873) ==5691== Address 0x40C95050 is 12 bytes inside a block of size 380 free'd ==5691== at 0x4002BEA7: free (vg_replace_malloc.c:231) ==5691== by 0x40262CB9: _nl_unload_locale (loadlocale.c:245) ==5691== by 0x40262217: free_mem (setlocale.c:460) ==5691== by 0x402C1961: __libc_freeres (set-freeres.c:34) ==5691== ==5691== Invalid read of size 4 ==5691== at 0x40262C8A: _nl_unload_locale (loadlocale.c:238) ==5691== by 0x4026279C: free_mem (findlocale.c:257) ==5691== by 0x402C1961: __libc_freeres (set-freeres.c:34) ==5691== by 0x40186E43: vgPlain___libc_freeres_wrapper (vg_intercept.c:873) ==5691== Address 0x40C9504C is 8 bytes inside a block of size 380 free'd ==5691== at 0x4002BEA7: free (vg_replace_malloc.c:231) ==5691== by 0x40262CB9: _nl_unload_locale (loadlocale.c:245) ==5691== by 0x40262217: free_mem (setlocale.c:460) ==5691== by 0x402C1961: __libc_freeres (set-freeres.c:34) ==5691== ==5691== Invalid read of size 4 ==5691== at 0x40262C91: _nl_unload_locale (loadlocale.c:238) ==5691== by 0x4026279C: free_mem (findlocale.c:257) ==5691== by 0x402C1961: __libc_freeres (set-freeres.c:34) ==5691== by 0x40186E43: vgPlain___libc_freeres_wrapper (vg_intercept.c:873) ==5691== Address 0x40C95048 is 4 bytes inside a block of size 380 free'd ==5691== at 0x4002BEA7: free (vg_replace_malloc.c:231) ==5691== by 0x40262CB9: _nl_unload_locale (loadlocale.c:245) ==5691== by 0x40262217: free_mem (setlocale.c:460) ==5691== by 0x402C1961: __libc_freeres (set-freeres.c:34) Segmentation fault [amol@mmsc bin]$ -----Original Message----- From: Nicholas Nethercote [mailto:nj...@he...]On Behalf Of Nicholas Nethercote Sent: Friday, November 14, 2003 4:51 PM To: Test Valgrind Cc: Valgrind Users Subject: Re: running valgrind on Red Hat Linux release 7.1 (Seawolf) Kernel 2.4.2-2 On Fri, 14 Nov 2003, Test Valgrind wrote: > I downloaded the valgrind sources (both Valgrind version 20031012 and > valgrind-2.0) from http://valgrind.kde.org. > > As per the README, used the following commands > > ./configure --prefix /usr/local/bin > make > make install > > I guess both the times the valgrind was compiled and installed > correctly. I also tried once with ./configure only (i.e. without giving > prefix option). Also tried using the setting up specific paths. But > still all the time I am getting the segmentation fault whenever I run > "./valgrind ls -al". Can you send the entire output of "./valgrind -v ls -al"? Thanks. N |