GNOME Bugzilla – Bug 504248
importing Qif terminates Gnucash
Last modified: 2018-06-29 21:56:46 UTC
I've loaded the new 2.2.2 stable binary for windows. Importing an qif file, which works under linux, terminates gnc. I go through the import druid to it's final window. Click on the "anwenden, use or execute" button and gnucash is away. There is no error message and in gnucash.trace is: * WARN <qof.engine> [guid_init()] only got 1921 bytes. The identifiers might not be very random. ################# this is the qif file ################ !Type:Cash D06/11/07 PLaden Mvegetaria T-5.00 Cx LImbiss:Pizza ^ D07/11/07 PChinaMann MNr14 T-3.80 Cx LImbiss:verschiedenes ^ D08/11/07 PNazz T-0.01 Cx LImbiss:verschiedenes ^ D08/11/07 Pim Bahnhof M2x T-1.98 Cx LImbiss:Baguette ^ D09/11/07 PNazz T-0.01 Cx LImbiss:verschiedenes ^ D09/11/07 Pim Bahnhof M2x T-1.98 Cx LImbiss:Baguette ^ D12/11/07 PNazz T-3.00 Cx LImbiss:verschiedenes ^ D13/11/07 PNazz T-3.00 Cx LImbiss:verschiedenes ^ D14/11/07 PLaden Mdiavolo T-5.00 Cx LImbiss:Pizza ^ D15/11/07 PChinaMann MNr? T-4.90 Cx LImbiss:verschiedenes ^ D16/11/07 PLaden Mvegetaria T-5.00 Cx LImbiss:Pizza ^ D19/11/07 PAldi Mlaut beleg T-4.18 Cx LAusg:diverse ^ D20/11/07 PNazz T-1.50 Cx LImbiss:verschiedenes ^ D21/11/07 P Laden M2x eis T-1.20 Cx LImbiss:verschiedenes ^ D21/11/07 PHuehnermann M0.5 Hnh + 1br T-3.10 Cx LImbiss:verschiedenes ^ D21/11/07 PLaden M1x T-1.50 Cx LImbiss:Bratwurst ^ D22/11/07 PNazz T-3.10 Cx LImbiss:verschiedenes ^ D22/11/07 PLaden T-1.50 Cx LImbiss:Bratwurst ^ D22/11/07 PFrisoer MTrockenschnitt T-6.00 Cx LAusg:diverse ^ D23/11/07 PChinaMann MNr 34 Curry T-5.80 Cx LImbiss:verschiedenes ^ D26/11/07 PNazz T-3.10 Cx LImbiss:verschiedenes ^ D26/11/07 Pim Bahnhof M2x T-1.98 Cx LImbiss:Baguette ^ D27/11/07 Pbei NK M America T-5.00 Cx LAusg:diverse ^ D28/11/07 PHuehnermann Mm br T-3.10 Cx LImbiss:verschiedenes ^ D28/11/07 P Laden M3x eis T-1.80 Cx LImbiss:verschiedenes ^ D29/11/07 PHuehnermann Mm br T-3.10 Cx LImbiss:verschiedenes ^ D29/11/07 PNazz T-2.20 Cx LImbiss:verschiedenes ^ D30/11/07 PHuehnermann T-2.90 Cx LImbiss:verschiedenes ^ D30/11/07 PLaden T-1.50 Cx LImbiss:Bratwurst ^ D30/11/07 PApotheke M CT T-5.00 Cx LAusg:diverse ^ D03/12/07 PChinaMann MNr. 51 T-3.50 Cx LImbiss:verschiedenes ^ D06/12/07 PNazz T-3.30 Cx LImbiss:verschiedenes ^ D11/12/07 PNazz T-3.00 Cx LImbiss:verschiedenes ^
Wow, I can actually reproduce this on Linux! I see the following output on the terminal: throw from within critical section. Here's the stack trace, showing that it's dying from within scheme: 0x00110402 in __kernel_vsyscall () (gdb) bt
+ Trace 182241
I cannot reproduce this here with GnuCash 2.2.2 and Windows XP. Can you please attach your qif file here, as the inline version may have mangled up encodings. It would also be interesting to see what you see if you change the subsystem type of $prefix\gnucash-bin.exe to console (see http://wiki.gnucash.org/wiki/Windows#Subsystems_and_exetype) and start gnucash from console. Thanks.
Andreas, as I said on IRC, I can reproduce this 100% on FC7 using the QIF provided in the initial report.
From comparing the backtrace to the code, I can pretty much figure the following chain of events: 1. The currency is selected in the druid and "Next" is clicked. 2. The button's callback function gets called (gnc_ui_qif_import_currency_next_cb) 3. It calls the Scheme procedure qif-import:update-stock-hash 4. qif-import:update-stock-hash calls qif-import:get-account-name 5. qif-import:get-account-name blows up using a regular expression If I'm right, then my patch for bug #360058 should fix this bug too.
Derek, can you still reproduce this? I'm convinced it's a duplicate of bug #360058.
*** This bug has been marked as a duplicate of 360058 ***
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=504248. Please update any external references or bookmarks.