GNOME Bugzilla – Bug 408115
OFX import crashes during file import with glibc detected invalid pointer error
Last modified: 2018-06-29 21:26:44 UTC
Steps to reproduce: 1. open gnucash 2. file -> import -> import ofx/ofx... 3. select the ofx file in file dialog 4. select checking account in select account dialog 5. the import starts and hangs after a few seconds Stack trace: Does it every time on my system. I get the following output in the console: $ gnucash gnucash: [M] "Found Finance::Quote version ""1.11" (gnucash:19657): GLib-CRITICAL **: Invalid key name: Book Guid (gnucash:19657): GLib-CRITICAL **: Invalid key name: Window Count (gnucash:19657): GLib-CRITICAL **: Invalid key name: Page Count (gnucash:19657): GLib-CRITICAL **: Invalid key name: First Page (gnucash:19657): GLib-CRITICAL **: Invalid key name: Page Order (gnucash:19657): GLib-CRITICAL **: Invalid key name: Window Position (gnucash:19657): GLib-CRITICAL **: Invalid key name: Window Geometry (gnucash:19657): GLib-CRITICAL **: Invalid key name: Window Maximized (gnucash:19657): GLib-CRITICAL **: Invalid key name: Toolbar Visible (gnucash:19657): GLib-CRITICAL **: Invalid key name: Summarybar Visible (gnucash:19657): GLib-CRITICAL **: Invalid key name: Statusbar Visible (gnucash:19657): GLib-CRITICAL **: Invalid key name: Page Type (gnucash:19657): GLib-CRITICAL **: Invalid key name: Page Name (gnucash:19657): GLib-CRITICAL **: Invalid key name: Account Types (gnucash:19657): GLib-CRITICAL **: Invalid key name: Show Hidden (gnucash:19657): GLib-CRITICAL **: Invalid key name: Show Zero Total (gnucash:19657): GLib-CRITICAL **: Invalid key name: Selected Account (gnucash:19657): GLib-CRITICAL **: Invalid key name: Open Account 1 (gnucash:19657): GLib-CRITICAL **: Invalid key name: Open Account 2 (gnucash:19657): GLib-CRITICAL **: Invalid key name: Number of Open Accounts (gnucash:19657): GLib-CRITICAL **: Invalid key name: Page Type (gnucash:19657): GLib-CRITICAL **: Invalid key name: Page Name (gnucash:19657): GLib-CRITICAL **: Invalid key name: Register Type (gnucash:19657): GLib-CRITICAL **: Invalid key name: Account Name (gnucash:19657): GLib-CRITICAL **: Invalid key name: Register Style (gnucash:19657): GLib-CRITICAL **: Invalid key name: Double Line Mode LibOFX INFO: libofx_proc_file(): File format not specified, autodecting... (Above message occured on Line 18446744073709551615, Column 18446744073709551615) LibOFX INFO: libofx_proc_file(): Detected file format: OFX (Open Financial eXchange (OFX or QFX)) (Above message occured on Line 18446744073709551615, Column 18446744073709551615) LibOFX INFO: sanitize_proprietary_tags() (end tag or new tag) removed: <INTU.BID>832 (Above message occured on Line 18446744073709551615, Column 18446744073709551615) LibOFX INFO: sanitize_proprietary_tags() (end tag or new tag) removed: <INTU.USERID>43158 (Above message occured on Line 18446744073709551615, Column 18446744073709551615) LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate SIGNONMSGSRSV1 (Above message occured on Line 1, Column 6) LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate SONRS (Above message occured on Line 1, Column 22) LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate FI (Above message occured on Line 1, Column 149) LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate BANKMSGSRSV1 (Above message occured on Line 1, Column 201) LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate STMTTRNRS (Above message occured on Line 1, Column 215) WRITEME: ofx_proc_account() Fill in the account type, default name, currency, etc. *** glibc detected *** gnucash: free(): invalid pointer: 0x0000000000d50410 *** Everything above happens before #4 except the the glibc error which happens when the import hangs. It does seem to do part of the import before it fails. When the above error happens I must kill the app and no updates from the import are saved. Other information:
What is your version of GLib2? Please try to update it to the latest available. For the crasher to be fixed we would also need a Stack Trace (http://live.gnome.org/GettingTraces or http://wiki.gnucash.org/wiki/Stack_Trace).
My current glib is 2.12.7 and upgrading to 2.12.9 did seem to correct the glib error messages. It still hangs in the same place but no longer issues the glibc message when it hangs. Since it appears that there are version issues with at least one library I also had a look at my libofx version and I was running 0.8.0-r1 and have now upgraded to 0.8.3 which is the latest available. When I reopened gnucash it no longer had the ofx import as an option. So I had to rebuild gnucash after bumping the libofx version. After the build the import worked. It seems that the configure script should be checking for the correct version of all of the libraries so this should have been caught when I built gnucash. On the other hand I built these using gentoo ebuilds that are in the portage tree and the devs who created these ebuilds should have tested them to make sure that at least basic stuff was working. I will open a bug report with the gentoo folks to have the gnucash 2.x ebuilds check for the correct versions of these two libraries. Thanks for your help.
The glib warnings are a known issue, both to gnucash and to Gentoo; they are not fatal, and in fact do not impact correctness. libofx is looking for the "correct" version: >=libofx-0.7.0 is supported. Versions in that range might be buggy, but that that doesn't make them "incorrect" for the purposes of configuration checking. It sounds like this libofx hanging bug is solved by upgrading to the latest version, and the rest of the bug is just confusion; resolving as fixed. Incidentally, "glib" and "glibc" are different libraries.
"Incidentally, "glib" and "glibc" are different libraries." Yes I know this. None the less the glibc message did go away and I wanted my comments to be complete in case it might provide some useful info to help improve things. That is also the reason that I included the messages generated by glib in the original post. I knew these might not be related to the ofx import hang but I wanted to be complete just in case. In any case thanks for your assistance.
(In reply to comment #4) > "Incidentally, "glib" and "glibc" are different libraries." > > Yes I know this. None the less the glibc message did go away and I wanted my > comments to be complete in case it might provide some useful info to help I'm sorry. I didn't see the glibc message in your original inclusion. > improve things. That is also the reason that I included the messages generated > by glib in the original post. I knew these might not be related to the ofx > import hang but I wanted to be complete just in case. In any case thanks for Indeed; more and more complete detail is good, even if I can't read. :)
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=408115. Please update any external references or bookmarks.