On 16 February 2011 07:49, Ariel Badichi <vermilionrush@...> wrote:
> I have a Lisp script to load certain systems and then dump a core. I
> tried using the --script option (in a shebang line) to execute it,
> assuming that it is indeed applicable to my use case. Is it?
> If so, I have two issues when using the dumped core:
> (i) It behaves as if it's in a --script environment. For example, the
> debugger is disabled.
This is expected.
Calling ENABLE-DEBUGGER explicitly should fix this.
> (ii) It deadlocks, for example when doing (in-package :foo).
> I traced this to the recent WITH-COMPILATION-UNIT commit.
> With this commit, the core is dumped with the world lock held.
Oh, that's a nasty regression. Fix coming to CVS soon.
> The manpage discusses using a custom core with --script, but not using
> it while dumping a core.
Right -- ENABLE-DEBUGGER should really be about the only gotcha that I
can think of. I'll see if I can add something about that to the