ID:               39418
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at fiddaman dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Solaris 10
 PHP Version:      5.2.0
 New Comment:

Is there any chance to try to build PHP with GCC 3.x ?


Previous Comments:
------------------------------------------------------------------------

[2006-11-16 10:18:02] php at fiddaman dot net

Latest snapshot - no change, crashes in the same place.

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

[2006-11-16 03:53:54] pkwarren at gmail dot com

I am seeing this problem on Solaris 9 with a build of PHP 5.2.0
(released version and the latest snapshot - 200611152130). I am also
building PHP with the GCC 4.1.1 compiler. Here is the stack trace from
GDB:

(gdb) where
#0  _zval_ptr_dtor (zval_ptr=0x45e520)
    at /build/php/work/php5.2-200611152130/Zend/zend_execute_API.c:412
#1  0x00202288 in zend_do_fcall_common_helper_SPEC
(execute_data=0xffbff1ec)
    at zend_execute.h:149
#2  0x00201654 in execute (op_array=0xffbff318) at
zend_vm_execute.h:92
#3  0x001e3c84 in zend_execute_scripts (type=1, retval=Variable
"retval" is not available.
)
    at /build/php/work/php5.2-200611152130/Zend/zend.c:1098
#4  0x001a0fc8 in php_execute_script (primary_file=0x1)
    at /build/php/work/php5.2-200611152130/main/main.c:1758
#5  0x0026e0f4 in main (argc=1, argv=0x0)
    at /build/php/work/php5.2-200611152130/sapi/cli/php_cli.c:1108

I can reproduce the crash with the ltrim testcase, and also with this
testcase:

<?php
    $doc = new DOMDocument();
    $root = $doc->createElement("root");
?>

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

[2006-11-15 12:41:16] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip



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

[2006-11-08 21:47:01] php at fiddaman dot net

Same result:

# mdb /var/core/60001-httpd-25059
Loading modules: [ libc.so.1 libuutil.so.1 ld.so.1 ]
> ::stack
libphp5.2.0.so`_zval_ptr_dtor+0x14(ffffffff7fffe618, 100455bf8, 0, 0,
0, 1)
libphp5.2.0.so`zend_do_fcall_common_helper_SPEC+0x364(ffffffff7fffe720,
0, 0, 
1004459f8, 0, 0)
libphp5.2.0.so`execute+0x160(1004553b0, ffffffff7ffff068,
ffffffff79053360, 
ffffffff7fffe94c, 4, 0)
libphp5.2.0.so`zend_execute_scripts+0x128(8, 0, 3, ffffffff792b7780, 
ffffffff7ffff068, 1004554a8)
libphp5.2.0.so`php_execute_script+0x210(0, ffffffff79171078, 6, 0,
70687000, 
7068702d)
libphp5.2.0.so`php_handler+0x634(1003afbe8, 25252525, 70000000,
80808080, ff00, 80808080)
ap_run_handler+0x84(1003afbe8, 0, 1003afbe8, 1003a9ea8, 1003afe68,
1003afe78)
ap_invoke_handler+0x1c4(1003afbe8, 0, 4, 1003afbe8, 0, 1003afe91)
ap_process_request+0x94(1003afbe8, 4, 1003afbe8, 0, 0, 0)
ap_process_http_connection+0x6c(1003a9ea8, 1003a9bb8, 1003a9bb8, 
fffffffffffffff8, 0, 1003a9f59)
ap_run_process_connection+0x84(1003a9ea8, 1003a9bb8, 1003a9bb8, 0,
1003a7c00, 
1003adb68)
ap_process_connection+0x88(1003a9ea8, 1003a9bb8, 1003a9bb8, 0,
1003a7c00, 
1003adb68)
child_main+0x7f4(0, 1000d850c, ffffffff7d006ae8, 0, ffffffff7d202000, 
ffffffff7d5eef40)
make_child+0x230(100233628, 0, 0, ffffffff7d5ef440, ffffffff7d202000,
0)
startup_children+0x7c(1, 2, 5, 100225d68, 100382fd0, 0)
ap_mpm_run+0x4f8(100225d68, 10026dfa8, 100233628, 100233628, 0, 0)
main+0x1040(3, ffffffff7ffffcc8, ffffffff7ffffce8, 100219b80,
100000000, 
ffffffff7d200140)
_start+0x7c(0, 0, 0, 0, 0, 0)

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

[2006-11-08 21:39:34] [EMAIL PROTECTED]

Please try the following patch:
http://bb.prohost.org/patch/trim.txt

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

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/39418

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

Reply via email to