|
From: Stuart B. <st...@li...> - 2005-05-16 21:52:01
|
Hi,
I'm trying to profile a new app I have written in C++ using valgrind (2.4.0=
).=20
The app uses QT embedded for the GUI (I'm running on a host machine using=20
SuSE 9.2 and a virtual frame buffer). The app also uses threads and STL=20
classes.
When I run the app from the command line, everything seems to work fine.
When I run using valgrind, the report exits early indication a segmentation=
=20
fault (see below).
=3D=3D10260=3D=3D Memcheck, a memory error detector for x86-linux.
=3D=3D10260=3D=3D Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward =
et al.
=3D=3D10260=3D=3D Using valgrind-2.4.0, a program supervision framework for=
x86-linux.
=3D=3D10260=3D=3D Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward =
et al.
=3D=3D10260=3D=3D Valgrind library directory: /usr/lib/valgrind
=3D=3D10260=3D=3D Command line
=3D=3D10260=3D=3D verifydp
=3D=3D10260=3D=3D -qws
=3D=3D10260=3D=3D Startup, with flags:
=3D=3D10260=3D=3D -v
=3D=3D10260=3D=3D Contents of /proc/version:
=3D=3D10260=3D=3D Linux version 2.6.11.9LinuSoft (stuart@vaio) (gcc versi=
on 3.3.4=20
(pre 3.3.5 20040809)) #1 Mon May 16 09:23:04 BST 2005
=3D=3D10260=3D=3D Reading syms from /home/stuart/Development/veripos/bin/ve=
rifydp=20
(0x8048000)
=3D=3D10260=3D=3D Reading syms from /lib/ld-2.3.3.so (0x1B8E4000)
=3D=3D10260=3D=3D object doesn't have any debug info
=3D=3D10260=3D=3D Reading syms from /usr/lib/valgrind/stage2 (0xB0000000)
=3D=3D10260=3D=3D Reading syms from /lib/ld-2.3.3.so (0xB1000000)
=3D=3D10260=3D=3D object doesn't have any debug info
=3D=3D10260=3D=3D Reading syms from /lib/libdl.so.2 (0xB1030000)
=3D=3D10260=3D=3D object doesn't have any debug info
=3D=3D10260=3D=3D Reading syms from /lib/tls/libc.so.6 (0xB1034000)
=3D=3D10260=3D=3D object doesn't have any debug info
=3D=3D10260=3D=3D Reading syms from /usr/lib/valgrind/vgskin_memcheck.so (0=
xB124B000)
=3D=3D10260=3D=3D Reading suppressions file: /usr/lib/valgrind/default.supp
=3D=3D10260=3D=3D
=3D=3D10260=3D=3D Signal 11 (SIGSEGV) appears to have lost its siginfo; I c=
an't go on.
=3D=3D10260=3D=3D This may be because one of your programs has consumed y=
our
=3D=3D10260=3D=3D ration of siginfo structures.
=3D=3D10260=3D=3D
=3D=3D10260=3D=3D Process terminating with default action of signal 11 (SIG=
SEGV)
=3D=3D10260=3D=3D at 0x1B8E5069: _dl_start (in /lib/ld-2.3.3.so)
=3D=3D10260=3D=3D by 0x1B8E47A6: (within /lib/ld-2.3.3.so)
=3D=3D10260=3D=3D
=3D=3D10260=3D=3D ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 fr=
om 0)
=3D=3D10260=3D=3D malloc/free: in use at exit: 0 bytes in 0 blocks.
=3D=3D10260=3D=3D malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
=3D=3D10260=3D=3D
=3D=3D10260=3D=3D No malloc'd blocks -- no leaks are possible.
=2D-10260-- TT/TC: 0 tc sectors discarded.
=2D-10260-- 2 tt_fast misses.
=2D-10260-- translate: new 2 (21 -> 435; ratio 207:10)
=2D-10260-- discard 0 (0 -> 0; ratio 0:10).
=2D-10260-- chainings: 0 chainings, 0 unchainings.
=2D-10260-- dispatch: 2 jumps (bb entries); of them 2 (100%) unchained.
=2D-10260-- 1/3 major/minor sched events.
=2D-10260-- reg-alloc: 0 t-req-spill, 79+0 orig+spill uis,
=2D-10260-- 7 total-reg-rank
=2D-10260-- sanity: 2 cheap, 1 expensive checks.
=2D-10260-- ccalls: 13 C calls, 62% saves+restores avoided (48 bytes)
=2D-10260-- 19 args, avg 0.94 setup instrs each (2 bytes)
=2D-10260-- 0% clear the stack (39 bytes)
=2D-10260-- 0 retvals, 100% of reg-reg movs avoided (0 bytes)
Segmentation fault
I check the archives, and this seemed to be attributed to the kernel (2.6.8=
).=20
I have since updated the kernel to 2.6.11, but still get the same result.
Could someone please explain what the report means, and any possible=20
solutions.
Many thanks,
Stuart.
=2D-=20
=2D--------------------------------------
Stuart Bailey BSc (hons) CEng CITP MBCS
=A0 =A0 =A0 =A0 =A0LinuSoft (Proprietor)
Linux Specialist
=A0 =A0 =A0 =A0 =A0 =A0 (01953) 601294
=A0 =A0 =A0 =A0 =A0 =A0 (07778) 383739
=A0 =A0 =A0 =A0http://www.linusoft.co.uk
=2D---------------------------------------
**********************************************************************
This email and any files transmitted with it are confidential. If you
are not the intended recipient, please email pos...@li...=20
immediately.
You should not copy or use this email or attachments for any purpose
nor disclose their contents to any other person.
NO BINDING CONTRACT WILL RESULT FROM THIS E-MAIL UNTIL SUCH TIME AS A=20
WRITTEN DOCUMENT IS SIGNED ON BEHALF OF LinuSoft.
LinuSoft cannot accept any responsibility for the completeness or=20
accuracy of this message as it has been transmitted over public networks.
*************************************************************************
|