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

This explains why I'm unable to reproduce it..
Well, I'm afraid you're most likely on your own with such exotic
platform and compiler version.


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

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

Can't reproduce the problem with gcc 3

# gcc -v
Reading specs from
/opt/GNUgcc3/lib/gcc/sparcv9-sun-solaris2.9/3.4.6/specs
Configured with: ../configure --prefix=/opt/GNUgcc3
--enable-languages=c --disable-nls sparcv9-sun-solaris2.9
Thread model: posix
gcc version 3.4.6

# file sapi/cli/php
sapi/cli/php:   ELF 64-bit MSB executable SPARCV9 Version 1,
dynamically linked, not stripped

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

[2006-11-16 10:23:41] [EMAIL PROTECTED]

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

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

[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



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

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