[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Core dump when throwing an exception from a resumed partial continua
From: |
Andy Wingo |
Subject: |
Re: Core dump when throwing an exception from a resumed partial continuation |
Date: |
Thu, 21 Mar 2013 16:34:40 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
On Thu 21 Mar 2013 14:53, Andrew Gaylard <address@hidden> 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/