PHP 4.0 Bug #2714: Apache w/PHP crashes on mysql query occasionally

From: Date: Fri, 12 Nov 1999 22:11:35 +0000
Subject: PHP 4.0 Bug #2714: Apache w/PHP crashes on mysql query occasionally
Groups: php.dev 
Request: Send a blank email to php-dev+get-12420@lists.php.net to get a copy of this message
From: digitalhermit@hotmail.com Operating system: Linux 2.0.35 Kernel PHP version: 4.0 Beta 2 PHP Bug Type: Reproduceable crash Bug description: Apache w/PHP crashes on mysql query occasionally Sample script: <html> <head> <title>Example</title> </head> <body> <table border=1> <?php $connect = mysql_connect( "localhost", "dbuser", "" ); $selectdb = mysql_select_db("mydatabase", $connect ); $result = mysql_query("SELECT * FROM mytable") or die ("Invalid Query"); while($row = mysql_fetch_row($result)) { echo "<tr>\n"; $count = 0; while ($count++ < 10 ) { echo " <td> &nbsp;$row[$count] </td>\n"; } echo "</tr>\n"; } mysql_free_result($result); ?> </table> </body> </html> Using php.ini that was shipped with distribution. Could it be a problem with using libc.so instead of glibc.so? stack trace: #0 0x400fd3f2 in ?? () from /lib/libc.so.6 #1 0x400fcb8a in ?? () from /lib/libc.so.6 #2 0x80c1651 in _emalloc () #3 0x80cc702 in zend_hash_index_update_or_next_insert () #4 0x80cb035 in add_index_stringl () #5 0x809f484 in php3_mysql_num_fields () #6 0x809f4e5 in php3_mysql_fetch_row () #7 0x80d2a43 in execute () #8 0x8097c33 in php_execute_script () #9 0x8097cb1 in apache_php_module_main () #10 0x8096500 in send_php () #11 0x8096544 in send_parsed_php () #12 0x80d8adb in ap_invoke_handler () #13 0x80eb2d5 in ap_some_auth_required () #14 0x80eb334 in ap_process_request () #15 0x80e3221 in ap_child_terminate () #16 0x80e3458 in ap_child_terminate () #17 0x80e37b2 in ap_child_terminate () #18 0x80e3ca9 in ap_child_terminate () #19 0x80e4317 in main ()

« previous php.dev (#12420) next »