#32929 [Opn-Csd]: php crashing on array element assignment
ID: 32929 User updated by: majoros at inma dot ucl dot ac dot be Reported By: majoros at inma dot ucl dot ac dot be -Status: Open +Status: Closed Bug Type: Reproducible crash Operating System: fc3 PHP Version: 4.3.11 New Comment: closing... Previous Comments: [2005-05-04 09:55:31] majoros at inma dot ucl dot ac dot be Ok, it seems that the bug was somewhere else, in the portal I use (tikiwiki). It's true that it didn't crash if I put a return just before the assignment, and that it did otherwise, but the crash was really somewhere else, due to infinite recursion (limited to 64 by php). I corrected the bug in tikiwiki. Thanks to all people who checked this, and sorry for the inconvenience. Regards, Yannick Majoros [2005-05-04 00:28:27] majoros at inma dot ucl dot ac dot be You can even forget about the foreach loop, and thus var: same problem if I remove them... [2005-05-04 00:11:00] majoros at inma dot ucl dot ac dot be $val is some value extracted from a database. The foreach loop goes through every column of the data extracted from the current row ($res). Here are the values contained in $res when the crash occurs (on 5th iteration in 'while'): mvanhXXX,Marie-Anne Van HXXX,1,1,1,1,0 I had to replace some name with XXX for privacy, but it doesn't contain any special character. BTW, the same happens if i just leave the iconv. If I replace the bad line with this: $wikireq[$id][]=''; The crash doesn't occur (but I don't get my data). [2005-05-03 22:50:17] [EMAIL PROTECTED] What is the value of $val variable. [2005-05-03 19:51:37] majoros at inma dot ucl dot ac dot be 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 this bug report at http://bugs.php.net/?id=32929edit=1
#32929 [Opn]: php crashing on array element assignment
ID: 32929 User updated by: majoros at inma dot ucl dot ac dot be Reported By: majoros at inma dot ucl dot ac dot be Status: Open Bug Type: Reproducible crash Operating System: fc3 PHP Version: 4.3.11 New Comment: Ok, it seems that the bug was somewhere else, in the portal I use (tikiwiki). It's true that it didn't crash if I put a return just before the assignment, and that it did otherwise, but the crash was really somewhere else, due to infinite recursion (limited to 64 by php). I corrected the bug in tikiwiki. Thanks to all people who checked this, and sorry for the inconvenience. Regards, Yannick Majoros Previous Comments: [2005-05-04 00:28:27] majoros at inma dot ucl dot ac dot be You can even forget about the foreach loop, and thus var: same problem if I remove them... [2005-05-04 00:11:00] majoros at inma dot ucl dot ac dot be $val is some value extracted from a database. The foreach loop goes through every column of the data extracted from the current row ($res). Here are the values contained in $res when the crash occurs (on 5th iteration in 'while'): mvanhXXX,Marie-Anne Van HXXX,1,1,1,1,0 I had to replace some name with XXX for privacy, but it doesn't contain any special character. BTW, the same happens if i just leave the iconv. If I replace the bad line with this: $wikireq[$id][]=''; The crash doesn't occur (but I don't get my data). [2005-05-03 22:50:17] [EMAIL PROTECTED] What is the value of $val variable. [2005-05-03 19:51:37] majoros at inma dot ucl dot ac dot be 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 this bug report at http://bugs.php.net/?id=32929edit=1
#32929 [Opn]: php crashing on array element assignment
ID: 32929 User updated by: majoros at inma dot ucl dot ac dot be Reported By: majoros at inma dot ucl dot ac dot be Status: Open Bug Type: Reproducible crash Operating System: fc3 PHP Version: 4.3.11 New Comment: You can even forget about the foreach loop, and thus var: same problem if I remove them... Previous Comments: [2005-05-04 00:11:00] majoros at inma dot ucl dot ac dot be $val is some value extracted from a database. The foreach loop goes through every column of the data extracted from the current row ($res). Here are the values contained in $res when the crash occurs (on 5th iteration in 'while'): mvanhXXX,Marie-Anne Van HXXX,1,1,1,1,0 I had to replace some name with XXX for privacy, but it doesn't contain any special character. BTW, the same happens if i just leave the iconv. If I replace the bad line with this: $wikireq[$id][]=''; The crash doesn't occur (but I don't get my data). [2005-05-03 22:50:17] [EMAIL PROTECTED] What is the value of $val variable. [2005-05-03 19:51:37] majoros at inma dot ucl dot ac dot be 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 this bug report at http://bugs.php.net/?id=32929edit=1
#32929 [Fbk-Opn]: php crashing on array element assignment
ID: 32929 User updated by: majoros at inma dot ucl dot ac dot be Reported By: majoros at inma dot ucl dot ac dot be -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: fc3 PHP Version: 4.3.11 New Comment: $val is some value extracted from a database. The foreach loop goes through every column of the data extracted from the current row ($res). Here are the values contained in $res when the crash occurs (on 5th iteration in 'while'): mvanhXXX,Marie-Anne Van HXXX,1,1,1,1,0 I had to replace some name with XXX for privacy, but it doesn't contain any special character. BTW, the same happens if i just leave the iconv. If I replace the bad line with this: $wikireq[$id][]=''; The crash doesn't occur (but I don't get my data). Previous Comments: [2005-05-03 22:50:17] [EMAIL PROTECTED] What is the value of $val variable. [2005-05-03 19:51:37] majoros at inma dot ucl dot ac dot be 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 this bug report at http://bugs.php.net/?id=32929edit=1
#32929 [NEW]: php crashing on array element assignment
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=32929edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32929r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32929r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32929r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32929r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32929r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32929r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32929r=needscript Try newer version: http://bugs.php.net/fix.php?id=32929r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32929r=support Expected behavior: http://bugs.php.net/fix.php?id=32929r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32929r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32929r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32929r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32929r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32929r=dst IIS Stability: http://bugs.php.net/fix.php?id=32929r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32929r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32929r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32929r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32929r=mysqlcfg