From: Andy Wingo <wingo@pobox.com>
To: Andrew Gaylard <ag@computer.org>
Cc: guile-devel@gnu.org
Subject: Re: Core dump when throwing an exception from a resumed partial continuation
Date: Thu, 21 Mar 2013 16:34:40 +0100 [thread overview]
Message-ID: <87hak4vka7.fsf@pobox.com> (raw)
In-Reply-To: <514B10C4.2030800@computer.org> (Andrew Gaylard's message of "Thu, 21 Mar 2013 15:53:08 +0200")
On Thu 21 Mar 2013 14:53, Andrew Gaylard <ag@computer.org> writes:
> (catch #t
> (λ ()
> (throw 'oops)) ; should not crash the vm
> (λ ()
> (display "Success!")(newline))) ; never reached
>
> the VM still cores; "Success" is never shown. However, you've probably
> spotted my mistake: the handler should be (λ (key . args) ... ).
The core dump is another bug. but fixing the handler is the key thing:
> (catch #t
> (λ ()
> (throw 'oops)) ; should not crash the vm
> (λ (key . args)
> (display "Success!")(newline))) ; works!
>
> ...solves the problem, and the VM doesn't core any more.
Yep
Happy hacking :)
A
--
http://wingolog.org/
prev parent reply other threads:[~2013-03-21 15:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-15 21:01 Core dump when throwing an exception from a resumed partial continuation Brent Pinkney
2013-03-15 21:30 ` Andy Wingo
2013-03-19 8:11 ` Andrew Gaylard
2013-03-21 9:43 ` Andy Wingo
2013-03-21 13:53 ` Andrew Gaylard
2013-03-21 15:34 ` Andy Wingo [this message]
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=87hak4vka7.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=ag@computer.org \
--cc=guile-devel@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).