After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 504248 - importing Qif terminates Gnucash
importing Qif terminates Gnucash
Status: RESOLVED DUPLICATE of bug 360058
Product: GnuCash
Classification: Other
Component: Import - QIF
2.2.x
Other All
: Normal normal
: ---
Assigned To: Charles Day
Derek Atkins
Depends on:
Blocks:
 
 
Reported: 2007-12-18 14:08 UTC by Thomas Kuehnel
Modified: 2018-06-29 21:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thomas Kuehnel 2007-12-18 14:08:55 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
^
Comment 1 Derek Atkins 2007-12-18 15:03:26 UTC
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
  • #0 __kernel_vsyscall
  • #1 waitpid
    from /lib/libpthread.so.0
  • #2 ??
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 __kernel_vsyscall
  • #5 raise
    from /lib/libc.so.6
  • #6 abort
    from /lib/libc.so.6
  • #7 scm_ithrow
    from /usr/lib/libguile.so.17
  • #8 scm_error_scm
    from /usr/lib/libguile.so.17
  • #9 scm_error
    from /usr/lib/libguile.so.17
  • #10 scm_misc_error
    from /usr/lib/libguile.so.17
  • #11 scm_to_locale_stringn
    from /usr/lib/libguile.so.17
  • #12 scm_to_locale_string
    from /usr/lib/libguile.so.17
  • #13 scm_regexp_exec
    from /usr/lib/libguile.so.17
  • #14 scm_gsubr_apply
    from /usr/lib/libguile.so.17
  • #15 scm_dapply
    from /usr/lib/libguile.so.17
  • #16 ??
    from /usr/lib/libguile.so.17
  • #17 ??
    from /usr/lib/libguile.so.17
  • #18 ??
    from /usr/lib/libguile.so.17
  • #19 scm_dapply
    from /usr/lib/libguile.so.17
  • #20 scm_apply
    from /usr/lib/libguile.so.17
  • #21 scm_call_3
    from /usr/lib/libguile.so.17
  • #22 scm_internal_hash_fold
    from /usr/lib/libguile.so.17
  • #23 scm_hash_fold
    from /usr/lib/libguile.so.17
  • #24 ??
    from /usr/lib/libguile.so.17
  • #25 ??
    from /usr/lib/libguile.so.17
  • #26 scm_dapply
    from /usr/lib/libguile.so.17
  • #27 scm_apply
    from /usr/lib/libguile.so.17
  • #28 scm_call_3
    from /usr/lib/libguile.so.17
  • #29 gnc_ui_qif_import_currency_next_cb
    at druid-qif-import.c line 1466
  • #30 _gnome_marshal_BOOLEAN__OBJECT
    from /usr/lib/libgnomeui-2.so.0
  • #31 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #32 ??
    from /lib/libgobject-2.0.so.0
  • #33 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #34 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #35 gnome_druid_page_next
    from /usr/lib/libgnomeui-2.so.0
  • #36 ??
    from /usr/lib/libgnomeui-2.so.0
  • #37 g_cclosure_marshal_VOID__VOID
    from /lib/libgobject-2.0.so.0
  • #38 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #39 ??
    from /lib/libgobject-2.0.so.0
  • #40 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #41 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #42 gtk_button_clicked
    from /usr/lib/libgtk-x11-2.0.so.0
  • #43 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #44 g_cclosure_marshal_VOID__VOID
    from /lib/libgobject-2.0.so.0
  • #45 ??
    from /lib/libgobject-2.0.so.0
  • #46 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #47 ??
    from /lib/libgobject-2.0.so.0
  • #48 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #49 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #50 gtk_button_released
    from /usr/lib/libgtk-x11-2.0.so.0
  • #51 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #52 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #53 ??
    from /lib/libgobject-2.0.so.0
  • #54 g_closure_invoke
    from /lib/libgobject-2.0.so.0
  • #55 ??
    from /lib/libgobject-2.0.so.0
  • #56 g_signal_emit_valist
    from /lib/libgobject-2.0.so.0
  • #57 g_signal_emit
    from /lib/libgobject-2.0.so.0
  • #58 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #59 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #60 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #61 ??
    from /usr/lib/libgdk-x11-2.0.so.0
  • #62 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #63 ??
    from /lib/libglib-2.0.so.0
  • #64 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #65 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #66 gnc_ui_start_event_loop
    at gnc-gnome-utils.c line 450
  • #67 inner_main
    at gnucash-bin.c line 489
  • #68 ??
    from /usr/lib/libguile.so.17
  • #69 ??
    from /usr/lib/libguile.so.17
  • #70 scm_c_catch
    from /usr/lib/libguile.so.17
  • #71 scm_i_with_continuation_barrier
    from /usr/lib/libguile.so.17
  • #72 scm_c_with_continuation_barrier
    from /usr/lib/libguile.so.17
  • #73 scm_i_with_guile_and_parent
    from /usr/lib/libguile.so.17
  • #74 scm_with_guile
    from /usr/lib/libguile.so.17
  • #75 scm_boot_guile
    from /usr/lib/libguile.so.17
  • #76 main
    at gnucash-bin.c line 623

Comment 2 Andreas Köhler 2007-12-18 23:00:51 UTC
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.
Comment 3 Derek Atkins 2007-12-19 02:48:34 UTC
Andreas, as I said on IRC, I can reproduce this 100% on FC7 using the QIF provided in the initial report.
Comment 4 Charles Day 2008-01-25 12:51:42 UTC
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.
Comment 5 Charles Day 2008-03-03 17:24:44 UTC
Derek, can you still reproduce this? I'm convinced it's a duplicate of bug #360058.
Comment 6 Charles Day 2008-03-27 23:52:40 UTC

*** This bug has been marked as a duplicate of 360058 ***
Comment 7 John Ralls 2018-06-29 21:56:46 UTC
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.