Hi,
   I'm a beginner of callgrind and try to use it.Now I meet a problem at 
profile my application program by callgrind.
Callgrind exits soon after startup because of assertion fail.But i can run my 
program normally without callgrind. Why? 
My application is a dynamic-link library,and must be loaded to other vendor's 
software.
My application works in the vendor'software.First start the vendor's 
software,then my program is loaded.

X86_AMD64 Linux version 2.6.9-67.ELsmp
valgrind-3.3.1

==32376== Callgrind, a call-graph generating cache profiler.
==32376== Copyright (C) 2002-2007, and GNU GPL'd, by Josef Weidendorfer et al.
==32376== Using LibVEX rev 1854, a library for dynamic binary translation.
==32376== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==32376== Using valgrind-3.3.1, a dynamic binary instrumentation framework.
==32376== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==32376== 
--32376-- Command line
--32376--    ncsim
--32376--    -f
--32376--    ncsim.args
--32376--    -input
--32376--    @global g_run; set g_run 0; global get_code_cov; set get_code_cov 
0; set env(g_r_id) 002; source ./input.tcl
--32376--    -exit
--32376-- Startup, with flags:
--32376--    --tool=callgrind
--32376--    -v
--32376--    --compress-strings=no
--32376--    --trace-children=yes
--32376-- Contents of /proc/version:
--32376--   Linux version 2.6.9-67.ELsmp ([EMAIL PROTECTED]) (gcc version 3.4.6 
20060404 (Red Hat 3.4.6-8)) #1 SMP Wed Nov 7 13:56:44 EST 2007
--32376-- Arch and hwcaps: X86, x86-sse1-sse2
--32376-- Page sizes: currently 4096, max supported 4096
--32376-- Valgrind library directory: 
/local/prof_tools/valgrind/3.3.1/lib/valgrind
==32376== For interactive control, run 'callgrind_control -h'.
--32376-- Reading syms from /lib/ld-2.3.4.so (0x3BC000)
--32376-- Reading syms from 
/nas/data2/edatools/software/cadence/ldv/ius583s03/tools.lnx86/inca/bin/ncsim 
(0x8048000)
--32376--    object doesn't have a symbol table
--32376-- Reading syms from 
/local/prof_tools/valgrind/3.3.1/lib/valgrind/x86-linux/callgrind (0x38000000)
--32376--    object doesn't have a dynamic symbol table
--32376-- Code check found runtime_resolve: ld-2.3.4.so +0xC080=0x3C8080, 
length 24
--32376-- Reading syms from 
/local/prof_tools/valgrind/3.3.1/lib/valgrind/x86-linux/vgpreload_core.so 
(0x46A0000)
--32376-- Reading syms from /lib/libdl-2.3.4.so (0x529000)
--32376-- Reading syms from /lib/i686/libm-2.3.4.so (0x46A2000)
--32376-- Reading syms from /lib/i686/libc-2.3.4.so (0x46C5000)
--32376-- Symbol match: found runtime_resolve: ld-2.3.4.so +0x3C8080=0x3C8080
ncsim: 05.83-s003: (c) Copyright 1995-2007 Cadence Design Systems, Inc.
--32376-- Reading syms from /lib/libnss_files-2.3.4.so (0x480A000)
--32376-- Reading syms from /lib/libnss_nis-2.3.4.so (0x4815000)
--32376-- Reading syms from /lib/libnsl-2.3.4.so (0x555000)
--32376-- Reading syms from /lib/libnss_dns-2.3.4.so (0x481F000)
--32376-- Reading syms from /lib/libresolv-2.3.4.so (0x586000)
--32376-- Reading syms from 
/nas/data2/edatools/software/cadence/ldv/ius583s03/tools.lnx86/simvision/lib/libdcapi.so
 (0x4825000)
--32376-- Reading syms from 
/nas/data2/edatools/software/cadence/ldv/ius583s03/tools.lnx86/lib/libStrapNC.so
 (0x761A000)
Loading snapshot worklib.tb_top:v .................... Done
--32376-- Reading syms from 
/nas/data2/edatools/software/HiCAD/PowerBench3.1_lnx/bin/libPowerBenchPLI_nc.so 
(0x7DA7000)
--32376-- Reading syms from 
/nas/data2/edatools/software/verisity/specman/6.2s4/tools.lnx86/lib/libstdc++.so.5.0.3
 (0x7E52000)
--32376-- Reading syms from 
/nas/data2/edatools/software/HiCAD/PowerBench3.1_lnx/bin/libPowerBench.so 
(0x9E98000)
--32376-- Reading syms from 
/nas/data2/edatools/software/HiCAD/PowerBench3.1_lnx/bin/libtcl8.3.so 
(0xA17F000)
--32376-- Reading syms from 
/nas/data2/edatools/software/verisity/specman/6.2s4/tools.lnx86/lib/libgcc_s.so.1
 (0x800A000)
ncsim> source /software/cadence/ldv/ius583s03/tools/inca/files/ncsimrc
ncsim> global g_run; set g_run 0; global get_code_cov; set get_code_cov 0; set 
env(g_r_id) 002; source ./input.tcl
[Hisilicon]  Now tc002 <--> ../tests/svfspt001 is runing ,..... 
--32376-- Reading syms from 
/nas/data2/edatools/software/HiCAD/PowerBench3.1_lnx/tcl/ver8.3/lib/libtk8.3.so 
(0xA680000)
--32376-- Reading syms from /usr/X11R6/lib/libX11.so.6.2 (0x5D2000)
--32376--    object doesn't have a symbol table
--32376-- Reading syms from 
/usr/X11R6/lib/X11/locale/lib/common/xlcUTF8Load.so.2 (0x49C8000)
--32376--    object doesn't have a symbol table
--32376-- Reading syms from /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2 
(0xA739000)
--32376--    object doesn't have a symbol table
--32376-- Reading syms from /usr/X11R6/lib/libXcursor.so.1.0.2 (0x79A000)
--32376--    object doesn't have a symbol table
--32376-- Reading syms from /usr/X11R6/lib/libXrender.so.1.2.2 (0x790000)
--32376--    object doesn't have a symbol table
--32376-- Reading syms from /usr/X11R6/lib/libXext.so.6.4 (0x780000)
--32376--    object doesn't have a symbol table
--32376-- Reading syms from 
/nas/data2/edatools/software/HiCAD/PowerBench3.1_lnx/bin/libPBTxPort.so 
(0xA755000)
--32376-- Reading syms from 
/nas/data2/edatools/software/HiCAD/PowerBench3.1_lnx/bin/libPBRxPort.so 
(0xA7BB000)
--32376-- Reading syms from 
/nas/data2/edatools/software/HiCAD/PowerBench3.1_lnx/bin/libPBCover.so 
(0xDF53000)
--32376-- Reading syms from 
/nas/data2/edatools/software/HiCAD/PowerBench3.1_lnx/bin/libPBCPUPort.so 
(0xA811000)
NOTE:(testcase.tcl) The seed is: 2509240569
env loading ... ...
--32376-- Reading syms from /home/s66594t/dt003/pb/env/output/dt003_env.so 
(0xA641000)
Succeed to load dt003_env!
Warning: The CPU main procedure request, but the CPU main procedure is disabled!
NOTE:(testcase.tcl) Reset the DUV
[NOTE] [testcase.tcl] Open tx_bfm
0x00028900
BB# 127309796

Callgrind: threads.c:247 (vgCallgrind_post_signal): Assertion 'sigNum == 
vgCallgrind_current_state.sig' failed.
==32376==    at 0x3801B19E: report_and_quit (m_libcassert.c:140)
==32376==    by 0x3801B004: vgPlain_assert_fail (m_libcassert.c:200)
==32376==    by 0x38018B8E: vgCallgrind_post_signal (threads.c:280)
==32376==    by 0x380726C3: vgPlain_sigframe_destroy (sigframe-x86-linux.c:695)
==32376==    by 0x38073AE9: vgSysWrap_x86_linux_sys_rt_sigreturn_before 
(syswrap-x86-linux.c:1004)
==32376==    by 0x38038571: vgPlain_client_syscall (syswrap-main.c:850)
==32376==    by 0x38035BAD: vgPlain_scheduler (scheduler.c:790)
==32376==    by 0x38039A80: run_a_thread_NORETURN (syswrap-linux.c:89)

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==32376==    at 0x9431BB7: ???


Note: see also the FAQ.txt in the source distribution.
It contains workarounds to several common problems.

If that doesn't help, please report this bug to: www.valgrind.org

In the bug report, send all the above text, the valgrind
version, and what Linux distro you are using.  Thanks.


Tel: 0755-28423391 
[EMAIL PROTECTED]
华为技术有限公司  


地址:深圳市龙岗区坂田华为基地 邮编:518129
http://www.huawei.com
-------------------------------------------------------------------------------------------------------------------------------------
本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HUAWEI, 
which 
is intended only for the person or entity whose address is listed above. Any 
use of the 
information contained herein in any way (including, but not limited to, total 
or partial 
disclosure, reproduction, or dissemination) by persons other than the intended 
recipient(s) is prohibited. If you receive this e-mail in error, please notify 
the sender by 
phone or email immediately and delete it!

<<attachment: outlook_huawei_logo_cn.jpg>>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to