Bug 323280 - KMyMoney Crash on OFX Import
Summary: KMyMoney Crash on OFX Import
Status: RESOLVED DUPLICATE of bug 294760
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 4.6.3
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-08-08 08:11 UTC by Chris Tucker
Modified: 2013-08-30 07:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
OFX Import File (23.16 KB, text/plain)
2013-08-29 19:36 UTC, Chris Tucker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Tucker 2013-08-08 08:11:48 UTC
Application: kmymoney (4.6.3)
KDE Platform Version: 4.10.5 "release 1"
Qt Version: 4.8.4
Operating System: Linux 3.10.5-1.g4e0ffc2-desktop x86_64
Distribution: "openSUSE 12.3 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
importing a very small OFX file into an Investment account.

The crash can be reproduced every time.

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff97017c780 (LWP 4355))]

Thread 2 (Thread 0x7ff954aee700 (LWP 5025)):
#0  0x00007ff96d33e3fd in read () from /lib64/libpthread.so.0
#1  0x00007ff965b66e0f in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ff965b2a634 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ff965b2aa42 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007ff965b2abc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007ff96c20b2e6 in QEventDispatcherGlib::processEvents (this=0x7ff9500008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007ff96c1dbadf in QEventLoop::processEvents (this=this@entry=0x7ff954aeddd0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007ff96c1dbd68 in QEventLoop::exec (this=0x7ff954aeddd0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007ff96c0de0f0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#9  0x00007ff96c1bc29f in QInotifyFileSystemWatcherEngine::run (this=0x7588060) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x00007ff96c0e10cc in QThreadPrivate::start (arg=0x7588060) at thread/qthread_unix.cpp:338
#11 0x00007ff96d337e0f in start_thread () from /lib64/libpthread.so.0
#12 0x00007ff96a64c7dd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ff97017c780 (LWP 4355)):
[KCrash Handler]
#6  0x00007ff956b82513 in OFXApplication::endElement (this=0x5694390, event=...) at ofx_sgml.cpp:238
#7  0x00007ff95686a882 in OpenSP::GenericEventHandler::endElement (this=0x7fffcf1ade50, event=0x8fed640) at GenericEventHandler.cxx:155
#8  0x00007ff9568bdbdc in OpenSP::Parser::implyCurrentElementEnd (this=this@entry=0x8b9a630, loc=...) at parseInstance.cxx:1177
#9  0x00007ff9568be12f in OpenSP::Parser::endAllElements (this=this@entry=0x8b9a630) at parseInstance.cxx:1124
#10 0x00007ff9568bec7e in OpenSP::Parser::endInstance (this=0x8b9a630) at parseInstance.cxx:59
#11 0x00007ff9568c2dc7 in OpenSP::Parser::doContent (this=0x8b9a630) at parseInstance.cxx:93
#12 0x00007ff95687c0e8 in OpenSP::Parser::parseAll (this=0x8b9a630, handler=..., cancelPtr=<optimized out>) at Parser.cxx:254
#13 0x00007ff95687e0de in OpenSP::ParserApp::parseAll (this=0x5bc3fd0, parser=..., eh=..., cancelPtr=0x8e363a4) at ParserApp.cxx:97
#14 0x00007ff95687e750 in OpenSP::ParserEventGenerator::run (this=0x8e36390, app=...) at ParserEventGeneratorKit.cxx:197
#15 0x00007ff956b7fec6 in ofx_proc_sgml (libofx_context=0xc2afbe0, argc=3, argv=<optimized out>) at ofx_sgml.cpp:384
#16 0x00007ff956b65c7f in ofx_proc_file (ctx=0xc2afbe0, p_filename=<optimized out>) at ofx_preproc.cpp:300
#17 0x00007ff956b61113 in libofx_proc_file (p_libofx_context=0xc2afbe0, p_filename=0x5a5d888 "/home/chris/Downloads/Q20130808.qfx", p_file_type=<optimized out>) at file_preproc.cpp:94
#18 0x00007ff956da72dd in OfxImporterPlugin::import (this=0x1e83f20, filename=...) at /usr/src/debug/kmymoney-4.6.3/kmymoney/plugins/ofximport/ofximporterplugin.cpp:186
#19 0x00007ff956da48d9 in OfxImporterPlugin::slotImportFile (this=this@entry=0x1e83f20, url=...) at /usr/src/debug/kmymoney-4.6.3/kmymoney/plugins/ofximport/ofximporterplugin.cpp:704
#20 0x00007ff956da4dfc in OfxImporterPlugin::slotImportFile (this=0x1e83f20) at /usr/src/debug/kmymoney-4.6.3/kmymoney/plugins/ofximport/ofximporterplugin.cpp:116
#21 0x00007ff96c1f229f in QMetaObject::activate (sender=0x1d81a70, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffcf1afa80) at kernel/qobject.cpp:3548
#22 0x00007ff96b303662 in QAction::triggered (this=this@entry=0x1d81a70, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#23 0x00007ff96b303850 in QAction::activate (this=0x1d81a70, event=<optimized out>) at kernel/qaction.cpp:1257
#24 0x00007ff96b73d6e3 in QMenuPrivate::activateCausedStack (this=this@entry=0x11af230, causedStack=..., action=action@entry=0x1d81a70, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1038
#25 0x00007ff96b743ac9 in QMenuPrivate::activateAction (this=0x11af230, action=0x1d81a70, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1130
#26 0x00007ff96e88b890 in KMenu::mouseReleaseEvent (this=0x11af180, e=0x7fffcf1b0620) at /usr/src/debug/kdelibs-4.10.5/kdeui/widgets/kmenu.cpp:464
#27 0x00007ff96b359149 in QWidget::event (this=0x11af180, event=0x7fffcf1b0620) at kernel/qwidget.cpp:8375
#28 0x00007ff96b744d7b in QMenu::event (this=0x11af180, e=0x7fffcf1b0620) at widgets/qmenu.cpp:2481
#29 0x00007ff96b30986c in QApplicationPrivate::notify_helper (this=this@entry=0xe5dfd0, receiver=receiver@entry=0x11af180, e=e@entry=0x7fffcf1b0620) at kernel/qapplication.cpp:4562
#30 0x00007ff96b30e54b in QApplication::notify (this=<optimized out>, receiver=0x11af180, e=0x7fffcf1b0620) at kernel/qapplication.cpp:4105
#31 0x00007ff96e7d27f6 in KApplication::notify (this=0xe55b10, receiver=0x11af180, event=0x7fffcf1b0620) at /usr/src/debug/kdelibs-4.10.5/kdeui/kernel/kapplication.cpp:311
#32 0x00007ff96c1dcd8e in QCoreApplication::notifyInternal (this=0xe55b10, receiver=0x11af180, event=0x7fffcf1b0620) at kernel/qcoreapplication.cpp:946
#33 0x00007ff96b30a6ab in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#34 QApplicationPrivate::sendMouseEvent (receiver=0x11af180, event=0x7fffcf1b0620, alienWidget=0x0, nativeWidget=0x11af180, buttonDown=0x7ff96bdde268 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#35 0x00007ff96b384d5c in QETWidget::translateMouseEvent (this=this@entry=0x11af180, event=event@entry=0x7fffcf1b0d90) at kernel/qapplication_x11.cpp:4461
#36 0x00007ff96b383c21 in QApplication::x11ProcessEvent (this=0xe55b10, event=0x7fffcf1b0d90) at kernel/qapplication_x11.cpp:3650
#37 0x00007ff96b3a9fa2 in x11EventSourceDispatch (s=0xe5d280, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#38 0x00007ff965b2a7d5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#39 0x00007ff965b2ab08 in ?? () from /usr/lib64/libglib-2.0.so.0
#40 0x00007ff965b2abc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#41 0x00007ff96c20b2e6 in QEventDispatcherGlib::processEvents (this=0xe2ea70, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#42 0x00007ff96b3a9c1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00007ff96c1dbadf in QEventLoop::processEvents (this=this@entry=0x7fffcf1b1160, flags=...) at kernel/qeventloop.cpp:149
#44 0x00007ff96c1dbd68 in QEventLoop::exec (this=0x7fffcf1b1160, flags=...) at kernel/qeventloop.cpp:204
#45 0x00007ff96c1e0a08 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#46 0x000000000045cf06 in runKMyMoney (splash=splash@entry=0xfadbc0, a=0xe55b10) at /usr/src/debug/kmymoney-4.6.3/kmymoney/main.cpp:282
#47 0x000000000045b6df in main (argc=1, argv=0x7fffcf1b1c58) at /usr/src/debug/kmymoney-4.6.3/kmymoney/main.cpp:181

Reported using DrKonqi
Comment 1 Cristian Oneț 2013-08-29 12:46:26 UTC
Could you attach a test OFX file to reproduce this?
Comment 2 Cristian Oneț 2013-08-29 12:47:22 UTC

*** This bug has been marked as a duplicate of bug 294760 ***
Comment 3 Chris Tucker 2013-08-29 19:36:14 UTC
Created attachment 82016 [details]
OFX Import File

The attached OFX file will cause kmymoney to crash.  I took out the account number but otherwise this is exactly what is downloaded from Wells Fargo.
Comment 4 Cristian Oneț 2013-08-29 19:58:24 UTC
Thanks, I managed to reproduce the crash with the file you provided so a fix will make it into the next version.
Comment 5 Cristian Oneț 2013-08-30 07:15:57 UTC
The problem was reported upstream in libOFX see BUG 294760 for a workaround this issue.