[cffi-devel] Fwd: Bus error ... ?! Help, please ... Additional info
Frank Goenninger
frgo at me.com
Fri May 8 18:33:44 UTC 2009
Am 08.05.2009 um 20:30 schrieb Mark Hoemmen:
> 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
Not really in this case. The function glGetError is defined as
GLenum glGetError(void);
So, no arguments passed. Just an unsigned int returned (that's what
GLenum is typedef'ed to).
Cheers
Frank
--
Frank Goenninger
Cell: +49 175 4321058
E-Mail: frgo at me.com
More information about the cffi-devel
mailing list