GNOME Bugzilla – Bug 603157
GI_TYPE_TAG_VOID != ffi_type_void
Last modified: 2015-02-07 16:56:14 UTC
Created attachment 148602 [details] [review] Patch for this bug IN girepository/girffi.c
The following fix has been pushed: 28cccba GI_TYPE_TAG_VOID != ffi_type_void
Created attachment 148896 [details] [review] GI_TYPE_TAG_VOID != ffi_type_void
This pathc is incorrect; callers need to look at is_pointer to differentiate between void and void *. Basically you need to always do GITypeInfo -> ffi_type, not GITypeTag -> ffi_type.
See also https://bugzilla.gnome.org/show_bug.cgi?id=604074 which may need the same fix
<walters> danw: ok, i have a fix for your void problem; what was the context for it again? like what was crashing? tests/invoke/invoke, on x86_64: Program received signal SIGSEGV, Segmentation fault. ffi_call_unix64 () at src/x86/unix64.S:145 145 movq %rax, (%rdi) (gdb) where
+ Trace 219530
*** Bug 604303 has been marked as a duplicate of this bug. ***
Any ideas on how to fix this? Or should I just revert the commit?
Fixed now by second patch in https://bugzilla.gnome.org/show_bug.cgi?id=604074
I reverted this patch, let's continue to discuss the issue in bug 604074
This is fixed now.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]