From owner-freebsd-hackers Sat Mar 2 5:30: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from voi.aagh.net (pc1-hart4-0-cust168.mid.cable.ntl.com [62.254.84.168]) by hub.freebsd.org (Postfix) with ESMTP id EE1F337B402 for ; Sat, 2 Mar 2002 05:30:03 -0800 (PST) Received: from freaky by voi.aagh.net with local (Exim 3.35 #1) id 16h9aF-0002d5-00 for freebsd-hackers@freebsd.org; Sat, 02 Mar 2002 13:29:55 +0000 Date: Sat, 2 Mar 2002 13:29:55 +0000 From: Thomas Hurst To: freebsd-hackers@freebsd.org Subject: Re: httpd in malloc(): warning: recursive call (FreeBSD error??) Message-ID: <20020302132955.GA9708@voi.aagh.net> Mail-Followup-To: freebsd-hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.3.27i Organization: Not much. X-Operating-System: FreeBSD/4.5-PRERELEASE (i386) X-Uptime: 1:19PM up 71 days, 22:04, 4 users, load averages: 2.07, 2.03, 2.01 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Max David Krüper (m.krueper@linuxwork.de) wrote: > I have a FreeBSD 4.5-STABLE box running, when i start apache first > all works fine, but after like 3 minutes in the logfile i see this > messages: > > httpd in free(): warning: chunk is already free > httpd in free(): warning: recursive call > httpd in malloc(): warning: recursive call > httpd in malloc(): warning: recursive call > [Fri Mar 1 19:49:16 2002] [alert] [client 195.93.64.xx] > /usr/local/httpd/htdocs/qm-dev/.htaccess: RewriteRule: cannot compile > regular expression 'F([0-9]+)(.htm(l)?)?' I've had lots of fun nuking Apache using mod_rewrite. It's can be fragile at times; the solution is usually to rewrite the regex. It's also a good idea to put it in httpd.conf on a production server, since .htaccess support is conciderably slower and more of a hack then anything. Also keep in mind with php embedded in the server, bugs in that and it's extensions (some of which are dodgy at the best of times, like XSLT) can show up as Apache errors. Try disabling it and seeing if it still happens (after mod_rewrite :) -- Thomas 'Freaky' Hurst - freaky@aagh.net - http://www.aagh.net/ - No problem is so formidable that you can't just walk away from it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message