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 728050 - Crash on QIF import change date format
Crash on QIF import change date format
Status: RESOLVED INCOMPLETE
Product: GnuCash
Classification: Other
Component: Import - QIF
2.6.1
Other Linux
: Normal normal
: ---
Assigned To: gnucash-import-maint
gnucash-import-maint
Depends on:
Blocks:
 
 
Reported: 2014-04-11 17:27 UTC by Chris Bainbridge
Modified: 2018-06-29 23:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chris Bainbridge 2014-04-11 17:27:53 UTC
Start QIF import, at "Set a date format for this QIF file" select
'd-m-y'. Crash. The import works fine when the date format isn't changed (except obviously the month and date are the wrong way around), so there is nothing wrong with the QIF file. Debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744231

Backtrace:
In ice-9/boot-9.scm:
 157: 4 [catch #t #<catch-closure af2b20> ...]
In unknown file:
   ?: 3 [apply-smob/1 #<catch-closure af2b20>]
In qif-import/qif-file.scm:
 885: 2 [check-and-parse-field #<procedure 131c5a0 at ice-9/boot-9.scm:1301:4 (obj)> ...]
In qif-import/qif-parse.scm:
 404: 1 [qif-parse:check-date-format (4 11 2014) (d-m-y)]
In unknown file:
   ?: 0 [regexp-exec #<regexp b82180> (4 11 2014) #<undefined> #<undefined>]

ERROR: In procedure regexp-exec:
ERROR: In procedure regexp-exec: Wrong type argument in position 2 (expecting string): (4 11 2014)
Comment 1 Geert Janssens 2014-11-12 12:39:22 UTC
I am trying to reproduce this bug but no luck so far. I expect the crash will depend on the exact date format you have in your qif file.

Can you attach a small qif file I can use to reproduce this ? Thank you.
Comment 2 Geert Janssens 2015-02-08 19:03:57 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!
Comment 3 KKN 2015-11-03 18:01:55 UTC
Got this bug with Gnucash 2.6.9 using Android app version v2.0.0. 

Select qif file generated by android app -> Forward -> Start on next screen desktop app crashes with segmentation fault. 

When run under gdb desktop app did not crash, instead got below error on screen. 

-----------------------
Error Message: 
Line 1:File does not appear to be in QIF Format: *INR
Read aborted.
------------------------------
Checked qif file, First line is *INR
Not sure if its problem with android app or desktop app. 
Can provide if any additional info required as this is reproducible always.

----------------------------

gdb output: 

[New Thread 0x7fff79cd0700 (LWP 4787)]
[New Thread 0x7fff794cf700 (LWP 4788)]
[New Thread 0x7fff78cce700 (LWP 4789)]
[New Thread 0x7fff73fff700 (LWP 4790)]
[New Thread 0x7fff735f9700 (LWP 4791)]
[New Thread 0x7fff72df8700 (LWP 4792)]
* 23:14:39  INFO <gnc.gui> [gnc_plugin_page_report_setup] report-id: 8
* 23:14:39  INFO <gnc.gui> [gnc_plugin_page_report_setup] set needs save
* 23:14:39  INFO <gnc.gui> [gnc_plugin_page_register_create_widget] Loaded Sort order is BY_STANDARD
* 23:14:39  INFO <gnc.gui> [gnc_plugin_page_register_create_widget] Loaded Filter Status is 0x001f
[Thread 0x7fff735f9700 (LWP 4791) exited]
[New Thread 0x7fff735f9700 (LWP 4793)]
[New Thread 0x7fff5f98c700 (LWP 4794)]
[Thread 0x7fff5f98c700 (LWP 4794) exited]
[Thread 0x7fff72df8700 (LWP 4792) exited]
[New Thread 0x7fff72df8700 (LWP 4795)]
[Thread 0x7fff735f9700 (LWP 4793) exited]
[Thread 0x7fff72df8700 (LWP 4795) exited]

Program received signal SIGSEGV, Segmentation fault.
gnc_ui_qif_import_load_progress_start_cb (button=<optimized out>, user_data=0x32e3d70) at assistant-qif-import.c:1807
1807	assistant-qif-import.c: No such file or directory.
(gdb) bt
  • #0 gnc_ui_qif_import_load_progress_start_cb
    at assistant-qif-import.c line 1807
  • #1 ??
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #2 g_signal_emit_valist
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #3 g_signal_emit
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #4 ??
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #5 ??
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #6 g_signal_emit_valist
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #7 g_signal_emit
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #8 ??
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #9 ??
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #10 g_closure_invoke
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #11 ??
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #12 g_signal_emit_valist
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #13 g_signal_emit
    from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
  • #14 ??
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #15 gtk_propagate_event
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #16 gtk_main_do_event
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #17 ??
    from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
  • #18 g_main_context_dispatch
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  • #19 ??
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  • #20 g_main_loop_run
    from /lib/x86_64-linux-gnu/libglib-2.0.so.0
  • #21 gtk_main
    from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
  • #22 gnc_ui_start_event_loop
    at gnc-gnome-utils.c line 620
  • #23 inner_main
    at gnucash-bin.c line 621
  • #24 ??
    from /usr/lib/libguile-2.0.so.22
  • #25 ??
    from /usr/lib/libguile-2.0.so.22
  • #26 ??
    from /usr/lib/libguile-2.0.so.22
  • #27 scm_call_4
    from /usr/lib/libguile-2.0.so.22
  • #28 ??
    from /usr/lib/libguile-2.0.so.22
  • #29 scm_c_with_continuation_barrier
    from /usr/lib/libguile-2.0.so.22
  • #30 ??
    from /usr/lib/libguile-2.0.so.22
  • #31 GC_call_with_stack_base
    from /usr/lib/x86_64-linux-gnu/libgc.so.1
  • #32 scm_with_guile
    from /usr/lib/libguile-2.0.so.22
  • #33 scm_boot_guile
    from /usr/lib/libguile-2.0.so.22
  • #34 main
    at gnucash-bin.c line 776

Comment 4 John Ralls 2015-11-03 18:09:50 UTC
KKN: Your crash is different. Please open a new bug report. Thanks.
Comment 5 John Ralls 2018-06-29 23:29:29 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=728050. Please update any external references or bookmarks.