From: Daniel Barlow <dan@te...> - 2002-05-10 05:49:56
Arguably you'd have to be not quite thinking to write this code, but
it probably shouldn't result in a call to BUG even so -
* (defstruct foo bar baz)
* (compile nil (lambda (x) (or x (foo-baz x))))
; in: LAMBDA NIL
; (FOO-BAZ X)
; caught WARNING:
; Result is a NULL, not a FOO.
debugger invoked on condition of type SB-INT:BUG:
full call to SB-KERNEL:%INSTANCE-REF
This is probably a bug in SBCL itself. (Alternatively, SBCL might have been
corrupted by bad user code, e.g. by an undefined Lisp operation like
(FMAKUNBOUND 'COMPILE), or by stray pointers from alien code or from unsafe
Lisp code; or there might be a bug in the OS or hardware that SBCL is running
on.) If it seems to be a bug in SBCL itself, the maintainers would like to
know about it. Bug reports are welcome on the SBCL mailing lists, which you
can find at <http://sbcl.sourceforge.net/>.
(No, it wasn't my code. I ran across this while porting Common Lisp Music)
http://ww.telent.net/cliki/ - Link farm for free CL-on-Unix resources
From: William Harold Newman <william.newman@ai...> - 2002-05-10 14:23:08
On Fri, May 10, 2002 at 06:49:50AM +0100, Daniel Barlow wrote:
> Arguably you'd have to be not quite thinking to write this code, but
> it probably shouldn't result in a call to BUG even so -
> * (defstruct foo bar baz)
> * (compile nil (lambda (x) (or x (foo-baz x))))
> debugger invoked on condition of type SB-INT:BUG:
> full call to SB-KERNEL:%INSTANCE-REF
Thank you, this is now bug 168.
William Harold Newman <william.newman@...>
"Palantir great. Better than cable."
PGP key fingerprint 85 CE 1C BA 79 8D 51 8C B9 25 FB EE E0 C3 E5 7C