-Wno-deprecated-register with Clang
Mike Alexander
mta at umich.edu
Sat Jul 5 01:23:12 EDT 2014
--On July 2, 2014 at 3:39:07 PM -0400 Mike Alexander <mta at umich.edu>
wrote:
> I found my stupid mistake and GnuCash now builds ok with clang for me
> (a lot faster too). I do both an optimized and a debug build. The
> optimized build works ok, but the debug build crashes trying to
> produce a vendor listing report. It's an EXC_BAD_ACCESS exception
> and the top of the stack is
>
> 0 libgnc-qof.1.dylib 0x00000001069cc83d
> qof_book_get_collection + 61 (qofbook.cpp:510)
> 1 libgncmod-engine.dylib 0x000000010663a404 gncVendorLookup + 68
> (gncVendor.h:116)
> 2 libgncmod-engine.dylib 0x000000010663a2aa
> gncOwnerGetOwnerFromLot + 282 (gncOwner.c:630)
> 3 libgncmod-engine.dylib 0x000000010660b20e
> _wrap_gncOwnerGetOwnerFromLot + 126 (swig-engine.c:32929)
>
> I don't have time to look into this right now since real life is
> intruding. If no one else finds it, I'll either fix it or file a bug
> report later.
I just pushed a fix for this in bacc0b2. gncOwnerGetOwnerFromLot was
clobbering a stack variable by storing a 64 bit owner type in a 32 bit
variable.
Mike
More information about the gnucash-devel
mailing list