#32929 [NEW]: php crashing on array element assignment

From: Date: Tue, 03 May 2005 17:51:38 +0000
Subject: #32929 [NEW]: php crashing on array element assignment
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-78587@lists.php.net to get a copy of this message
From: majoros at inma dot ucl dot ac dot be Operating system: fc3 PHP version: 4.3.11 PHP Bug Type: Reproducible crash Bug description: php crashing on array element assignment Description: ------------ PHP is crashing on some page (segfault), at least on two servers. It crashes when I try to create a new array element (see code), not always, but always in the same conditions. Same with 4.3.10, 4.3.11 and latest cvs. configure: './configure' '--with-apxs2' '--with-iconv' Reproduce code: --------------- while ($res=$result->fetchRow(DB_FETCHMODE_ASSOC)) { // TODO: make iconv optional foreach ($res as $key=>$val) $res[$key]=iconv("ISO-8859-1","UTF-8",$val); ////// CRASHING ON FOLLOWING LINE AFTER 5 ITERATIONS (DATA DEPENDANT) $wikireq[$id][]=$res; } Expected result: ---------------- should not crash! Actual result: -------------- crash boom, this line in apache error.log: [Tue May 03 19:33:21 2005] [notice] child pid 10313 exit signal Segmentation fault (11) -- Edit bug report at http://bugs.php.net/?id=32929&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32929&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32929&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32929&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32929&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32929&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32929&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32929&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32929&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32929&r=support Expected behavior: http://bugs.php.net/fix.php?id=32929&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32929&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32929&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32929&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32929&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32929&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32929&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32929&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32929&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32929&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32929&r=mysqlcfg

« previous php.bugs (#78587) next »