ID: 42893
User updated by: hoffie at gentoo dot org
Reported By: hoffie at gentoo dot org
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: Linux on ia64
PHP Version: 5.2.5
New Comment:
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).
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2007-11-09 20:26:51] hoffie at gentoo dot org
Yes, I admit that above gdb output shows some strangeness, but well --
that's a gdb problem, not generally software being broken on that
system. Upgrading gdb resolved that problem and here goes the new
backtrace (using 5.2.5RC2 now):
(gdb) r -n -r 'var_dump(defined("foo"));'
Starting program: /tmp/php-5.2.5RC2/sapi/cli/php -n -r
'var_dump(defined("foo"));'
Program received signal SIGSEGV, Segmentation fault.
_zval_ptr_dtor (zval_ptr=0x60000ffffff3ebd0)
at /tmp/php-5.2.5RC2/Zend/zend_execute_API.c:412
412 (*zval_ptr)->refcount--;
(gdb) bt
#0 _zval_ptr_dtor (zval_ptr=0x60000ffffff3ebd0)
at /tmp/php-5.2.5RC2/Zend/zend_execute_API.c:412
#1 0x4000000000298a80 in zend_do_fcall_common_helper_SPEC (
execute_data=0x60000ffffff3ec50)
at /tmp/php-5.2.5RC2/Zend/zend_execute.h:155
#2 0x4000000000297200 in execute (op_array=0x60000000000c86e0)
at /tmp/php-5.2.5RC2/Zend/zend_vm_execute.h:92
#3 0x4000000000228800 in zend_eval_string (str=<value optimized out>,
retval_ptr=0x0, string_name=0x400000000041fd10 "Command line
code")
at /tmp/php-5.2.5RC2/Zend/zend_execute_API.c:1171
#4 0x4000000000228c10 in zend_eval_string_ex (
str=0x60000ffffff3f740 "var_dump(defined(\"foo\"));",
retval_ptr=0x0,
string_name=0x400000000041fd10 "Command line code",
handle_exceptions=1)
at /tmp/php-5.2.5RC2/Zend/zend_execute_API.c:1205
#5 0x40000000003a2130 in main (argc=Cannot access memory at address
0x10
)
at /tmp/php-5.2.5RC2/sapi/cli/php_cli.c:1179
------------------------------------------------------------------------
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