|
From: Ahmet B.
|
>Basic fault isolation (divide and conquer): >Does "valgrind /bin/date" run on your system? Below is the result... I guess the answer is "NO" So the problem is either in my kernel, or in the way I built valgrind, Or I need to supply runtime switches or initialization file before I run even "Hello world" ? (that does not sound right) I had problems with my first install where even "./valgrind" did not run. Then I used --disable-pie and got to this stage.... Are there other switches that I may want to use for building valgrind ? Thanks guys.. ---------------------------------------------------------------------------- --- data/NOMSClient> valgrind /bin/date ==21015== Memcheck, a memory error detector for x86-linux. ==21015== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==21015== Using valgrind-2.4.0, a program supervision framework for x86-linux. ==21015== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==21015== For more details, rerun with: -v ==21015== ==21015== ==21015== Process terminating with default action of signal 11 (SIGSEGV) ==21015== Bad permissions for mapped region at address 0x1B903638 ==21015== at 0x1B8EDE53: _dl_relocate_object (in /lib/ld-2.2.5.so) ==21015== by 0x1B8E7E39: dl_main (in /lib/ld-2.2.5.so) ==21015== by 0x1B8F25DC: _dl_sysdep_start (in /lib/ld-2.2.5.so) ==21015== by 0x1B8E6431: _dl_start_final (in /lib/ld-2.2.5.so) ==21015== by 0x1B8E637B: _dl_start (in /lib/ld-2.2.5.so) ==21015== by 0x1B8E5E35: (within /lib/ld-2.2.5.so) ==21015== Jump to the invalid address stated on the next line ==21015== at 0x8C2: ??? ==21015== by 0x1B8F9A5F: ??? ==21015== by 0x1B8E7E39: dl_main (in /lib/ld-2.2.5.so) ==21015== by 0x1B8F25DC: _dl_sysdep_start (in /lib/ld-2.2.5.so) ==21015== by 0x1B8E6431: _dl_start_final (in /lib/ld-2.2.5.so) ==21015== by 0x1B8E637B: _dl_start (in /lib/ld-2.2.5.so) ==21015== by 0x1B8E5E35: (within /lib/ld-2.2.5.so) ==21015== Address 0x8C2 is not stack'd, malloc'd or (recently) free'd ==21015== ==21015== Process terminating with default action of signal 11 (SIGSEGV) ==21015== Access not within mapped region at address 0x8C2 ==21015== at 0x8C2: ??? ==21015== by 0x1B8F9A5F: ??? ==21015== by 0x1B8E7E39: dl_main (in /lib/ld-2.2.5.so) ==21015== by 0x1B8F25DC: _dl_sysdep_start (in /lib/ld-2.2.5.so) ==21015== by 0x1B8E6431: _dl_start_final (in /lib/ld-2.2.5.so) ==21015== by 0x1B8E637B: _dl_start (in /lib/ld-2.2.5.so) ==21015== by 0x1B8E5E35: (within /lib/ld-2.2.5.so) ==21015== ==21015== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 12 from 2) ==21015== malloc/free: in use at exit: 0 bytes in 0 blocks. ==21015== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==21015== For counts of detected errors, rerun with: -v ==21015== No malloc'd blocks -- no leaks are possible. |