From owner-freebsd-ports@FreeBSD.ORG Sat Feb 11 00:31:12 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 185AB16A420 for ; Sat, 11 Feb 2006 00:31:12 +0000 (GMT) (envelope-from eighner@io.com) Received: from smtp.prismnet.com (smtp.prismnet.com [209.198.128.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 723C543D72 for ; Sat, 11 Feb 2006 00:31:08 +0000 (GMT) (envelope-from eighner@io.com) Received: from io.com (206-224-83-13-dialup.io.com [206.224.83.13]) by smtp.prismnet.com (8.13.4/8.13.4) with SMTP id k1B0V4TA050831 for ; Fri, 10 Feb 2006 18:31:04 -0600 (CST) (envelope-from eighner@io.com) Received: by io.com (nbSMTP-0.98) for uid 1001 for ; Fri, 10 Feb 2006 18:29:36 -0600 (CST) Date: Fri, 10 Feb 2006 18:29:34 -0600 (CST) From: Lars Eighner To: freebsd-ports Message-ID: <20060210182047.P78074@goodwill.io.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on smtp.prismnet.com X-Virus-Status: Clean X-Spam-Status: No, score=0.0 required=10.0 tests=none autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on smtp.prismnet.com Cc: Subject: Mystery memory leak message in PHP 5 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 00:31:12 -0000 I get this and don't begin to understand it: /usr/ports/lang/php5-cli/work/php-5.0.5/main/streams/streams.c(1209) : Freeing 0x083AC564 (1 bytes), script=/home/webmaster/allphp/main.php /usr/ports/lang/php5-cli/work/php-5.0.5/ext/standard/file.c(472) : Actual locati on (location was relayed) Last leak repeated 5 times === Total 6 memory leaks detected === Although php5-cli was built from ports, the port was cleaned long ago, so the work directory no longer exists, and I have no idea where to start looking for the problem: My script? PHP source? The port? The system? Output of my scripts appears to be correct both to my eye and to a sgml parser. What will happen if I keep running these scripts? Will I eventually run out of memory? Or is the memory recovered when the script quits? This is run from the command line (well actually by gmake) and doesn't run from a daemon, and the process does die a natural death when it is done. -- Lars Eighner eighner@io.com http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266