|
From: danw <dw...@ca...> - 2007-02-26 13:58:27
|
I'm trying to run callgrind to profile some php code, but valgrind errors out before apache has a chance to come up. Can anyone tell what I'm doing wrong and help me out? =20 # uname -a Linux ws03 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux # valgrind --version valgrind-3.1.1 # httpd -V Server version: Apache/2.0.55 Server built: Mar 28 2006 07:30:56 Server's Module Magic Number: 20020903:11 Architecture: 32-bit Server compiled with.... -D APACHE_MPM_DIR=3D"server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT=3D"/etc/httpd" -D SUEXEC_BIN=3D"/usr/sbin/suexec" -D DEFAULT_PIDLOG=3D"logs/httpd.pid" -D DEFAULT_SCOREBOARD=3D"logs/apache_runtime_status" -D DEFAULT_LOCKFILE=3D"logs/accept.lock" -D DEFAULT_ERRORLOG=3D"logs/error_log" -D AP_TYPES_CONFIG_FILE=3D"conf/mime.types" -D SERVER_CONFIG_FILE=3D"conf/httpd.conf" =20 # valgrind --tool=3Dcallgrind httpd -X =3D=3D18671=3D=3D Callgrind-0.10.1, a call-graph generating cache = profiler. =3D=3D18671=3D=3D Copyright (C) 2002-2005, and GNU GPL'd, by = J.Weidendorfer et al. =3D=3D18671=3D=3D Using LibVEX rev 1575, a library for dynamic binary translation. =3D=3D18671=3D=3D Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks = LLP. =3D=3D18671=3D=3D Using valgrind-3.1.1, a dynamic binary instrumentation framework. =3D=3D18671=3D=3D Copyright (C) 2000-2005, and GNU GPL'd, by Julian = Seward et al. =3D=3D18671=3D=3D For more details, rerun with: -v =3D=3D18671=3D=3D=20 =3D=3D18671=3D=3D=20 =3D=3D18671=3D=3D For interactive control, run 'callgrind_control -h'. 0x00004FEE BB# 40608638 =20 Callgrind: ../src/main.c:277 (endOfInstr): Assertion 'ii->data_size = =3D=3D dataSize' failed. =3D=3D18671=3D=3D at 0xB001CE3D: report_and_quit (m_libcassert.c:122) =3D=3D18671=3D=3D by 0xB001CFD6: vgPlain_assert_fail = (m_libcassert.c:185) =3D=3D18671=3D=3D by 0xB001793D: endOfInstr (main.c:279) =3D=3D18671=3D=3D by 0xB0018343: vgCallgrind_instrument (main.c:611) =3D=3D18671=3D=3D by 0xB006C168: LibVEX_Translate (vex_main.c:482) =3D=3D18671=3D=3D by 0xB002C415: vgPlain_translate = (libvex_basictypes.h:162) =3D=3D18671=3D=3D by 0xB003AF4C: handle_tt_miss (scheduler.c:596) =3D=3D18671=3D=3D by 0xB003B2ED: vgPlain_scheduler (scheduler.c:717) =3D=3D18671=3D=3D by 0xB004A9C6: thread_wrapper (syswrap-linux.c:87) =3D=3D18671=3D=3D by 0xB004AA8C: run_a_thread_NORETURN = (syswrap-linux.c:120) =20 sched status: running_tid=3D1 =20 Thread 1: status =3D VgTs_Runnable =3D=3D18671=3D=3D at 0x4824062: (within /usr/lib/httpd/modules/mod_include.so) =3D=3D18671=3D=3D by 0x1AF14: ap_single_module_configure (in = /usr/sbin/httpd) =3D=3D18671=3D=3D by 0x155D9: (within /usr/sbin/httpd) =3D=3D18671=3D=3D by 0x18F42: (within /usr/sbin/httpd) =3D=3D18671=3D=3D by 0x19308: (within /usr/sbin/httpd) =3D=3D18671=3D=3D by 0x197E7: ap_build_config (in /usr/sbin/httpd) =3D=3D18671=3D=3D by 0x1A06F: (within /usr/sbin/httpd) =3D=3D18671=3D=3D by 0x1A240: ap_process_resource_config (in = /usr/sbin/httpd) =3D=3D18671=3D=3D by 0x1AE2F: ap_read_config (in /usr/sbin/httpd) =3D=3D18671=3D=3D by 0x1D778: main (in /usr/sbin/httpd) =20 |
|
From: Josef W. <Jos...@gm...> - 2007-02-26 14:17:35
|
On Monday 26 February 2007, danw wrote: > I'm trying to run callgrind to profile some php code, but valgrind > errors out before apache has a chance to come up. > Can anyone tell what I'm doing wrong and help me out? > > # uname -a > Linux ws03 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 > i386 GNU/Linux > > # valgrind --version > valgrind-3.1.1 Can you use a newer version? Your problem is supposed to be fixed. Josef |
|
From: Julian S. <js...@ac...> - 2007-02-26 14:53:39
|
> Can anyone tell what I'm doing wrong and help me out? > > # valgrind --version > valgrind-3.1.1 Well, for one thing upgrade to the latest stable (3.2.3) and see if it still breaks. 3.1.1 is pretty old. J |