From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Abhijeet More Newsgroups: gmane.lisp.guile.user Subject: Re: Possible Memory Leak with stream-for-each Date: Sat, 31 Jul 2010 16:16:53 -0400 Message-ID: References: <87iq44yi1q.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1280607425 18736 80.91.229.12 (31 Jul 2010 20:17:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Jul 2010 20:17:05 +0000 (UTC) Cc: =?ISO-8859-1?Q?Ludovic_Court=E8s?= , guile-user@gnu.org, Tibi Turbureanu To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jul 31 22:17:03 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OfIUQ-0004ks-KL for guile-user@m.gmane.org; Sat, 31 Jul 2010 22:17:02 +0200 Original-Received: from localhost ([127.0.0.1]:46426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfIUP-0003Tt-HK for guile-user@m.gmane.org; Sat, 31 Jul 2010 16:17:01 -0400 Original-Received: from [140.186.70.92] (port=33118 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfIUK-0003Sp-52 for guile-user@gnu.org; Sat, 31 Jul 2010 16:16:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OfIUI-0003ZT-MM for guile-user@gnu.org; Sat, 31 Jul 2010 16:16:56 -0400 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:43648) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfIUI-0003ZB-K9; Sat, 31 Jul 2010 16:16:54 -0400 Original-Received: by ywg8 with SMTP id 8so1251370ywg.0 for ; Sat, 31 Jul 2010 13:16:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=5cauTJhUI7vs1BHJJL+Q6uCNb4ukODRRtBTtWLp3+1M=; b=QdN79RHnRXflBpjRNi4Njamu77d+7yvPgy9x+wqVPfE+TsLUXdjmrOkZXYL1MtPtQf +7cVhvb7PMggyeiA/+DofqldYt9OqCYFabN9iLSICtpFNlQqm62vVoPi7okG2bIDOk6k eMDoeiISECh5zuzNQ+9l8QohjB38oHpYYZq2w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=cYuI0bc2I+NaD1QIx6oC74bSntSWR6woDzpgMvtHGcTahEBWYLUiqqPQDqioKbbEBh Uk/TQVtvNMiQdBim3TFyAQXzmXywww2UYhLFdRgh9gjuf9xlsS3qJqLk6GYLQMlU7sMS +VBjcDDxVVMruKn19eQbz2BzF/zj6GjkVp1jU= Original-Received: by 10.150.7.13 with SMTP id 13mr4922308ybg.411.1280607413683; Sat, 31 Jul 2010 13:16:53 -0700 (PDT) Original-Received: by 10.151.49.4 with HTTP; Sat, 31 Jul 2010 13:16:53 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8043 Archived-At: On Sat, Jul 31, 2010 at 7:48 AM, Andy Wingo wrote: [snip] > To really track this down we need a heap profiler. To make a heap > profiler, we need to hack libgc. libgc has some of the things we need > already, but some are only present in debug builds, which is > ridiculous -- one should always have the ability to profile the heap. We > need to figure out which value is being misidentified as a pointer to a > heap-allocated stream-pair. > > That is my analysis anyway. The next step is to be able to expose the > back-pointer graph from libgc, and write analysis tools to figure out > which non-stream objects point to a stream. [snip] Andy, Thanks! That's a great answer! I'll see what I can do with these guidelines. Abhijeet