#42893 [Opn->Fbk]: segfault on ia64 when working w/ constants
| From: | jani@php.net | Date: | Fri, 18 Jul 2008 16:23:05 +0000 |
| Subject: | #42893 [Opn->Fbk]: segfault on ia64 when working w/ constants | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126958@lists.php.net to get a copy of this message | ||
ID: 42893
Updated by: jani@php.net
Reported By: hoffie at gentoo dot org
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Linux on ia64
PHP Version: 5.2.5
New Comment:
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..?
Previous Comments:
------------------------------------------------------------------------
[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] jani@php.net
Can you reproduce this with any linux distro on that machine?
------------------------------------------------------------------------
[2007-11-12 19:26:18] hoffie at gentoo dot org
Still reproducable with gcc-4.2.2 and php-5.2.5 (final).
------------------------------------------------------------------------
[2007-11-12 17:52:24] hoffie at gentoo dot org
We are not using gcc-3.x, but gcc-4.1(.2). Anyway, I've tried with
4.2.0 (as it was already installed) and it fails for the same reasons.
I'm going to try 4.2.2, I can probably give you results later.
------------------------------------------------------------------------
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