Bug #42893 [Com]: segfault on ia64 when working w/ constants

From: Date: Mon, 14 Oct 2013 11:40:03 +0000
Subject: Bug #42893 [Com]: segfault on ia64 when working w/ constants
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182143@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=42893&edit=1

 ID:                 42893
 Comment by:         devurandom at gmx dot net
 Reported by:        hoffie at gentoo dot org
 Summary:            segfault on ia64 when working w/ constants
 Status:             No Feedback
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   Linux on ia64
 PHP Version:        5.2.5
 Block user comment: N
 Private report:     N

 New Comment:

Has anyone had a look at this in the recent years?


Previous Comments:
------------------------------------------------------------------------
[2009-03-15 16:50:40] xavier dot martin at enovance dot com

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--;

------------------------------------------------------------------------
[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] jani@php.net

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).

------------------------------------------------------------------------


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

    https://bugs.php.net/bug.php?id=42893


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=42893&edit=1


Thread (15 messages)

« previous php.bugs (#182143) next »