[xdebug-dev] Bug 0000046: Segmentation fault with PHP5.0.0b4 in threadsafe

From: <xdebug-dev[@]lists.xdebug.org>
Date: Mon, 31 May 2004 14:05:26 +0200

The following bug has been RESOLVED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000046
======================================================================
Reporter: duncan
Handler: derick
======================================================================
Project: Xdebug
Bug ID: 46
Category: Usage problems
Reproducibility: always
Severity: crash
Priority: normal
Status: resolved
Operating System: Redhat Linux 9
PHP Version: 5.0.0-dev
Xdebug Version: 2.0-dev
Resolution: suspended
======================================================================
Date Submitted: 2004-02-24 03:11 CET
Last Modified: 2004-05-31 14:05 CEST
======================================================================
Summary: Segmentation fault with PHP5.0.0b4 in threadsafe
Description:
PHP 5.0.0b4 exits with a segmentation fault if xdebug is installed as a
thread-safe module with zend_extension_ts. This occurs with xdebug 1.3 and
the latest version from CVS. The problem is with b4, it worked fine under
b3.
======================================================================

----------------------------------------------------------------------
 duncan - 2004-02-24 07:46 CET
----------------------------------------------------------------------
Additional. Probably has something to do with the API change Zend made in
b4

----------------------------------------------------------------------
 derick - 2004-02-25 17:09 CET
----------------------------------------------------------------------
Does this happen with every script? If not, please provide a short! testing
script. If you can, please also provide a backtrace.

----------------------------------------------------------------------
 duncan - 2004-02-26 02:31 CET
----------------------------------------------------------------------
Seems to occur with every invocation of php, even just simply fetching the
version with -v. Running with a <? phpinfo() ?> as input, the script
outputs all system variables and the PHP license before seg faulting.

I tried running it with gdb to get a backtrace but it wasn't being
helpful, do I need to compile with any special options?

compiler flags being used by default are: -O2 -pipe -march=i686
-fomit-frame-pointer

As stated, everything worked fine until the change from b3 to b4

----------------------------------------------------------------------
 derick - 2004-02-27 21:07 CET
----------------------------------------------------------------------
can you please compile without any of those flags, and add --enable-debug
to your PHP configure line? That should give you a much better backtrace.
I still can't reproduce your segfault here.

----------------------------------------------------------------------
 derick - 2004-05-31 14:05 CEST
----------------------------------------------------------------------
No feedback.

Bug History
Date Modified Username Field Change
======================================================================
2004-02-24 03:11duncan New Bug
2004-02-24 07:46duncan Bugnote Added: 0000098
2004-02-25 17:09derick Bugnote Added: 0000099
2004-02-25 17:09derick Status new => feedback
2004-02-26 02:31duncan Bugnote Added: 0000100
2004-02-27 21:07derick Bugnote Added: 0000104
2004-05-31 14:05derick Bugnote Added: 0000140
2004-05-31 14:05derick Assigned To => derick
2004-05-31 14:05derick Resolution open => suspended
2004-05-31 14:05derick Status feedback => resolved
======================================================================
Received on Mon May 31 2004 - 14:05:26 BST

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