Re: error recovery

Espen S Johnsen <[email protected]> 12 Mar 2007 15:44:58 +0100
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>
Hazen Babcock <[email protected]> writes:

> 	Is there way to recover from an error that throws you into the slime  
> debugger? It seems that when this happens to me the only way to  
> recover is to restart my lisp process. Attempting to rerun a gtk  
> program is unsuccessful and I get the following backtrace:

If you mean recover form an error in foreign code, then the general
answer would be no. Sometimes you may actually be able to abort to the
toplevel, but the system could be left in an inconsistent state which
may cause mysterious subsequent crashes. The reason for this is the lack
of anything similar unwind-protect in C.

If an error occurs in a signal handler, you should choose one of the
custom restarts for signal handlers, and never abort to the toplevel
directly.

-- 
Espen

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV