From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: hanwen@byrd.xs4all.nl (Han-Wen Nienhuys) Newsgroups: gmane.lisp.guile.devel Subject: Re: scheme closures: crash during garbage collection Date: Fri, 9 Jun 2006 21:54:58 +0000 (UTC) Organization: LilyPond development Message-ID: References: <64e2f6fe0606081528m4e5f9979yff9b8294ecedf6d2@mail.gmail.com> <87odx2ds0o.fsf@ossau.uklinux.net> Reply-To: hanwen@lilypond.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1149890160 6316 80.91.229.2 (9 Jun 2006 21:56:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Jun 2006 21:56:00 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Jun 09 23:55:58 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FooxA-0001WA-Kc for guile-devel@m.gmane.org; Fri, 09 Jun 2006 23:55:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Foox9-0006wC-VX for guile-devel@m.gmane.org; Fri, 09 Jun 2006 17:55:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Foox7-0006v6-Fo for guile-devel@gnu.org; Fri, 09 Jun 2006 17:55:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Foox6-0006uM-3s for guile-devel@gnu.org; Fri, 09 Jun 2006 17:55:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Foox5-0006uF-Uh for guile-devel@gnu.org; Fri, 09 Jun 2006 17:55:35 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fop5D-0000aC-Uo for guile-devel@gnu.org; Fri, 09 Jun 2006 18:04:00 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Foowj-0001T9-FR for guile-devel@gnu.org; Fri, 09 Jun 2006 23:55:14 +0200 Original-Received: from muurbloem.xs4all.nl ([213.84.26.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jun 2006 23:55:13 +0200 Original-Received: from hanwen by muurbloem.xs4all.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jun 2006 23:55:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: guile-devel@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: muurbloem.xs4all.nl X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: hanwen@byrd.xs4all.nl (Han-Wen Nienhuys) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5972 Archived-At: In article <87odx2ds0o.fsf@ossau.uklinux.net>, Neil Jerram wrote: >> guile-gnome (up to v. 2.7.98, most recent as of this writing) can >> call scm_gc_unprotect_object() during a scheme garbage collector >> sweep, which is a fatal error in guile-1.8. In earlier versions >> of guile, it is not a fatal error (but still, I think you're not >> supposed to do it.) > >Many thanks for this great analysis. > >It seems to me, though, that the same kind of situation, leading to >wanting to call scm_gc_unprotect_object during GC, is likely to arise >in any sufficiently complex application, and hence that we should >support this within Guile itself. > >(I'm not personally familiar with the GC code, but it may be that the >new restriction in 1.8 against doing this was not strongly intended, >but more of a shortcut that was then forgotten.) > >Can people more familiar with the GC code comment on whether this fix >is feasible? No, MV thinks it's a bad idea, and I agree with him. See http://thread.gmane.org/gmane.lisp.guile.devel/4117/focus=4160 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel