ID: 18743 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: Linux Redhat 7.2 PHP Version: 4.2.2 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-08-07 00:16:53] [EMAIL PROTECTED] Requested backtrace Starting program: /usr/local/apache_fp/bin/httpd -X Program received signal SIGSEGV, Segmentation fault. 0x4207acc0 in chunk_free () from /lib/i686/libc.so.6 (gdb) bt #0 0x4207acc0 in chunk_free () from /lib/i686/libc.so.6 #1 0x4207ac24 in free () from /lib/i686/libc.so.6 #2 0x4014608e in _efree (ptr=0x836d6bc, __zend_filename=0x402c8761 "./zend_execute.c", __zend_lineno=449, __zend_orig_filename=0x402c9273 "zend_variables.c", __zend_orig_lineno=44) at zend_alloc.c:246 #3 0x4016153e in _zval_dtor (zvalue=0x8205b14, __zend_filename=0x402c8761 "./zend_execute.c", __zend_lineno=449) at zend_variables.c:44 #4 0x401570d6 in zend_assign_to_variable (result=0x81539b8, op1=0x81539c8, op2=0x81539d8, value=0x8204e5c, type=4, Ts=0xbfffac88) at ./zend_execute.c:449 #5 0x401519a1 in execute (op_array=0x8150ed4) at ./zend_execute.c:1346 #6 0x40152997 in execute (op_array=0x8151d2c) at ./zend_execute.c:1638 #7 0x40152997 in execute (op_array=0x81387ac) at ./zend_execute.c:1638 #8 0x401633b8 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at zend.c:810 #9 0x40175bda in php_execute_script (primary_file=0xbffff708) at main.c:1381 #10 0x40170626 in apache_php_module_main (r=0x812c794, display_source_mode=0) at sapi_apache.c:90 #11 0x40171494 in send_php (r=0x812c794, display_source_mode=0, filename=0x812d37c "/home/server-real1/html/98-11_search_results.php") at mod_php4.c:575 #12 0x40171501 in send_parsed_php (r=0x812c794) at mod_php4.c:590 #13 0x08055ff3 in ap_invoke_handler () #14 0x0806a8f9 in process_request_internal () #15 0x0806a95c in ap_process_request () #16 0x08061a6e in child_main () #17 0x08061c00 in make_child () #18 0x08061d59 in startup_children () #19 0x080623b6 in standalone_main () #20 0x08062b83 in main () #21 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6 (gdb) ------------------------------------------------------------------------ [2002-08-05 14:32:51] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. ------------------------------------------------------------------------ [2002-08-05 13:59:03] [EMAIL PROTECTED] I have an object with a method that performs a mysql search. It collects values from the search results, and pushes them on to an array to return. This code works great for smaller query results, but it causes a segmentation fault with larger numbers (approximately 1300 results) Running PHP 4.2.2 Apache 1.3.6 (mod_frontpage, mod_rewrite) MySQL 3.23.43 --- EXAMPLE CODE --- $mailDbLink = mysql_connect($mailserver,$mailuser,$mailpass) or die("Could not connect to mail system"); mysql_select_db($maildbname) or die("Could not select appropriate database in 98-11 system"); $query = mysql_query($processEmailTableSql) or die("Could not perform 98-11 search: " . mysql_error()); while($row = mysql_fetch_array($query)) { array_push($resultsArray,$row["MessageID"]); } return $resultsArray; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18743&edit=1
