php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39584 Segmentation Fault with large memory usage
Submitted: 2006-11-22 10:29 UTC Modified: 2006-11-22 11:43 UTC
From: rinse at solcon dot nl Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.4.4 OS: Debian Linux 2.6.16.1 #1 SMP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rinse at solcon dot nl
New email:
PHP Version: OS:

 

 [2006-11-22 10:29 UTC] rinse at solcon dot nl
Description:
------------
Everytime we start a script that is using more than approx. 300 MB memory, we get a segmentation fault in Apache2 (httpd-2.0.59) error_log.
This is the top of the GDB backtrace:

#0  0xb7deb0b7 in mallopt () from /lib/tls/libc.so.6
#1  0xb7deaf6e in mallopt () from /lib/tls/libc.so.6
#2  0xb7de9dcb in free () from /lib/tls/libc.so.6
#3  0xb7ccbcd2 in _efree (ptr=0x8521dec) at 

Reproduce code:
---------------
It's not related to a spefic code block/function call .

Actual result:
--------------
#0  0xb7deb0b7 in mallopt () from /lib/tls/libc.so.6
#1  0xb7deaf6e in mallopt () from /lib/tls/libc.so.6
#2  0xb7de9dcb in free () from /lib/tls/libc.so.6
#3  0xb7ccbcd2 in _efree (ptr=0x8521dec) at /home/beheer/software/php-4.4.4/Zend/zend_alloc.c:280
#4  0xb7cd3f0e in destroy_op_array (op_array=0x84f50f8) at /home/beheer/software/php-4.4.4/Zend/zend_opcode.c:169
#5  0xb7cddb05 in zend_hash_del_key_or_index (ht=0x820ed18, arKey=0x84f5448 "maaknieuwefactuur", nKeyLength=18, h=2256584740, flag=0)
    at /home/beheer/software/php-4.4.4/Zend/zend_hash.c:529
#6  0xb7cde16d in zend_hash_reverse_apply (ht=0x820ed18, apply_func=0xb7cd1c00 <is_not_internal_function>) at /home/beheer/software/php-4.4.4/Zend/zend_hash.c:775
#7  0xb7cd2027 in shutdown_executor () at /home/beheer/software/php-4.4.4/Zend/zend_execute_API.c:199
#8  0xb7cd9416 in zend_deactivate () at /home/beheer/software/php-4.4.4/Zend/zend.c:689
#9  0xb7caec46 in php_request_shutdown (dummy=0x0) at /home/beheer/software/php-4.4.4/main/main.c:999
#10 0xb7cec9c1 in php_handler (r=0x82221a0) at /home/beheer/software/php-4.4.4/sapi/apache2handler/sapi_apache2.c:598
#11 0x080a5b35 in ap_run_handler (r=0x82221a0) at config.c:152
#12 0x080a6140 in ap_invoke_handler (r=0x82221a0) at config.c:364
#13 0x0807748a in ap_process_request (r=0x82221a0) at http_request.c:249
#14 0x080726dd in ap_process_http_connection (c=0x821c260) at http_core.c:253
#15 0x080b10f5 in ap_run_process_connection (c=0x821c260) at connection.c:43
#16 0x080a4134 in child_main (child_num_arg=139419208) at prefork.c:610
#17 0x080a4287 in make_child (s=0x8540230, slot=2) at prefork.c:704
#18 0x080a43a8 in startup_children (number_to_start=3) at prefork.c:722
#19 0x080a4c1a in ap_mpm_run (_pconf=0x80f10a8, plog=0x81331b0, s=0x80f6938) at prefork.c:941
#20 0x080ab2fc in main (argc=3, argv=0xbfd964d4) at main.c:623

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-22 10:37 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2006-11-22 11:43 UTC] rinse at solcon dot nl
I installed the latste CSV snapshot of the 4.4.X branch.
Problem solved.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Dec 05 17:00:01 2025 UTC