#39584 [NEW]: Segmentation Fault with large memory usage
| From: | rinse at solcon dot nl | Date: | Wed, 22 Nov 2006 10:29:48 +0000 |
| Subject: | #39584 [NEW]: Segmentation Fault with large memory usage | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-105293@lists.php.net to get a copy of this message | ||
From: rinse at solcon dot nl
Operating system: Debian Linux 2.6.16.1 #1 SMP
PHP version: 4.4.4
PHP Bug Type: Reproducible crash
Bug description: Segmentation Fault with large memory usage
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
--
Edit bug report at http://bugs.php.net/?id=39584&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39584&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39584&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39584&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39584&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39584&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39584&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39584&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39584&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39584&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39584&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39584&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39584&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39584&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39584&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39584&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39584&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39584&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39584&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39584&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39584&r=mysqlcfg