Lisp HUG Maillist Archive

Problem with Saved Image

LispWorks (32-bit) v6.0.1 on Linux (Fedora 14, x86_64)

I use the following file (lw-patches.lisp) to create an image with all
of the patches preloaded:

----------------------------------------------------------
;;; -*- Mode: LISP -*-

(in-package :CL-USER)

;; Run this from a command shell with the following command:
;;    lispworks-???? -build lw-patches

;; load all patches
(load-all-patches)

;; save to a new image
(hcl:save-image
 (format nil "lw-~A" (substitute #\- #\. (lisp-implementation-version)))
 ;; :gc			t
 ;; :type		:user
 ;; :normal-gc		t
 ;; :restart-function	nil
 :console		:default
 :environment		:default
 :remarks		(format nil "LW ~A" (lisp-implementation-version))
 :clean-down		t
 )

(quit)
-----------------------------------------------------------

It seems to work fine.  However, if I build the image today, it will
work fine today and maybe tomorrow, but after that, when I try to run it
I get:

    Reading LispWorks file lw-6-0-1: failed to find trailer, error -101

Has anyone else seen something like this?  Am I building the file wrong?

Craig



Re: Problem with Saved Image

On 23/06/2011 15:37, Craig Lanning wrote:
> LispWorks (32-bit) v6.0.1 on Linux (Fedora 14, x86_64)
>
> I use the following file (lw-patches.lisp) to create an image with all
> of the patches preloaded:
>
> ----------------------------------------------------------
> ;;; -*- Mode: LISP -*-
>
> (in-package :CL-USER)
>
> ;; Run this from a command shell with the following command:
> ;;    lispworks-???? -build lw-patches
>
> ;; load all patches
> (load-all-patches)
>
> ;; save to a new image
> (hcl:save-image
>   (format nil "lw-~A" (substitute #\- #\. (lisp-implementation-version)))
>   ;; :gc			t
>   ;; :type		:user
>   ;; :normal-gc		t
>   ;; :restart-function	nil
>   :console		:default
>   :environment		:default
>   :remarks		(format nil "LW ~A" (lisp-implementation-version))
>   :clean-down		t
>   )
>
> (quit)
> -----------------------------------------------------------
>
> It seems to work fine.  However, if I build the image today, it will
> work fine today and maybe tomorrow, but after that, when I try to run it
> I get:
>
>      Reading LispWorks file lw-6-0-1: failed to find trailer, error -101
>
> Has anyone else seen something like this?  Am I building the file wrong?
>
> Craig
>
>
>
This works fine for me, meaning it never did not want to run. But I 
hardly use it.

make-lw-console.lisp:

(in-package "CL-USER")
(load-all-patches)
(save-image "~/lw-console"
             :console t
             :multiprocessing t
             :environment nil)

command line:

lispworks-6-0-0-x86-win32.exe -build make-lw-console.lisp

Jan


Re: Problem with Saved Image

Unable to parse email body. Email id is 11091

Re: Problem with Saved Image

On Thu, 2011-06-23 at 15:14 +0100, Dave Fox wrote:
> 
>  > LispWorks (32-bit) v6.0.1 on Linux (Fedora 14, x86_64)
>  > 
>  > I use the following file (lw-patches.lisp) to create an image with all
>  > of the patches preloaded:
>  > 
>  > ----------------------------------------------------------
>  > ;;; -*- Mode: LISP -*-
>  > 
>  > (in-package :CL-USER)
>  > 
>  > ;; Run this from a command shell with the following command:
>  > ;;    lispworks-???? -build lw-patches
>  > 
>  > ;; load all patches
>  > (load-all-patches)
>  > 
>  > ;; save to a new image
>  > (hcl:save-image
>  >  (format nil "lw-~A" (substitute #\- #\. (lisp-implementation-version)))
>  >  ;; :gc			t
>  >  ;; :type		:user
>  >  ;; :normal-gc		t
>  >  ;; :restart-function	nil
>  >  :console		:default
>  >  :environment		:default
>  >  :remarks		(format nil "LW ~A" (lisp-implementation-version))
>  >  :clean-down		t
>  >  )
>  > 
>  > (quit)
>  > -----------------------------------------------------------
>  > 
>  > It seems to work fine.  However, if I build the image today, it will
>  > work fine today and maybe tomorrow, but after that, when I try to run it
>  > I get:
>  > 
>  >     Reading LispWorks file lw-6-0-1: failed to find trailer, error -101
>  > 
>  > Has anyone else seen something like this?  Am I building the file wrong?
> 
> I don't recall seeing that error message before, but the general
> circumstances sound familiar:
> 
> http://www.lispworks.com/kb/a15fc2ea99b4f8f5802571fe0057705a.html
> 
> 
> The LispWorks for Linux rpm installer now writes a line into
> /etc/prelink.conf that prevents corruption of the LispWorks image
> supplied. If prelink is the cause of your problem, then adding a line
> 
> -b lw-*
> 
> that matches your saved image names should prevent the problem
> recurring after you next save an image.


That did the trick.  It's now been two days and I haven't had to rebuild
my image.

Thanks.

Craig




Updated at: 2020-12-10 08:37 UTC