[xdebug-dev] Bug 0000154: Apache Segfault when xdebug.collect_params is ON

From: <xdebug-dev[@]lists.xdebug.org>
Date: Wed, 18 Jan 2006 22:31:56 +0100

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000154
======================================================================
Reporter: SiburNY
Handler:
======================================================================
Project: Xdebug
Bug ID: 154
Category: Usage problems
Reproducibility: always
Severity: crash
Priority: normal
Status: closed
Operating System:
PHP Version: 5.0.5
Xdebug Version: 2.0.0beta2
======================================================================
Date Submitted: 2005-10-14 18:58 CEST
Last Modified: 2006-01-18 22:31 CET
======================================================================
Summary: Apache Segfault when xdebug.collect_params is ON
Description:
When xdebug.collect_params is OFF, everything works like a charm. Once I
turn it on, all php scripts (except one that execute phpinfo() only) stop
working. In Apache error log I see errors "[notice] child pid XXXXX exit
signal Segmentation fault (11)".

P.S. I'm using PHP 5.0.6-dev (latest CVS) and XDebug from CVS downloaded
today (Oct 14 around 12:30PM -0500)
======================================================================

----------------------------------------------------------------------
 derick - 2005-10-19 10:21 CEST
----------------------------------------------------------------------
Hello,

I just committed a "fix" to CVS, can you please verify that this stops the
crash itself? (The parameters will be shown as "???" though, I do need to
look into this a bit better).

Derick

----------------------------------------------------------------------
 SiburNY - 2005-10-19 21:04 CEST
----------------------------------------------------------------------
Yes, I tested it and it's not segfaulting and all parameters are "???" :)

----------------------------------------------------------------------
 derick - 2005-12-30 14:39 CET
----------------------------------------------------------------------
I think I figured out what is causing this - it might be GCC's over
optimizating something. Which GCC version do you use (gcc --version) and
does it work if you remove the "-O2" from the Makefile before compiling?

----------------------------------------------------------------------
 SiburNY - 2005-12-30 21:45 CET
----------------------------------------------------------------------
I will recompile it today. Thank you.

----------------------------------------------------------------------
 derick - 2006-01-17 21:15 CET
----------------------------------------------------------------------
Does it work now?

----------------------------------------------------------------------
 judas_iscariote - 2006-01-17 23:29 CET
----------------------------------------------------------------------
I can confirm this problem it a gcc over-optimization issue.
removing "-O2" and debug.collect_params works perfectly

gcc --version
gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux)

(vendor provided GCC)

----------------------------------------------------------------------
 SiburNY - 2006-01-18 20:34 CET
----------------------------------------------------------------------
Everything works like a charm now :) Thanks!

--------------------------------------------------------------------------------
# gcc --version
gcc (GCC) 4.0.2 20051007 (Red Hat 4.0.2-3)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
--------------------------------------------------------------------------------

----------------------------------------------------------------------
 derick - 2006-01-18 22:31 CET
----------------------------------------------------------------------
In CVS I now remove the -O2 for this extension, so all should be well even
without hacking the Makefile yourself. Thanks for testing it!

Bug History
Date Modified Username Field Change
======================================================================
2005-10-14 18:58SiburNY New Bug
2005-10-14 18:58SiburNY Bug Monitored: SiburNY
2005-10-19 10:21derick Bugnote Added: 0000299
2005-10-19 10:21derick Xdebug Version 2.0-dev => 2.0.0beta5-dev
2005-10-19 21:04SiburNY Bugnote Added: 0000301
2005-12-30 14:39derick Bugnote Added: 0000316
2005-12-30 14:39derick Status new => feedback
2005-12-30 21:45SiburNY Bugnote Added: 0000326
2006-01-17 21:15derick Bugnote Added: 0000332
2006-01-17 21:15derick PHP Version 5.0.4 => 5.0.5
2006-01-17 21:15derick Xdebug Version 2.0.0beta5-dev => 2.0.0beta2
2006-01-17 23:29judas_iscarioteBugnote Added: 0000347
2006-01-18 20:34SiburNY Bugnote Added: 0000350
2006-01-18 22:31derick Bugnote Added: 0000351
2006-01-18 22:31derick Status feedback => closed
======================================================================
Received on Wed Jan 18 2006 - 22:31:57 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST