#20985 [Opn->Fbk]: heavy load = Segmentation fault
| From: | iliaa@php.net | Date: | Mon, 16 Dec 2002 03:34:42 +0000 |
| Subject: | #20985 [Opn->Fbk]: heavy load = Segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27810@lists.php.net to get a copy of this message | ||
ID: 20985
Updated by: iliaa@php.net
Reported By: jfl@eksperten.dk
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Redhat Linux 7.3 & 8
PHP Version: 4.3.0RC3
New Comment:
This is a fairly big script and I cannot even run it fully because I am
missing over a dosen various includes your script requires. Is there
any way you could reduce this to a single, preferably short script that
could be used to replicate the memory leak you are seeing?
Previous Comments:
------------------------------------------------------------------------
[2002-12-15 13:21:15] jfl@eksperten.dk
The files has been sent to iliaa@php.net.
If none of my scripts has errors I can not get SIGSEGV. But I get "Last
leak repeated X times". Have a look at
http://test.webalogic.net/bugs/error_log-no_SIGSEGV
and the other files
at http://test.webalogic.net/
------------------------------------------------------------------------
[2002-12-14 23:37:19] iliaa@php.net
Could you provide copies of the list.phtml & info.phtml scripts?
------------------------------------------------------------------------
[2002-12-14 16:22:39] jfl@eksperten.dk
By starting Apache, with built in Php-4.3.0RC3, with 'gdb
/usr/local/apache/bin/httpd' I can not make it crash.
But if I start Apache normally I get a Segmentation fault in the
error_log. Please see the bottom of
http://test.webalogic.net/bugs/error_log_php4-3
(2mb)
What can I do to help you further?
------------------------------------------------------------------------
[2002-12-14 13:59:11] jfl@eksperten.dk
I'll now start testing Php-4.3.0RC3
------------------------------------------------------------------------
[2002-12-14 13:51:02] jfl@eksperten.dk
This is what I get every time with Php 4.2.3 compiled into Apache.
More info @ http://test.webalogic.net/bugs/
I think the bug is happening when Apache is trying to kill children, as
the SIGSEGV is happening when the stress tool is finished.
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X
Program received signal SIGSEGV, Segmentation fault.
0x4207c46c in memcpy () from /lib/i686/libc.so.6
(gdb) bt
#0 0x4207c46c in memcpy () from /lib/i686/libc.so.6
#1 0x081041d0 in _mem_block_check ()
#2 0x08104197 in _mem_block_check ()
#3 0x081034a1 in _efree ()
#4 0x0811283c in _zval_dtor ()
#5 0x08109bac in free_zend_constant ()
#6 0x08118c29 in zend_hash_del_key_or_index ()
#7 0x081194a6 in zend_hash_reverse_apply ()
#8 0x08109fb4 in clean_non_persistent_constants ()
#9 0x0810a780 in shutdown_executor ()
#10 0x0811387f in zend_deactivate ()
#11 0x08078500 in php_request_shutdown ()
#12 0x0811f192 in apache_php_module_main ()
#13 0x080761cc in php_restore_umask ()
#14 0x08076237 in php_restore_umask ()
#15 0x08140990 in ap_invoke_handler ()
#16 0x08154d86 in ap_some_auth_required ()
#17 0x08154de6 in ap_process_request ()
#18 0x0814c0aa in ap_child_terminate ()
#19 0x0814c24a in ap_child_terminate ()
#20 0x0814c3b1 in ap_child_terminate ()
#21 0x0814c9de in ap_child_terminate ()
#22 0x0814d1fc in main ()
---Type <return> to continue, or q <return> to quit---
#23 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) frame 5
#5 0x08109bac in free_zend_constant ()
(gdb) list
1 <unknown>: No such file or directory.
in <unknown>
(gdb) p
The history is empty.
(gdb)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20985
--
Edit this bug report at http://bugs.php.net/?id=20985&edit=1