|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3833 Constant segfaults
Submitted: 2000-03-15 05:41 UTC Modified: 2002-10-01 13:31 UTC
From: Assigned:
Status: Wont fix Package: Reproducible Crash
PHP Version: 3.0.15 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2000-03-15 05:41 UTC]
Forward from Karri Niskala <>:


 While making a little server installation for a new site ... I noticed that
the particular site managed to segfault Apache with php 3.0.15 on 
every hit.

#0  0x400b1932 in free ()
#1  0x400b17f1 in free ()
#2  0x4018b842 in _efree (ptr=0x820d190) at alloc.c:168
#3  0x40187b7c in pval_destructor (pvalue=0x403ae670) at variables.c:84
#4  0x40189f21 in tc_destroy (tc=0x8325368) at token_cache.c:307
#5  0x40189f81 in tcm_destroy (tcm=0x40203878) at token_cache.c:321
#6  0x40182592 in php3_request_shutdown (dummy=0x0) at main.c:784
#7  0x8050d94 in ap_run_cleanup ()
#8  0x804fc4f in ap_clear_pool ()
#9  0x804fcb2 in ap_destroy_pool ()
#10 0x804fc3d in ap_clear_pool ()
#11 0x805c9da in ap_child_terminate ()
#12 0x805cf5b in ap_child_terminate ()
#13 0x805d068 in ap_child_terminate ()
#14 0x805d54b in ap_child_terminate ()
#15 0x805dc9e in main ()
--backtrace ends--

 I had to come up with something to at least stop the segfaults, 
so I was able keep Apache alive by commenting out the 'efree' call
in  pval_destruct (in variables.c) in the last block.
if (pvalue->value.func.arg_types) {


 That surprisingly isn't a very long lasting solution, so do you
have any idea what might be causing the problem? Or could you
forward  the bug to someone who knows something about these things.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-15 06:02 UTC] torben at cvs dot php dot net
New information:

Does not segfault when compiled with --enable-debug=yes; and we
get this:

Block 0x08176240 status at variables.c:84:
Beginning:      Overrun (magic=0x081761D8, expected=0x7312F8DC)
      End:      Unknown

kinda error messages to the error.log of Apache.

 [2002-10-01 13:31 UTC]
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 18:01:30 2024 UTC