Description of problem: I tried to import a CSV export from the german bank Norisbank. I seleted some of columns and clicked import (or whatever was the name of the action button). GnuCash crashed immediately. Version-Release number of selected component: gnucash-2.4.13-1.fc19 Additional info: reporter: libreport-2.1.6 backtrace_rating: 4 cmdline: gnucash crash_function: free_workarea_compile executable: /usr/bin/gnucash kernel: 3.9.9-301.fc19.x86_64 runlevel: N 5 uid: 1000 Truncated backtrace: Thread no. 1 (10 frames) #1 free_workarea_compile at regcomp.c:978 #2 re_compile_internal at regcomp.c:811 #3 __regcomp at regcomp.c:499 #4 parse_date_with_year at gnc-csv-model.c:88 #5 parse_date at gnc-csv-model.c:311 #6 trans_property_set at gnc-csv-model.c:642 #7 gnc_csv_parse_to_trans at gnc-csv-model.c:1038 #8 gnc_file_csv_import at gnc-csv-import.c:1166 #13 _gtk_action_emit_activate at gtkaction.c:795 #18 gtk_widget_activate at gtkwidget.c:5048
Created attachment 783535 [details] File: backtrace
Created attachment 783536 [details] File: cgroup
Created attachment 783537 [details] File: core_backtrace
Created attachment 783538 [details] File: dso_list
Created attachment 783539 [details] File: environ
Created attachment 783540 [details] File: exploitable
Created attachment 783541 [details] File: limits
Created attachment 783542 [details] File: maps
Created attachment 783543 [details] File: open_fds
Created attachment 783544 [details] File: proc_pid_status
Created attachment 783545 [details] File: var_log_messages
'parse_date_with_year' is in your backtrace? Can you give me: 1) a sanitized line from the CSV file (change any names/values you want to leave out) 2) a list of all the dates from the file? Were you running it in German, English, or some other locale?
here are some sample lines ... btw, there are some lines at the top that are extra ... maybe those make trouble? <pre> Umsätze Top-Zinskonto (00);;;Kundennummer: 430 0000000 24.02.2011 - 09.08.2011 Letzter Kontostand;;;;0000,00;EUR Vorgemerkte und noch nicht gebuchte Umsätze sind nicht Bestandteil dieser Übersicht. Buchungstag;Wert;Verwendungszweck;Soll;Haben;Währung 09.08.2011;09.08.2011;"message with acct number of other side";-100,00;;EUR 04.08.2011;04.08.2011;"I got some - yeah";;50,00;EUR </pre>
Yes, that was it ... if I remove the leading lines, then it does not crash ... anyway, the crash is a bug, leading lines or not. Second bug (do you want to have an own bug for this?): The importer is unable to read numbers like: * -1.234,56 * 9.875,43
If you could attach the shortest file with the leading lines that make it crash, that would be best. With respect to parsing the numbers, I assume your locale is set to German?
The lines posted above make it crash and my locale is indeed german.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Apologies for the inability to address this bug as filed. Currently, Fedora 19 is EOL, and Fedora 20 and later ship an entirely new major version of GnuCash which includes many changes (including, in this case, a completely rewritten CSV importer). If this bug persists in Fedora 20 and later with GnuCash 2.6.x, please reopen this bug against that version. Again, apologies for the inability to address this bug as filed. Closing as WONTFIX for Fedora 19/gnucash-2.4.