Bug 320066 - Crash importing KmyMoney exported file from Skrooge
Summary: Crash importing KmyMoney exported file from Skrooge
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-20 20:14 UTC by Richard Donaldson
Modified: 2013-09-02 20:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Donaldson 2013-05-20 20:14:40 UTC
Application: kmymoney (4.6.3)
KDE Platform Version: 4.10.2
Qt Version: 4.8.4
Operating System: Linux 3.8.0-21-generic x86_64
Distribution: Ubuntu 13.04

-- Information about the crash:
- What I was doing when the application crashed:

I exported to data from Skrooge in the KmyMoney format. The problem reported was that JMD$ was not found in the file (my understanding of the message)

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f422e5407c0 (LWP 4096))]

Thread 3 (Thread 0x7f421606f700 (LWP 4097)):
#0  0x00007f42243d1359 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f42243d15e9 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f42243918f3 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f42243920fe in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4224392304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f422a62a036 in QEventDispatcherGlib::processEvents (this=0x7f42100008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f422a5fa38f in QEventLoop::processEvents (this=this@entry=0x7f421606ed90, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f422a5fa618 in QEventLoop::exec (this=this@entry=0x7f421606ed90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f422a4fc410 in QThread::exec (this=this@entry=0x1e772d0) at thread/qthread.cpp:542
#9  0x00007f422a5dbedf in QInotifyFileSystemWatcherEngine::run (this=0x1e772d0) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x00007f422a4febec in QThreadPrivate::start (arg=0x1e772d0) at thread/qthread_unix.cpp:338
#11 0x00007f422b73cf8e in start_thread (arg=0x7f421606f700) at pthread_create.c:311
#12 0x00007f4228a6ee1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f420c673700 (LWP 4103)):
#0  0x00007f42243918a7 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f42243920fe in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4224392304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f422a62a036 in QEventDispatcherGlib::processEvents (this=0x7f42040008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f422a5fa38f in QEventLoop::processEvents (this=this@entry=0x7f420c672d90, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f422a5fa618 in QEventLoop::exec (this=this@entry=0x7f420c672d90, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f422a4fc410 in QThread::exec (this=this@entry=0x374f8e0) at thread/qthread.cpp:542
#7  0x00007f422a5dbedf in QInotifyFileSystemWatcherEngine::run (this=0x374f8e0) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007f422a4febec in QThreadPrivate::start (arg=0x374f8e0) at thread/qthread_unix.cpp:338
#9  0x00007f422b73cf8e in start_thread (arg=0x7f420c673700) at pthread_create.c:311
#10 0x00007f4228a6ee1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f422e5407c0 (LWP 4096)):
[KCrash Handler]
#5  0x00007f42289ac037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#6  0x00007f42289af698 in __GI_abort () at abort.c:90
#7  0x00007f42292b8e8d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#8  0x00007f42292b6f76 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x00007f42292b6fa3 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00007f42292b71de in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x000000000045686e in main (argc=1, argv=0x7fff8c756378) at /build/buildd/kmymoney-4.6.3/kmymoney/main.cpp:185

Possible duplicates by query: bug 318896, bug 318467, bug 318309, bug 316495, bug 316465.

Reported using DrKonqi
Comment 1 Cristian Oneț 2013-08-30 08:16:09 UTC
This is issue should be reported for skrooge since it produces an invalid KMyMoney file.
Comment 2 Stephane MANKOWSKI 2013-08-31 10:24:27 UTC
I exported my Skrooge document and KMyMoney is able to read it without issue.
Could you provide me a small Skrooge document able to crash KMyMoney after export?
Comment 3 Stephane MANKOWSKI 2013-09-01 17:26:16 UTC
I found how to reproduce it.
Comment 4 Stephane MANKOWSKI 2013-09-02 20:18:36 UTC
Git commit d017858852ab3ff8e1f3bcd1b96dd483ce852feb by Stephane Mankowski.
Committed on 02/09/2013 at 20:16.
Pushed by smankowski into branch 'Feature'.
Crash importing KmyMoney exported file from Skrooge

M  +1    -0    CHANGELOG
M  +2    -3    TODO
M  +123  -103  plugins/import/skrooge_import_kmy/skgimportpluginkmy.cpp
A  +-    --    tests/input/skgtestimportkmy4/320066.skg
A  +13   -0    tests/scripts/skgtestimportkmy4.sh
M  +3    -0    tests/skgbankmodelertest/CMakeLists.txt
A  +73   -0    tests/skgbankmodelertest/skgtestimportkmy4.cpp     [License: GPL (v2+)]

http://commits.kde.org/skrooge/d017858852ab3ff8e1f3bcd1b96dd483ce852feb