Python Module and libdbi-0.9.0

John Ralls jralls at ceridwen.us
Mon May 26 16:49:41 EDT 2014


I finally was able to replicate the libdbi 0.9.0 reported in https://bugzilla.gnome.org/show_bug.cgi?id=728717.

The problem is that the python module, or more accurately the python script init.py, is registering the dbi backend a second time. That causes qofbackend to try to finalize it twice, leading to an attempt inside libdbi to access already-freed memory.

Now that was in part because the libdbi-0.9.0 used an unprotected static dbi_inst. I’ve fixed that.

But it brings up another question: What good is the Python module? This isn’t the python bindings that allow one to use the GnuCash API from a Python program, this is something that tries to use those bindings from inside of GnuCash. The former live in src/optional/python-bindings. This lives in src/python.

Regards,
John Ralls




More information about the gnucash-devel mailing list