guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scheme closures: crash during garbage collection


From: Han-Wen Nienhuys
Subject: Re: scheme closures: crash during garbage collection
Date: Fri, 9 Jun 2006 21:54:58 +0000 (UTC)

In article <address@hidden>,
Neil Jerram  <address@hidden> 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]