Bus error in 9.9.2 - unless crapping out

Started by itistoday, September 20, 2008, 11:17:52 AM

Previous topic - Next topic

itistoday

I'm running newlisp like this:


newlisp -w . -d 8080 -http

Visiting localhost:8080 and getting this error on the command line:


sh: line 1:  8513 Bus error               ./index.cgi > /tmp/nl497f6f194365e8400d

line 1 contains:


#!/usr/bin/newlisp

I was able to find out what the problem was.  In upgrading my templating system to use 9.9.2 stuff, I had changed this code:


; file util.lsp (included several times)

(define (load-once:load-once)
(doargs (file)
(if-not (find file load-once:_loaded)
(begin
(push file load-once:_loaded)
(load file)
)
)
)
)

(context MAIN)


To this code:


; file util.lsp (included several times)

(define (load-once:load-once)
(doargs (file)
(unless (find file load-once:_loaded)
(push file load-once:_loaded)
(load file)
)
)
)

(context MAIN)
Get your Objective newLISP groove on.