ID: 42893
Comment by: xavier dot martin at enovance dot com
Reported By: hoffie at gentoo dot org
Status: No Feedback
Bug Type: Reproducible crash
Operating System: Linux on ia64
PHP Version: 5.2.5
New Comment:
Same issue with:
* Sun UltraSparc
* php-5.2.8
* gcc 4.3 (debian stable, lenny)
* default CFLAGS
(gdb) run -n -r 'var_dump(defined("foo"));'
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf7fcc6b0 (LWP 29465)]
0x002ceb88 in _zval_ptr_dtor (zval_ptr=0xffee16f4) at /tmp/src/php-
5.2.8/Zend/zend_execute_API.c:412
412 (*zval_ptr)->refcount--;
Previous Comments:
------------------------------------------------------------------------
[2008-07-26 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-07-18 16:23:05] [email protected]
Even if some change between PHP versions is causing this, it's only
happening on ia64, so it might as well be a bug in the compiler. Have
you tried more recent GCC version..?
------------------------------------------------------------------------
[2008-06-26 00:56:54] ryan dot oliver at dse dot vic dot gov dot au
Same issue here with php-5.2.6 on ia64 (SGI Prism w SLES 9 SP3) using
gcc-4.2.4 + binutils-2.18.0.
> As soon as debugging symbols are enabled (CFLAGS=-g or
> ./configure --enable-debug) the problem disappears ...
Issue appears from my rudimentary tests to be due to compiler
optimizations, debug symbols have no bearing on the issue
Compiled with CFLAGS=-O0 CXXFLAGS=-O0 no segfault occurs.
Compiled with CFLAGS=-O1 CXXFLAGS=-O1 no segfault occurs.
So whatever the issue is, it is exposed by one/some of the 27 -O2 gcc
optimizations.
------------------------------------------------------------------------
[2007-11-17 09:07:52] hoffie at gentoo dot org
I've only tried Gentoo and Debian so far, but I think this should be
sufficient. If it fails on two distros and previous versions of php
worked (and still work) then it's likely that it is a bug which got
introduced with php-5.2, isn't it?
If you still want me to try it on another distro, please point me to
some resource to easily install one (like Debians debootstrap).
------------------------------------------------------------------------
[2007-11-17 01:56:02] [email protected]
Can you reproduce this with any linux distro on that machine?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/42893
--
Edit this bug report at http://bugs.php.net/?id=42893&edit=1