ID: 16438 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Red Hat Linux release 6.2 PHP Version: 4.1.2 New Comment:
First, please try with PHP 4.2.0RC2 from http://www.php.net/~derick/ Second question is, how many rows are there in the array causing the crash? Previous Comments: ------------------------------------------------------------------------ [2002-04-04 21:02:10] [EMAIL PROTECTED] configuration line ================== ./configure --with-mysql --with-socket --enable-trans-sid --with-progel --with-gd --enable-discard-path description =========== chatv2.php - daily batch program, read database (MySQL), generate statistics, write database. As the records increased, it's occurs more often. debug info ========== $ gdb /usr/local/bin/php /home/tony/stats/bin/core GNU gdb 19991004 Copyright 1998 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 "i386-redhat-linux"... Core was generated by `/usr/local/bin/php /home/tony/stats/bin/chatv2.php'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libdl.so.2...done. Reading symbols from /lib/libcrypt.so.1...done. Reading symbols from /lib/libresolv.so.2...done. Reading symbols from /lib/libpam.so.0...done. Reading symbols from /usr/lib/libgd.so.1...done. Reading symbols from /lib/libm.so.6...done. Reading symbols from /lib/libnsl.so.1...done. Reading symbols from /lib/libc.so.6...done. Reading symbols from /lib/ld-linux.so.2...done. Reading symbols from /lib/libnss_files.so.2...done. Reading symbols from /usr/lib/gconv/ISO8859-1.so...done. #0 0x80eca73 in _array_init (arg=0xa4feb24) at zend_API.c:561 561 ALLOC_HASHTABLE_REL(arg->value.ht); (gdb) run /home/tony/stats/bin/chatv2.php Starting program: /usr/local/bin/php /home/tony/stats/bin/chatv2.php X-Powered-By: PHP/4.1.2 Content-type: text/html Process day : 2002-04-03.... Program received signal SIGSEGV, Segmentation fault. 0x80eca73 in _array_init (arg=0xa4feb24) at zend_API.c:561 561 ALLOC_HASHTABLE_REL(arg->value.ht); (gdb) bt #0 0x80eca73 in _array_init (arg=0xa4feb24) at zend_API.c:561 #1 0x8070996 in php_mysql_fetch_hash (ht=1, return_value=0xa4feb24, this_ptr=0x0, return_value_used=1, result_type=1, expected_args=1) at php_mysql.c:1590 #2 0x8070b68 in zif_mysql_fetch_assoc (ht=1, return_value=0xa4feb24, this_ptr=0x0, return_value_used=1) at php_mysql.c:1664 #3 0x81057e6 in execute (op_array=0x8184f54) at ./zend_execute.c:1590 #4 0x80ebcb6 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at zend.c:814 #5 0x8062aba in php_execute_script (primary_file=0xbffffa74) at main.c:1307 #6 0x8060e6b in main (argc=2, argv=0xbffffad4) at cgi_main.c:738 (gdb) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16438&edit=1
