From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dirk Herrmann Newsgroups: gmane.lisp.guile.devel Subject: Re: readlink, getcwd memory leaks Date: Sun, 25 Apr 2004 10:16:30 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <408B73DE.5080006@dirk-herrmanns-seiten.de> References: <877jx8hejj.fsf@zip.com.au> <87r7uddnnk.fsf@zagadka.ping.de> <87wu45gfbm.fsf@zip.com.au> <87pt9xc59k.fsf@zagadka.ping.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1082879827 24271 80.91.224.253 (25 Apr 2004 07:57:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Apr 2004 07:57:07 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Apr 25 09:56:57 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BHeVU-0000wk-00 for ; Sun, 25 Apr 2004 09:56:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHeUU-0005Ne-DY for guile-devel@m.gmane.org; Sun, 25 Apr 2004 03:55:54 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BHeU2-0005Lr-H3 for guile-devel@gnu.org; Sun, 25 Apr 2004 03:55:26 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BHeTW-0004v7-OM for guile-devel@gnu.org; Sun, 25 Apr 2004 03:55:25 -0400 Original-Received: from [212.227.126.185] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHeTW-0004uy-EN for guile-devel@gnu.org; Sun, 25 Apr 2004 03:54:54 -0400 Original-Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BHeRX-0004KF-00; Sun, 25 Apr 2004 09:52:51 +0200 Original-Received: from [80.131.34.196] (helo=dirk-herrmanns-seiten.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1BHeRX-0000Uv-00; Sun, 25 Apr 2004 09:52:51 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030821 X-Accept-Language: de, en Original-To: Marius Vollmer , Kevin Ryde In-Reply-To: <87pt9xc59k.fsf@zagadka.ping.de> X-Enigmail-Version: 0.76.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:494e3e4d1bf8dc247959c49e6f1f4215 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3649 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3649 Marius Vollmer wrote: > Kevin Ryde writes: > > > Marius Vollmer writes: > > > >> (There still will be a memory leak when scm_mem2string throws, > >> but that is very unlikely...) > > > > I was thinking about that after Dirk changed scm_gethostbyname. > > Looks like a lot of potential places like that, and no fun to try > > to tighten them up :-(. > > > Yes. Maybe we should just disallow out-of-memory throws. There is > no real point for them: Guile likely can't continue anyway. Sounds good to me. Let's make it official policy and modify scm_memory_error to abort. (scm_gethostname could then be simplified again...) Best regards, Dirk _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel