Bus error in 9.9.2 - unless crapping out

Notices and updates
Locked
itistoday
Posts: 429
Joined: Sun Dec 02, 2007 5:10 pm
Contact:

Bus error in 9.9.2 - unless crapping out

Post by itistoday »

I'm running newlisp like this:

Code: Select all

newlisp -w . -d 8080 -http
Visiting localhost:8080 and getting this error on the command line:

Code: Select all

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

Code: Select all

#!/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:

Code: Select all

; 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:

Code: Select all

; 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.

Locked