ID: 36241 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Reproducible crash Operating System: Linux on PowerPC PHP Version: 6CVS-2006-02-10 (CVS) New Comment:
I cannot reproduce this on either x86 (BSD) or PPC (OSX). Previous Comments: ------------------------------------------------------------------------ [2006-03-03 18:10:18] [EMAIL PROTECTED] I just did a fresh build of the current cvs on powerpc and i386. The i386 works perfectly [EMAIL PROTECTED]:/software/cvs/php-src$ /usr/local/php5-cvs/bin/php -r 'print_r(explode(",", "bal,blaj,alsdj"));' Array ( [0] => bal [1] => blaj [2] => alsdj ) [EMAIL PROTECTED]:/software/cvs/php-src$ The powerpc version still crashes. ------------------------------------------------------------------------ [2006-02-21 01:00:03] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2006-02-13 19:10:41] [EMAIL PROTECTED] Is Linux on PPC the only platform where you're able to reproduce it? ------------------------------------------------------------------------ [2006-02-10 09:53:02] [EMAIL PROTECTED] I just updated my cvs working copy and the error has slightly changed but is still there. The following script causes the trouble: <?php $arr = explode(",", "bal,blo,ble"); ?> It's not segm fault anymore but that doesn't make much of a difference. zend_parse_parameters() just returns bogus. Here is a gdb session: [EMAIL PROTECTED]:/tmp$ gdb /usr/local/php5-cvs/bin/php GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) break string.c:1099 Breakpoint 1 at 0x101fada4: file /home/cvs/php/php-src/ext/standard/string.c, line 1099. (gdb) run -f explode.php Starting program: /home/local/php5-cvs/bin/php -f explode.php warning: Lowest section in /usr/lib/libicudata.so.34 is .hash at 00000094 [Thread debugging using libthread_db enabled] [New Thread 805588960 (LWP 20645)] [Switching to Thread 805588960 (LWP 20645)] Breakpoint 1, zif_explode (ht=2, return_value=0x1069ca68, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at /home/cvs/php/php-src/ext/standard/string.c:1099 1099 if ( zend_parse_parameters(argc TSRMLS_CC, "TT|l", &delim, &delim_len, &delim_type, (gdb) next 1104 if ( delim_len == 0 ) { (gdb) print str $1 = (void *) 0xb7 (gdb) print delim $2 = (void *) 0x1040345c (gdb) print str_len $3 = 16 (gdb) print delim_len $4 = 0 (gdb) print (char *) delim $5 = 0x1040345c "/home/cvs/php/php-src/Zend/zend_vm_execute.h" If continue the program I get a php error message because the delim string is empty. Uwe ------------------------------------------------------------------------ [2006-02-01 11:15:33] [EMAIL PROTECTED] Can't reproduce on i386 both in Unicode and regular modes. ------------------------------------------------------------------------ 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/36241 -- Edit this bug report at http://bugs.php.net/?id=36241&edit=1