[cffi-devel] Fwd: Bus error ... ?! Help, please ... Additional info

Mark Hoemmen mark.hoemmen at gmail.com
Fri May 8 18:30:36 UTC 2009


Frank Goenninger wrote:
> In addition to the GDB session below I tried some more analysis on the  
> Lisp side:
> 
> CL-USER> (foreign-symbol-pointer "glGetError")
> 2510410464
> CL-USER> (foreign-funcall-pointer (foreign-symbol-pointer  
> "glGetError") () :void :unsigned-int)
> Received signal number 10 (Bus error)

Wouldn't a "get" function either take or return a pointer?  Perhaps
you're passing data of the wrong size that's getting interpreted as a
pointer and then clobbered.

mfh




More information about the cffi-devel mailing list