On May 11, 2005, at 3:15 PM, Christophe Rhodes wrote:
I would be very interested in success/failure reports for this,
because at least for me, it would appear that the presence of --core
on the sbcl command line causes the DEFINE-ALIEN-ROUTINE to signal an
EXC_BAD_ACCESS (or SIGBUS, to us Unix types).
raffaelc$ sbcl --core /usr/lib/sbcl/sbcl.core
This is SBCL 0.9.0, an implementation of ANSI Common Lisp.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* (load-shared-object "frob.so")
debugger invoked on a SIMPLE-ERROR in thread 18150: bus error at #X90124960
Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT] Exit debugger, returning to top level.
It doesn't even take the (define-alien-routine frob int) to do it - just loading the .so does it. I have no idea why, though I can confirm your results on a dual G5 2.0GHz under 10.4.x.