From: Neil Jerram <neil@ossau.uklinux.net>
Cc: guile-gtk-general@gnu.org, Guile Development <guile-devel@gnu.org>
Subject: Re: scheme closures: crash during garbage collection
Date: Fri, 09 Jun 2006 20:54:15 +0100 [thread overview]
Message-ID: <87odx2ds0o.fsf@ossau.uklinux.net> (raw)
In-Reply-To: <64e2f6fe0606081528m4e5f9979yff9b8294ecedf6d2@mail.gmail.com> (gregory benison's message of "Thu, 8 Jun 2006 15:28:27 -0700")
[added crosspost to guile-devel]
"gregory benison" <gbenison@gmail.com> writes:
> 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.)
That said, your proposed solution would be a good short term
workaround, until we can fix this in the Guile code.
Can people more familiar with the GC code comment on whether this fix
is feasible?
Regards,
Neil
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
next parent reply other threads:[~2006-06-09 19:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <64e2f6fe0606081528m4e5f9979yff9b8294ecedf6d2@mail.gmail.com>
2006-06-09 19:54 ` Neil Jerram [this message]
2006-06-09 21:54 ` scheme closures: crash during garbage collection Han-Wen Nienhuys
2006-06-10 9:40 ` Marius Vollmer
2006-06-12 22:34 ` Neil Jerram
2006-06-12 23:33 ` Han-Wen Nienhuys
2006-06-12 23:45 ` Neil Jerram
2006-07-08 15:06 ` Marius Vollmer
2006-07-12 21:48 ` Neil Jerram
2006-10-27 9:49 ` Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87odx2ds0o.fsf@ossau.uklinux.net \
--to=neil@ossau.uklinux.net \
--cc=guile-devel@gnu.org \
--cc=guile-gtk-general@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).