From: Chris M. <cma...@ya...> - 2007-10-26 21:02:26
|
I'm trying to valgrind a process, but I get a segv in open_path. Can anyone help? Thanks, Chris ==29247== Memcheck, a memory error detector. ==29247== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==29247== Using LibVEX rev 1732, a library for dynamic binary translation. ==29247== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==29247== Using valgrind-3.2.3, a dynamic binary instrumentation framework. ==29247== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==29247== --29247-- Command line --29247-- ./debug/bin/RTPriceService --29247-- -c --29247-- config/rtpriceservice.xml --29247-- -f --29247-- Startup, with flags: --29247-- -v --29247-- Contents of /proc/version: --29247-- Linux version 2.6.9-34.ELsmp (bhc...@hs...) (gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Fri Feb 24 16:54:53 EST 2006 --29247-- Arch and hwcaps: X86, x86-sse1-sse2 --29247-- Page sizes: currently 4096, max supported 4096 --29247-- Valgrind library directory: /home/masiech/lib/valgrind --29247-- Reading syms from /lib/ld-2.3.4.so (0x4000000) --29247-- Reading syms from /data/home/masiech/perforce/depot/branches/masiech/pricing/CoreServices/RTPricing/cpp/install/debug/bin/RTPriceService (0x8048000) --29247-- Reading syms from /data/home/masiech/lib/valgrind/x86-linux/memcheck (0x38000000) --29247-- object doesn't have a dynamic symbol table --29247-- Reading suppressions file: /home/masiech/lib/valgrind/default.supp --29247-- REDIR: 0x4011F70 (index) redirected to 0x380220BB (vgPlain_x86_linux_REDIR_FOR_index) --29247-- Reading syms from /data/home/masiech/lib/valgrind/x86-linux/vgpreload_core.so (0x4018000) --29247-- Reading syms from /data/home/masiech/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x401A000) ==29247== WARNING: new redirection conflicts with existing -- ignoring it --29247-- new: 0x04011F70 (index ) R-> 0x0401D134 index --29247-- REDIR: 0x4012110 (strlen) redirected to 0x401D378 (strlen) ==29247== Invalid write of size 4 ==29247== at 0x40124CC: mempcpy (in /lib/ld-2.3.4.so) ==29247== Address 0xBEF4CFFF is not stack'd, malloc'd or (recently) free'd ==29247== ==29247== Process terminating with default action of signal 11 (SIGSEGV) ==29247== Access not within mapped region at address 0xBEF4D000 ==29247== at 0x40124CC: mempcpy (in /lib/ld-2.3.4.so) ==29247== ==29247== Jump to the invalid address stated on the next line ==29247== at 0x246: ??? ==29247== by 0x4006AAA: open_path (in /lib/ld-2.3.4.so) ==29247== Address 0x246 is not stack'd, malloc'd or (recently) free'd ==29247== ==29247== Process terminating with default action of signal 11 (SIGSEGV) ==29247== Bad permissions for mapped region at address 0x246 ==29247== at 0x246: ??? ==29247== by 0x4006AAA: open_path (in /lib/ld-2.3.4.so) ==29247== ==29247== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 2 from 1) ==29247== ==29247== 1 errors in context 1 of 2: ==29247== Jump to the invalid address stated on the next line ==29247== at 0x246: ??? ==29247== by 0x4006AAA: open_path (in /lib/ld-2.3.4.so) ==29247== Address 0x246 is not stack'd, malloc'd or (recently) free'd ==29247== ==29247== 1 errors in context 2 of 2: ==29247== Invalid write of size 4 ==29247== at 0x40124CC: mempcpy (in /lib/ld-2.3.4.so) ==29247== Address 0xBEF4CFFF is not stack'd, malloc'd or (recently) free'd --29247-- --29247-- supp: 2 Ubuntu-stripped-ld.so ==29247== ==29247== IN SUMMARY: 2 errors from 2 contexts (suppressed: 2 from 1) ==29247== ==29247== malloc/free: in use at exit: 0 bytes in 0 blocks. ==29247== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==29247== ==29247== All heap blocks were freed -- no leaks are possible. --29247-- memcheck: sanity checks: 0 cheap, 1 expensive --29247-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use --29247-- memcheck: auxmaps: 0 searches, 0 comparisons --29247-- memcheck: SMs: n_issued = 5 (80k, 0M) --29247-- memcheck: SMs: n_deissued = 0 (0k, 0M) --29247-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M) --29247-- memcheck: SMs: max_undefined = 0 (0k, 0M) --29247-- memcheck: SMs: max_defined = 1 (16k, 0M) --29247-- memcheck: SMs: max_non_DSM = 5 (80k, 0M) --29247-- memcheck: max sec V bit nodes: 0 (0k, 0M) --29247-- memcheck: set_sec_vbits8 calls: 0 (new: 0, updates: 0) --29247-- memcheck: max shadow mem size: 384k, 0M --29247-- translate: fast SP updates identified: 393 ( 88.3%) --29247-- translate: generic_known SP updates identified: 29 ( 6.5%) --29247-- translate: generic_unknown SP updates identified: 23 ( 5.1%) --29247-- tt/tc: 1,372 tt lookups requiring 1,377 probes --29247-- tt/tc: 1,371 fast-cache updates, 4 flushes --29247-- transtab: new 637 (14,365 -> 232,503; ratio 161:10) [0 scs] --29247-- transtab: dumped 0 (0 -> ??) --29247-- transtab: discarded 12 (295 -> ??) --29247-- scheduler: 4,904 jumps (bb entries). --29247-- scheduler: 0/753 major/minor sched events. --29247-- sanity: 1 cheap, 1 expensive checks. --29247-- exectx: 30,011 lists, 4 contexts (avg 0 per list) --29247-- exectx: 4 searches, 0 full compares (0 per 1000) --29247-- exectx: 0 cmp2, 2 cmp4, 0 cmpAll Segmentation fault __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |