|
From: Nishant S. <ns...@in...> - 2006-05-03 07:14:32
|
Igmar Palsenberg wrote: >>reported : >> >>http://sourceforge.net/mailarchive/forum.php?thread_id=10079534&forum_id=32038 >> > >Looks unrelated to me, this was a issue of a CPU feature detection not >working as intended AFAIK. > >> >>==795== Process terminating with default action of signal 11 (SIGSEGV) >>==795== Bad permissions for mapped region at address 0x4024BF4 >>==795== at 0x4024BF4: ??? >>==795== by 0x40100E4: (within /lib/ld-2.2.5.so) >>==795== >>==795== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) >>==795== malloc/free: in use at exit: 0 bytes in 0 blocks. >>==795== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. >>==795== For counts of detected errors, rerun with: -v >>==795== All heap blocks were freed -- no leaks are possible. >>Segmentation fault >> >>You might want to try a strace of the binary and post it here, so someone >>can look at what is actually going on. >> As you had asked for, I have two outputs one with a verbose flag turned on and other one a stack trace . The verbose output (on doing valgrind /bin/ls)is : ==858== Using valgrind-3.1.1, a dynamic binary instrumentation framework. ==858== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==858== --858-- Command line --858-- /bin/ls --858-- Startup, with flags: --858-- -v --858-- Contents of /proc/version: --858-- Linux version 2.4.20-denx-tejas-TJMC16_XPCx_LINUX_04p1 (shebbar@earth) (gcc version 2.95.4 20010319 (prerelease/franzo/20011204)) #2 Mon Dec 27 09:44:22 IST 2004 --858-- Arch and subarch: PPC32, ppc32-int-and-fp --858-- Valgrind library directory: /tmp//valgrind --858-- Reading syms from /lib/ld-2.2.5.so (0x4000000) --858-- object doesn't have a symbol table --858-- Reading syms from /bin/busybox (0x10000000) --858-- object doesn't have a symbol table --858-- Reading syms from /var/tmp/valgrind/ppc32-linux/memcheck (0x70000000) --858-- object doesn't have a dynamic symbol table --858-- Reading suppressions file: /tmp//valgrind/default.supp ==858== ==858== Process terminating with default action of signal 11 (SIGSEGV) ==858== Bad permissions for mapped region at address 0x4024BF4 ==858== at 0x4024BF4: ??? ==858== by 0x40100E4: (within /lib/ld-2.2.5.so) ==858== ==858== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==858== malloc/free: in use at exit: 0 bytes in 0 blocks. ==858== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==858== ==858== All heap blocks were freed -- no leaks are possible. --858-- memcheck: sanity checks: 0 cheap, 1 expensive --858-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --858-- memcheck: auxmaps: 0 searches, 0 comparisons --858-- memcheck: secondaries: 7 issued (448k, 0M) --858-- memcheck: secondaries: 4 accessible and distinguished (256k, 0M) --858-- tt/tc: 5 tt lookups requiring 4 probes --858-- tt/tc: 4 fast-cache updates, 2 flushes --858-- translate: new 2 (100 -> 1,104; ratio 110:10) [0 scs] --858-- translate: dumped 0 (0 -> ??) --858-- translate: discarded 0 (0 -> ??) --858-- scheduler: 2 jumps (bb entries). --858-- scheduler: 0/3 major/minor sched events. --858-- sanity: 1 cheap, 1 expensive checks. --858-- exectx: 30,011 lists, 0 contexts (avg 0 per list) --858-- exectx: 0 searches, 0 full compares (0 per 1000) --858-- exectx: 0 cmp2, 0 cmp4, 0 cmpAll Segmentation fault ------------------------------------------------------ The strace of the same is (relevant crash area is ) : read(3, "#", 1) = 1 read(3, "#", 1) = 1 read(3, "\n", 1) = 1 read(3, "", 1) = 0 close(3) = 0 mmap2(0x4267f000, 81920, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x4267f000 mprotect(0x4267f000, 8192, PROT_NONE) = 0 mprotect(0x42691000, 8192, PROT_NONE) = 0 gettid() = 870 read(1017, "T", 2) = 1 gettid() = 870 getpid() = 870 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP BUS FPE KILL SEGV STOP], NULL, 8) = 0 mmap2(0x42693000, 20127744, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x42693000 mmap2(0x439c5000, 5241680, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x439c5000 mmap2(0x43ec5000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x43ec5000 ugetrlimit(0x4, 0x42690cb8) = 0 write(1016, "==", 2==) = 2 getpid() = 870 write(1016, "870== ", 6870== ) = 6 write(1016, "\n", 1 ) = 1 write(1016, "==", 2==) = 2 getpid() = 870 write(1016, "870== ", 6870== ) = 6 write(1016, "Process terminating with default"..., 62Process terminating with default action of signal 11 (SIGSEGV) write(1016, "\n", 1 ) = 1 write(1016, "==", 2==) = 2 getpid() = 870 write(1016, "870== ", 6870== ) = 6 write(1016, " Bad permissions for mapped regi"..., 55 Bad permissions for mapped region at address 0x4024BF4) = 55 write(1016, "\n", 1 ) = 1 write(1016, "==", 2==) = 2 getpid() = 870 write(1016, "870== ", 6870== ) = 6 write(1016, " at 0x4024BF4: ???", 20 at 0x4024BF4: ???) = 20 write(1016, "\n", 1 ) = 1 write(1016, "==", 2==) = 2 getpid() = 870 write(1016, "870== ", 6870== ) = 6 write(1016, " by 0x40100E4: (within /lib/ld"..., 42 by 0x40100E4: (within /lib/ld-2.2.5.so)) = 42 write(1016, "\n", 1 ) = 1 rt_sigprocmask(SIG_SETMASK, ~[], ~[ILL TRAP BUS FPE KILL SEGV STOP], 8) = 0 rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP BUS FPE KILL SEGV STOP], NULL, 8) = 0 tia nishant >>------------------------------------------------------- >>Using Tomcat but need to do more? Need to support web services, security? >>Get stuff done quickly with pre-integrated technology to make your job easier >>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>_______________________________________________ >>Valgrind-users mailing list >>Val...@li... >>https://lists.sourceforge.net/lists/listinfo/valgrind-users >> >> >> |