#39418 [Opn->Bgs]: ltrim() crash in _zval_ptr_dtor()

From: Date: Tue, 21 Nov 2006 21:16:27 +0000
Subject: #39418 [Opn->Bgs]: ltrim() crash in _zval_ptr_dtor()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-105268@lists.php.net to get a copy of this message
ID: 39418 Updated by: tony2001@php.net Reported By: php at fiddaman dot net -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: Solaris 10 PHP Version: 5.2.0 New Comment: The problem seems to be caused by GCC 4.1.1, so it doesn't look like PHP problem (PHP itself works perfectly fine with GCC4 on Linux, for example). Please reopen the report when/if you have any additional information. Thank you. Previous Comments: ------------------------------------------------------------------------ [2006-11-16 16:12:19] tony2001@php.net 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. ------------------------------------------------------------------------ [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] tony2001@php.net 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"); ?> ------------------------------------------------------------------------ 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

« previous php.bugs (#105268) next »