Re: [Pyobjc-dev] FFI problems
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@xs...> - 2003-03-07 21:19:30
|
On Friday, Mar 7, 2003, at 17:47 Europe/Amsterdam, bb...@ma... wrote: > On Friday, Mar 7, 2003, at 03:20 US/Eastern, Ronald Oussoren wrote: >> assert(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 0, >> &ffi_type_sint, cl_arg_types) == FFI_OK); > > Changing the ffi_type_sint to ffi_type_double makes the program "work" > in that the right value is printed. However, it still crashes at exit > without any kind of a usable backtrace. Smells like a stack muncher. It seems to be a bug in the snapshot of libffi that we're using. I've copied the version of darwin_closure.S from the GCC CVS to our tree, and this solves my problems. I had to disable the .data section from the assembly file, libffi won't build with it. Struct returns still don't work, but that might be unrelated. Ronald |