Thanks. This works.
It seems that the dumped image doesn't behave in standard way in more
ways.
Here's an error I get on the top level when I type an extra paren -
sbcl exists. No handler installed?
How to save an image and preserve the top level loop?
Roman
[roman@... PQ-sbcl]$ sbcl --core concepts.core --no-userinit
This is SBCL 1.0.12, an implementation of ANSI Common Lisp.More
information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.It
is mostly in the public domain; some portions are provided underBSD-
style licenses. See the CREDITS and COPYING files in thedistribution
for more information.
* (+ 1 2))
3* 0: (BACKTRACE 20 #<SYNONYM-STREAM :SYMBOL *TERMINAL-IO*
{10001EF5E1}>)1: ((LAMBDA (CONDITION HOOK)) #<SB-INT:SIMPLE-READER-
ERROR {100CB9FB61}> #<unavailable argument>)2: (INVOKE-DEBUGGER
#<SB-INT:SIMPLE-READER-ERROR {100CB9FB61}>)3: (INVOKE-DEBUGGER #<SB-
INT:SIMPLE-READER-ERROR {100CB9FB61}>)4: (ERROR SB-INT:SIMPLE-READER-
ERROR)5: (SB-INT:SIMPLE-READER-ERROR #<SYNONYM-STREAM :SYMBOL SB-
SYS:*STDIN* {10001EF551}> "unmatched close parenthesis")6: (READ-
PRESERVING-WHITESPACE #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDIN*
{10001EF551}> NIL (NIL) T)7: (READ-PRESERVING-WHITESPACE
#<SYNONYM-STREAM :SYMBOL SB-SYS:*STDIN* {10001EF551}> NIL
(NIL) NIL)8: (READ #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDIN*
{10001EF551}> NIL (NIL) NIL)9: (EXTENDED-REPL-READ-FORM-FUN
#<SYNONYM-STREAM :SYMBOL SB-SYS:*STDIN* {10001EF551}>
#<unavailable argument>)10: (SB-IMPL::REPL-FUN NIL)11: (SB-IMPL::REPL-
FUN NIL)12: ((LAMBDA ()))13: ((LAMBDA ()))14: (SB-IMPL::%WITH-REBOUND-
IO-SYNTAX #<CLOSURE (LAMBDA #) {100CB9E889}>)15: (SB-IMPL::TOPLEVEL-
REPL NIL)16: (SB-IMPL::TOPLEVEL-INIT)17: ((LABELS SB-IMPL::RESTART-
LISP))
Error: SB-INT:SIMPLE-READER-ERROR on #<SYNONYM-STREAM :SYMBOL SB-
SYS:*STDIN* {10001EF551}
>: unmatched close parenthesis
[roman@... PQ-sbcl]$
On Mar 27, 2008, at 4:12 AM, Nikodemus Siivola wrote:
> On Sun, Mar 23, 2008 at 1:13 AM, Roman Budzianowski
> <roman.j@...> wrote:
>
>> I am trying to figure out the magic that happens when I call sb-
>> ext:save-lisp-and-die.
>>
>> I just started using sbcl. In a virgin image call to:
>> (require :asdf)
>> succeeds.
>>
>> In a saved image, run through --core argument, it fails.
>
> You need to set SBCL_HOME in the environment, or put the new core in
> the same place as the old one. (SBCL_HOME defaults to the location of
> the core: since your new core is not in the same place as the contrib
> modules, SBCL doesn't find them.)
>
> Cheers,
>
> -- Nikodemus
|