The following bug has been RESOLVED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000286
======================================================================
Reporter: lars
Handler: derick
======================================================================
Project: Xdebug
Bug ID: 286
Category: Usage problems
Reproducibility: always
Severity: crash
Priority: normal
Status: resolved
Operating System:
PHP Version: 5.2.0
Xdebug Version: 2.0.0rc5-dev
Resolution: unable to duplicate
======================================================================
Date Submitted: 2007-06-18 21:27 CEST
Last Modified: 2007-07-14 18:57 CEST
======================================================================
Summary: Apache crashed when profiling is enabled.
Description:
I experience some segfaults when enabling profiling (setting
"xdebug.profiler_enable = 0" in php.ini or setting "php_value
xdebug.profiler_enable 1" in a vhost)
and trying to load pages with where generated by mod_php:
"[notice] child pid 9100 exit signal Segmentation fault (11)"
======================================================================
----------------------------------------------------------------------
derick - 2007-06-18 21:31 CEST
----------------------------------------------------------------------
Could you try to run Apache under gdb as single process (see
http://bugs.php.net/bugs-generating-backtrace.php, under "If you can't get
a core file").
----------------------------------------------------------------------
lars - 2007-06-18 23:30 CEST
----------------------------------------------------------------------
Here you are:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1216055616 (LWP 9803)]
0xb7c0280b in strlen () from /lib/tls/libc.so.6
(gdb) bt
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000000 0xb7c0280b in strlen () from /lib/tls/libc.so.6
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000001 0xb75349b8 in ap_php_conv_fp () from
/usr/lib/apache2/modules/libphp5.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000002 0xb75351c1 in ap_php_vsnprintf () from
/usr/lib/apache2/modules/libphp5.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000003 0xb6ef64e1 in xdebug_sprintf (fmt=0xb6f01ee0 "%s/%s") at
/usr/local/src/xdebug/xdebug_str.c:95
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000004 0xb6ef5551 in xdebug_profiler_init (script_name=0xb644ada4
"/srv/www/do.main/sub/lit/lit_php/trunk/phpinfo.php")
at /usr/local/src/xdebug/xdebug_profiler.c:69
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000005 0xb6edece8 in xdebug_execute (op_array=0xb644aafc) at
/usr/local/src/xdebug/xdebug.c:1446
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000006 0xb64a61d3 in ih_symlink () from
/usr/lib/php5/20060613+lfs/suhosin.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000007 0xb75759fc in zend_execute_scripts () from
/usr/lib/apache2/modules/libphp5.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000008 0xb7530cb2 in php_execute_script () from
/usr/lib/apache2/modules/libphp5.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000009 0xb75f9353 in php_ap2_register_hook () from
/usr/lib/apache2/modules/libphp5.so
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000010 0x08074587 in ap_run_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000011 0x08077731 in ap_invoke_handler ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000012 0x08084728 in ap_process_request ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000013 0x080819ce in ap_register_input_filter ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000014 0x0807b3c7 in ap_run_process_connection ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000015 0x08088704 in ap_graceful_stop_signalled ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000016 0x08088964 in ap_graceful_stop_signalled ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000017 0x0808972a in ap_mpm_run ()
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000018 0x080621ef in main ()
best regards
Lars
----------------------------------------------------------------------
derick - 2007-06-19 23:12 CEST
----------------------------------------------------------------------
Could you type (at the moment where you do bt) the following:
frame 4
print xdebug_globals.profiler_output_dir
print fname
----------------------------------------------------------------------
lars - 2007-06-21 14:12 CEST
----------------------------------------------------------------------
(gdb) frame 4
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000004 0xb6f0b551 in xdebug_profiler_init (script_name=0xb6460f3c
"/srv/www/do.main/sub/lit/lit_php/trunk/phpinfo.php")
at /usr/local/src/xdebug/xdebug_profiler.c:69
69 filename = xdebug_sprintf("%s/%s",
XG(profiler_output_dir), fname);
(gdb) print xdebug_globals.profiler_output_dir
$1 = 0x8280ef0 "/tmp/xdebug/"
(gdb) print fname
$2 = 0x83b7e88 "/tmp/xdebug/"
----------------------------------------------------------------------
lars - 2007-06-21 14:26 CEST
----------------------------------------------------------------------
Profiler Outpunt name is:
xdebug.profiler_output_name = cachegrind.out.%H.%s
----------------------------------------------------------------------
derick - 2007-07-05 21:20 CEST
----------------------------------------------------------------------
I still can't reproduce this, could you please also run apache in single
process mode under valgrind?
valgrind /path/to/apache/src/httpd -X
and then post the output file please?
----------------------------------------------------------------------
derick - 2007-07-09 20:39 CEST
----------------------------------------------------------------------
Reminder sent to lars
I still can't reproduce this, could you please also run apache in single
process mode under valgrind?
valgrind /path/to/apache/src/httpd -X
and then post the output file please?
----------------------------------------------------------------------
lars - 2007-07-14 17:22 CEST
----------------------------------------------------------------------
Sorry for the late answer. I was very busy.
I can not reproduce this error anymore. Either some changes you have done
in cvs or the recent bunch of php5 security updates for etch fixed this
problem on this machine.
----------------------------------------------------------------------
derick - 2007-07-14 18:57 CEST
----------------------------------------------------------------------
Okay, thanks for getting back. I'll close the report then.
Bug History
Date Modified Username Field Change
======================================================================
2007-06-18 21:27lars New Bug
2007-06-18 21:27lars Bug Monitored: lars
2007-06-18 21:31derick Bugnote Added: 0000661
2007-06-18 21:31derick Status new => feedback
2007-06-18 23:30lars Bugnote Added: 0000662
2007-06-19 23:12derick Bugnote Added: 0000665
2007-06-21 14:12lars Bugnote Added: 0000667
2007-06-21 14:26lars Bugnote Added: 0000668
2007-07-05 21:20derick Bugnote Added: 0000676
2007-07-09 20:39derick Bugnote Added: 0000688
2007-07-14 17:22lars Bugnote Added: 0000694
2007-07-14 18:57derick Bugnote Added: 0000695
2007-07-14 18:57derick Assigned To => derick
2007-07-14 18:57derick Resolution open => unable to duplicate
2007-07-14 18:57derick Status feedback => resolved
======================================================================
Received on Sat Jul 14 2007 - 18:57:09 BST
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST