php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2714 Apache w/PHP crashes on mysql query occasionally
Submitted: 1999-11-12 17:11 UTC Modified: 2000-07-23 02:50 UTC
From: digitalhermit at hotmail dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Beta 2 OS: Linux 2.0.35 Kernel
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: digitalhermit at hotmail dot com
New email:
PHP Version: OS:

 

 [1999-11-12 17:11 UTC] digitalhermit at hotmail dot com
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 ()

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-23 02:50 UTC] zak at cvs dot php dot net
Please upgrade to the most recent release of PHP.
If the error still occurs, please submit a new bug report.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 14 08:00:01 2026 UTC