|
From: Sunny D. <int...@ya...> - 2012-07-16 22:53:30
|
Any ideas what could this be? All programs are now running fine with revision r12748 but this one program (compiling and linking is same as others) still dies like this: Core was generated by `valgrind --leak-check=full --num-callers=24 --error-limit=no --show-reachable=y'. Program terminated with signal 11, Segmentation fault. #0 vgModuleLocal_read_ULong (data=0x100000083 <Address 0x100000083 out of bounds>) at m_debuginfo/misc.c:195 195 m_debuginfo/misc.c: No such file or directory. (gdb) bt #0 vgModuleLocal_read_ULong (data=0x100000083 <Address 0x100000083 out of bounds>) at m_debuginfo/misc.c:195 #1 0x000000003805cef6 in vgPlain_use_CF_info (uregsHere=0x4030dced0, min_accessible=200117488, max_accessible=34342965240) at m_debuginfo/debuginfo.c:2489 #2 0x00000000380454a3 in vgPlain_get_StackTrace_wrk (tid_if_known=<optimized out>, ips=0x4030dcfc0, max_n_ips=100, sps=0x0, fps=0x0, startRegs=<optimized out>, fp_max_orig=34342965240) at m_stacktrace.c:309 #3 0x0000000038045663 in vgPlain_get_StackTrace (tid=1, ips=0x4030dcfc0, max_n_ips=100, sps=0x0, fps=<optimized out>, first_ip_delta=0) at m_stacktrace.c:1086 #4 0x0000000038045819 in vgPlain_get_and_pp_StackTrace (tid=<optimized out>, max_n_ips=<optimized out>) at m_stacktrace.c:1125 #5 0x00000000380302d3 in vgPlain_show_sched_status () at m_libcassert.c:213 #6 0x00000000380303b3 in report_and_quit (report=0x3826e7f9 "www.valgrind.org", startRegsIN=<optimized out>) at m_libcassert.c:253 #7 0x000000003803043f in panic (name=0x38279d0b "valgrind", report=0x3826e7f9 "www.valgrind.org", str=<optimized out>, startRegs=0x4030dd720) at m_libcassert.c:319 #8 0x0000000038030649 in vgPlain_core_panic_at (str=0x7ff000ff0 "cg.org", startRegs=0x4009621) at m_libcassert.c:324 #9 0x0000000038044509 in sync_signalhandler_from_kernel (uc=0x4030dd780, info=<optimized out>, sigNo=11, tid=1) at m_signals.c:2413 #10 sync_signalhandler (sigNo=11, info=<optimized out>, uc=0x4030dd780) at m_signals.c:2470 #11 0x0000000038042220 in ?? () #12 0x0000000000000000 in ?? () -Sunny ----- Original Message ----- From: Sunny Das <int...@ya...> To: Tom Hughes <to...@co...> Cc: "val...@li..." <val...@li...> Sent: Monday, July 16, 2012 12:23 PM Subject: Re: [Valgrind-developers] valgrind internal error You are a life saver Tom. Indeed, pth wasn't built correctly. Once that was taken care of, I am up and running. Thanks a bunch! -Sunny ----- Original Message ----- From: Tom Hughes <to...@co...> To: Sunny Das <int...@ya...> Cc: "val...@li..." <val...@li...> Sent: Monday, July 16, 2012 3:07 AM Subject: Re: valgrind internal error On 16/07/12 01:36, Sunny Das wrote: > I need help with an issue while trying to run memcheck on one of our internal programs. These programs used to work in our earlier versions with valgrind 3.5 and glibc 2.11. We had to upgrade glibc to 2.13, and now, the latest valgrind versions as well as the SVN version are broken. The following is a run with the SVN code as of today. > > Core was generated by `valgrind --leak-check=full --num-callers=24 --error-limit=no --show-reachable=y'. > Program terminated with signal 11, Segmentation fault. > #0 vgPlain_get_StackTrace_wrk (tid_if_known=<optimized out>, ips=0x4030dd040, max_n_ips=100, > sps=0x0, fps=0x0, startRegs=<optimized out>, fp_max_orig=34342965240) at m_stacktrace.c:334 > 334 m_stacktrace.c: No such file or directory. The problem is that it has fallen back to a frame pointer based unwind, but that will generally fail on amd64 because the compiler will default to not using frame pointers, so when valgrind tries to dereference what it thinks is the frame pointer it will likely crash. This suggests that you have some code that hasn't been compiled with DWARF unwind information, as valgrind will use that in preference to doing a frame pointer based unwind. Given that you say this only happens with the pth library, maybe that is what doesn't have unwind information? Tom -- Tom Hughes (to...@co...) http://compton.nu/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Valgrind-developers mailing list Val...@li... https://lists.sourceforge.net/lists/listinfo/valgrind-developers |