AW: [cffi-devel] Crashes on X86-64 CLISP

Hoehle, Joerg-Cyril Joerg-Cyril.Hoehle at t-systems.com
Fri Feb 3 14:15:28 UTC 2006


James Bielman wrote:
>> What if you run the stepper in interpreted mode?
>I'm not entirely sure how to try this---I'll read the documentation
>tomorrow and give this a shot.
(asdf:oos 'asdf:load-source-op :cffi)
(step (test-struct.5)) Or
(step (with-foreign-object...))

>> What if you call (ffi:memory-as *the-s-s-ch* ffi:uint8/char/...)
>> directly?
>That seems to work
Uhoh, then it's likely not the FFI.  Please investigate.


FWIW, in clisp you obtain the disassembly via
(sys::disassemble-closures (lambda () (declare (compile))
    (with-foreign-object (s 's5)
      (setf (foreign-slot-value s 's5 'a) 42)
      (foreign-slot-value s 's5 'a)))
 t)

Regards,
	Jorg Hohle.



More information about the cffi-devel mailing list