ID: 42893 Comment by: ryan dot oliver at dse dot vic dot gov dot au Reported By: hoffie at gentoo dot org Status: Open Bug Type: Reproducible crash Operating System: Linux on ia64 PHP Version: 5.2.5 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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? ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2007-11-12 10:32:57] [EMAIL PROTECTED] This looks like a broken binary, I've seen similar problems on SPARC with GCC 3.x unable to generate working PHP executable. Try newer/other GCC version. ------------------------------------------------------------------------ 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