[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #29574] VM stack overflows aren't properly handled [1.9.10]
From: |
Andy Wingo |
Subject: |
Re: [bug #29574] VM stack overflows aren't properly handled [1.9.10] |
Date: |
Fri, 21 May 2010 13:27:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) |
Hi Ludo,
> I've come up with the following hack: a small VM stack space is reserved and
> made available only upon stack overflow, so that `throw' can run to
> completion. (See attached patch.)
The patch didn't come through the mail, and I'm in an internetless cafe,
so I can't see it now -- but it seems a somewhat sane hack.
Did you see Dybvig's paper about underflow and overflow handlers? That
does solve this problem in a more robust way, including allowing for
stack extension instead of thrown exceptions. Of course that's probably
a larger project.
Andy
--
http://wingolog.org/
[bug #29574] VM stack overflows aren't properly handled [1.9.10], Ludovic Courtès, 2010/05/26