From vrg@hokuszpok.cmt.hu  Thu Sep 27 06:57:38 2001
Return-Path: <vrg@hokuszpok.cmt.hu>
Received: from hokuszpok.cmt.hu (hokuszpok.cmt.hu [195.70.35.99])
	by hub.freebsd.org (Postfix) with ESMTP id 2E29A37B413
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Sep 2001 06:57:36 -0700 (PDT)
Received: (from root@localhost)
	by hokuszpok.cmt.hu (8.11.3/8.9.3) id f8RDwjN30898;
	Thu, 27 Sep 2001 15:58:46 +0200 (CEST)
	(envelope-from vrg)
Message-Id: <200109271358.f8RDwjN30898@hokuszpok.cmt.hu>
Date: Thu, 27 Sep 2001 15:58:46 +0200 (CEST)
From: vrg@cmt.hu
Reply-To: vrg@cmt.hu
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: www/apache13-ssl: httpd in free(): warning: recursive call
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         30870
>Category:       ports
>Synopsis:       www/apache13-modssl: httpd in free(): warning:
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 27 07:00:01 PDT 2001
>Closed-Date:    Sun Nov 02 14:08:06 PST 2003
>Last-Modified:  Mon Jan 12 16:12:29 PST 2004
>Originator:     Peter Varga
>Release:        FreeBSD 4.3-RELEASE i386
>Organization:
CMT LTD.
>Environment:
System: FreeBSD hokuszpok 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Thu Sep 6 10:58:15 CEST 2001 root@bobek:/usr/src/sys/compile/BOBEK i386

apache+mod_ssl-1.3.20+2.8.4 (from ports)
mod_php-4.0.6 (from ports) (
'./configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-system-regex
' '--disable-debug' '--enable-track-vars' '--without-gd' '--without-mysql' '--with-gd=/usr/local' '--with-freetype-dir=/usr/local' 
'--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-zlib' '--with-imap=/usr/local' '--with-mysql=/usr/local' 
'--with-xml' '--with-expat-dir=/usr/local' '--enable-ftp' '--with-ming=/usr/local' '--enable-sysvsem' '--enable-sysvshm' 
'--enable-trans-sid' '--prefix=/usr/local' 'i386--freebsd4.3' )


>Description:
Sometimes apache begins to write the apache_error_log full of the following
error message:
httpd in free(): warning: recursive call.
When this occurs, it writes until the log partition is full... The load goes
to the top... the last message is something like this:
couldn't allocate 30 bytes... 

>How-To-Repeat:
This problem usually occurs under heavy load of the apache, with mainly php
scripts using mysql persistent connections. I've noticed, that it's easier to
reproduce this error, if the physical memory is getting full, and it begins
swapping.


>Fix:
No idea.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: petef 
State-Changed-When: Sun Jun 2 17:11:45 PDT 2002 
State-Changed-Why:  
Is this still a problem with the latest Apache? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=30870 

From: Luc <luc@2113.ch>
To: freebsd-gnats-submit@FreeBSD.org, vrg@cmt.hu
Cc:  
Subject: Re: ports/30870: httpd in free(): warning: recursive call
Date: Fri, 23 Aug 2002 09:53:47 +0200

 Hi,
 
 > Description
 > Sometimes apache begins to write the apache_error_log full of the following
 > error message:
 > httpd in free(): warning: recursive call.
 > When this occurs, it writes until the log partition is full... The load goes
 > to the top... the last message is something like this:
 > couldn't allocate 30 bytes... 
 
 > Is this still a problem with the latest Apache? 
 
 Yes the same problem still here with:
 Server version: Apache/1.3.26 (Unix)
 FreeBSD 4.5-STABLE #0

From: Bruce Campbell <bruce@engmail.uwaterloo.ca>
To: freebsd-gnats-submit@FreeBSD.org, vrg@cmt.hu
Cc:  
Subject: Re: ports/30870: httpd in free(): warning: recursive call
Date: Thu, 12 Dec 2002 11:05:55 -0500

 On:
 
 FreeBSD level.uwaterloo.ca 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Wed Aug 14 
 21:23:26 GMT 2002     
 murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386
 
 Running:
 
 Apache/1.3.27 (Unix) PHP/4.2.3 mod_ssl/2.8.11 OpenSSL/0.9.6e
 
 and Horde/IMP with mysql-3.23.52
 
 I have recently seen:
 
   httpd fills up /var/log/httpd-error.log with:
 
   httpd in free(): warning: recursive call
   httpd in free(): warning: recursive call
   httpd in free(): warning: recursive call
   httpd in free(): warning: recursive call
   httpd in free(): warning: recursive call
 
 and essentially dies.  I did not save much of the error log
 that time.  More recently:
 
 [Thu Dec 12 00:04:26 2002] [notice] child pid 8946 exit signal Segmentation 
 fault (11)
 [Thu Dec 12 00:04:31 2002] [notice] child pid 15690 exit signal Segmentation 
 fault (11)
 [Thu Dec 12 00:04:37 2002] [notice] child pid 1714 exit signal Segmentation 
 fault (11)
 httpd in free(): warning: chunk is already free
 
 and:
 
 [Thu Dec 12 04:15:06 2002] [error] System: Connection reset by peer (errno: 54)
 [Thu Dec 12 04:15:07 2002] [error] mod_ssl: SSL handshake interrupted by system
 [Hint: Stop button pressed in browser?!] (System error follows)
 [Thu Dec 12 04:15:07 2002] [error] System: Broken pipe (errno: 32)
 [Thu Dec 12 04:15:07 2002] [error] mod_ssl: SSL handshake interrupted by system
 
 and an attempt to restart apache yields:
 
 httpd in free(): warning: chunk is already free
 httpd in free(): warning: chunk is already free
 httpd in free(): warning: page is already free
 httpd in free(): warning: chunk is already free
 httpd in free(): warning: chunk is already free
 httpd in free(): warning: page is already free
 
 a few thousand times, plus:
 
 [Thu Dec 12 05:00:02 2002] [warn] child process 9026 still did not exit, sending
  a SIGTERM
 Processing config directory: /usr/local/etc/horde
  Processing config file: /usr/local/etc/horde/httpd.conf.horde
  Processing config file: /usr/local/etc/horde/httpd.conf.imp
  Processing config file: /usr/local/etc/horde/httpd.conf.turba
 [Thu Dec 12 05:00:06 2002] [crit] (48)Address already in use: make_sock: could n
 ot bind to port 443
 [Thu Dec 12 05:00:07 2002] [error] child process 9026 still did not exit, sendin
 g a SIGKILL
 [Thu Dec 12 05:00:07 2002] [notice] caught SIGTERM, shutting down
 Processing config directory: /usr/local/etc/horde
  Processing config file: /usr/local/etc/horde/httpd.conf.horde
  Processing config file: /usr/local/etc/horde/httpd.conf.imp
  Processing config file: /usr/local/etc/horde/httpd.conf.turba
 
 (but it didn't actually start up)
 
 and mysql daemon load goes to the top, and system became unuseable.
 
 A google search yields many references to the "httpd in free"
 error, but I don't know of a solution, or whether the problem
 is freebsd, mysql, apache, etc.
 
 -- 
 Bruce Campbell
 Engineering Computing
 CPH-2374B
 University of Waterloo
 (519)888-4567 ext 5889
 
 ----------------------------------------
 This mail sent through www.mywaterloo.ca
State-Changed-From-To: feedback->open 
State-Changed-By: arved 
State-Changed-When: Mon May 19 13:00:58 PDT 2003 
State-Changed-Why:  
new followup 

http://www.freebsd.org/cgi/query-pr.cgi?pr=30870 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Nov 2 14:07:28 PST 2003 
State-Changed-Why:  
Maintainer reports that this is already fixed in the 
apache-ssl release. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=30870 

From: Michael Ranner <mranner@inode.at>
To: freebsd-gnats-submit@FreeBSD.org, vrg@cmt.hu, dinoex@FreeBSD.org
Cc:  
Subject: Re: ports/30870: www/apache13-ssl: httpd in free(): warning: recursive call
Date: Tue, 13 Jan 2004 00:22:47 +0100

 httpd in free(): warning: recursive call still occurs with apache13-modssl 
 1.3.29+2.8.16, so I think this problem is not resolved.
 
 Regards,
 
 -- 
 /\/\ichael Ranner
 
 mranner@inode.at - mranner@jawa.at - mranner@bugat.at
 -----------------------------------------------------
    BSD Usergroup Austria - http://www.bugat.at/
 
 -----BEGIN GEEK CODE BLOCK-----
 GIT/CS/AT dx(-) s+:(++:) a- C++ UBLVS++++$ P++>+++$ L-(+)$ E---
 W+++$ N+(++) o-- K- w--()$ O-(--) M@ V-(--) PS+>++ PE(-) Y+ PGP(-)
 t+ 5+ X+++(++++) R* tv++ b+(++) DI++ D-(--) G- e h--(*) r++ y?
 ------END GEEK CODE BLOCK------
 
>Unformatted:
 recursive call
