Bug 294760

Summary: kmymoney crash when i do ofx update
Product: [Applications] kmymoney Reporter: David <sango.David>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED UPSTREAM    
Severity: crash CC: christucker500, onet.cristian
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: patch of libOFX

Description David 2012-02-24 17:28:07 UTC
Version:           unspecified (using KDE 4.5.5) 
OS:                Linux

I compiled today last version, worked perfectly before ...
When i do my ofx update, it ask me password, i fill it, and then on 100%, it crash :(

Reproducible: Always

Steps to Reproduce:
Update


Expected Results:  
.

Application: KMyMoney (kmymoney), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fae1ca29760 (LWP 7642))]

Thread 3 (Thread 0x7fae0c76e700 (LWP 7643)):
#0  0x00007fae171bb203 in poll () from /lib/libc.so.6
#1  0x00007fae120b6009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007fae120b67b5 in g_main_loop_run () from /lib/libglib-2.0.so.0
#3  0x00007fae0cea53c4 in ?? () from /usr/lib/libgio-2.0.so.0
#4  0x00007fae120db7e4 in ?? () from /lib/libglib-2.0.so.0
#5  0x00007fae19e1a971 in start_thread () from /lib/libpthread.so.0
#6  0x00007fae171c792d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fadf8b14700 (LWP 7667)):
#0  0x00007fae19e1ee09 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fae17ef3da2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fae17ee8da2 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fae17ef327e in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fae19e1a971 in start_thread () from /lib/libpthread.so.0
#5  0x00007fae171c792d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fae1ca29760 (LWP 7642)):
[KCrash Handler]
#6  0x00007fae16ed0f00 in __gmpn_copyi () from /usr/lib/libgmp.so.3
#7  0x00007fae16ea9447 in __gmpq_set () from /usr/lib/libgmp.so.3
#8  0x00007fae1c5afdfd in MyMoneyMoney (this=0x10246c8b48df8948) at /home/david/Téléchargements/kmymoney-4.6.2/kmymoney/mymoney/mymoneymoney.h:336
#9  MyMoneyMoney::reduce (this=0x10246c8b48df8948) at /home/david/Téléchargements/kmymoney-4.6.2/kmymoney/mymoney/mymoneymoney.cpp:302
#10 0x00007fadf9c905b7 in ?? () from /usr/lib/kde4/kmm_ofximport.so
#11 0x00007fadf9a5f9f1 in OfxTransactionContainer::gen_event() () from /usr/lib/libofx.so.4
#12 0x00007fadf9a5bbb9 in OfxMainContainer::gen_event() () from /usr/lib/libofx.so.4
#13 0x00007fadf9a6c9af in OFXApplication::endElement(SGMLApplication::EndElementEvent const&) () from /usr/lib/libofx.so.4
#14 0x00007fadf9746842 in OpenSP::GenericEventHandler::endElement(OpenSP::EndElementEvent*) () from /usr/lib/libosp.so.5
#15 0x00007fadf97b3e08 in OpenSP::Parser::acceptEndTag(OpenSP::EndElementEvent*) () from /usr/lib/libosp.so.5
#16 0x00007fadf97b6d63 in OpenSP::Parser::doContent() () from /usr/lib/libosp.so.5
#17 0x00007fadf975ccf8 in OpenSP::Parser::parseAll(OpenSP::EventHandler&, int const volatile*) () from /usr/lib/libosp.so.5
#18 0x00007fadf975fb0e in OpenSP::ParserApp::parseAll(OpenSP::SgmlParser&, OpenSP::EventHandler&, int const volatile*) () from /usr/lib/libosp.so.5
#19 0x00007fadf9761161 in OpenSP::ParserEventGenerator::run(SGMLApplication&) () from /usr/lib/libosp.so.5
#20 0x00007fadf9a6bf92 in ofx_proc_sgml(LibofxContext*, int, char**) () from /usr/lib/libofx.so.4
#21 0x00007fadf9a58e57 in ofx_proc_file () from /usr/lib/libofx.so.4
#22 0x00007fadf9a560ab in libofx_proc_file () from /usr/lib/libofx.so.4
#23 0x00007fadf9c8e348 in ?? () from /usr/lib/kde4/kmm_ofximport.so
#24 0x00007fadf9c8da11 in ?? () from /usr/lib/kde4/kmm_ofximport.so
#25 0x00007fadf9c9134e in ?? () from /usr/lib/kde4/kmm_ofximport.so
#26 0x00007fae17ffeb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#27 0x00007fadf9c9c2f2 in ?? () from /usr/lib/kde4/kmm_ofximport.so
#28 0x00007fadf9c9cf55 in ?? () from /usr/lib/kde4/kmm_ofximport.so
#29 0x00007fadf9c9d294 in ?? () from /usr/lib/kde4/kmm_ofximport.so
#30 0x00007fae17ffeb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#31 0x00007fae1843ca92 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#32 0x00007fae1843cd30 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#33 0x00007fae197fd383 in KIO::SimpleJob::slotFinished() () from /usr/lib/libkio.so.5
#34 0x00007fae197fdc92 in KIO::TransferJob::slotFinished() () from /usr/lib/libkio.so.5
#35 0x00007fae197fb771 in KIO::TransferJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5
#36 0x00007fae17ffeb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#37 0x00007fae198ad6ae in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /usr/lib/libkio.so.5
#38 0x00007fae198aa6e3 in KIO::SlaveInterface::dispatch() () from /usr/lib/libkio.so.5
#39 0x00007fae1989e086 in KIO::Slave::gotInput() () from /usr/lib/libkio.so.5
#40 0x00007fae1989e26c in KIO::Slave::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5
#41 0x00007fae17ffeb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#42 0x00007fae197ca007 in ?? () from /usr/lib/libkio.so.5
#43 0x00007fae197ca12d in KIO::Connection::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5
#44 0x00007fae17ff8bde in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#45 0x00007fae1899dfdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#46 0x00007fae189a3aed in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#47 0x00007fae1b02d586 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#48 0x00007fae17fe6cdc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#49 0x00007fae17fe9c22 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#50 0x00007fae18013653 in ?? () from /usr/lib/libQtCore.so.4
#51 0x00007fae120b2342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#52 0x00007fae120b62a8 in ?? () from /lib/libglib-2.0.so.0
#53 0x00007fae120b645c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#54 0x00007fae18013193 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#55 0x00007fae18a50a4e in ?? () from /usr/lib/libQtGui.so.4
#56 0x00007fae17fe5a02 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#57 0x00007fae17fe5dec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#58 0x00007fae18e927de in QDialog::exec() () from /usr/lib/libQtGui.so.4
#59 0x00007fadf9c8d8ba in ?? () from /usr/lib/kde4/kmm_ofximport.so
#60 0x0000000000461f83 in KMyMoneyApp::slotAccountUpdateOnline (this=0x2aa0c40) at /home/david/Téléchargements/kmymoney-4.6.2/kmymoney/kmymoney.cpp:6984
#61 0x00000000004a23bd in KMyMoneyApp::qt_metacall (this=0x2aa0c40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff077ea790) at /home/david/Téléchargements/kmymoney-4.6.2/build/kmymoney/kmymoney.moc:505
#62 0x00007fae17ffeb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#63 0x00007fae18996852 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#64 0x00007fae18997f5b in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#65 0x00007fae18dfedc1 in ?? () from /usr/lib/libQtGui.so.4
#66 0x00007fae18e04782 in ?? () from /usr/lib/libQtGui.so.4
#67 0x00007fae1b10f2be in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#68 0x00007fae189f404e in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#69 0x00007fae18e0690b in QMenu::event(QEvent*) () from /usr/lib/libQtGui.so.4
#70 0x00007fae1899dfdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#71 0x00007fae189a430e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#72 0x00007fae1b02d586 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#73 0x00007fae17fe6cdc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#74 0x00007fae189a2dbe in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#75 0x00007fae18a267bd in ?? () from /usr/lib/libQtGui.so.4
#76 0x00007fae18a24c5c in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#77 0x00007fae18a510e2 in ?? () from /usr/lib/libQtGui.so.4
#78 0x00007fae120b2342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#79 0x00007fae120b62a8 in ?? () from /lib/libglib-2.0.so.0
#80 0x00007fae120b645c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#81 0x00007fae18013193 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#82 0x00007fae18a50a4e in ?? () from /usr/lib/libQtGui.so.4
#83 0x00007fae17fe5a02 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#84 0x00007fae17fe5dec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#85 0x00007fae18e01ec5 in QMenu::exec(QPoint const&, QAction*) () from /usr/lib/libQtGui.so.4
#86 0x00000000004599d9 in KMyMoneyApp::showContextMenu (this=<value optimized out>, containerName=...) at /home/david/Téléchargements/kmymoney-4.6.2/kmymoney/kmymoney.cpp:5758
#87 0x00000000004644da in KMyMoneyApp::slotShowAccountContextMenu (this=0x2aa0c40, obj=<value optimized out>) at /home/david/Téléchargements/kmymoney-4.6.2/kmymoney/kmymoney.cpp:5797
#88 0x00000000004a26c2 in KMyMoneyApp::qt_metacall (this=0x2aa0c40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff077ec670) at /home/david/Téléchargements/kmymoney-4.6.2/build/kmymoney/kmymoney.moc:553
#89 0x00007fae17ffeb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#90 0x0000000000500645 in KAccountsView::openContextMenu (this=0x7fadf643f008, _t1=<value optimized out>) at /home/david/Téléchargements/kmymoney-4.6.2/build/kmymoney/views/kaccountsview.moc:155
#91 0x0000000000503642 in slotOpenContextMenu (this=0x2d7d0b0, point=<value optimized out>) at /home/david/Téléchargements/kmymoney-4.6.2/kmymoney/views/kaccountsview.cpp:385
#92 KAccountsView::slotAssetsOpenContextMenu (this=0x2d7d0b0, point=<value optimized out>) at /home/david/Téléchargements/kmymoney-4.6.2/kmymoney/views/kaccountsview.cpp:366
#93 0x0000000000504c76 in KAccountsView::qt_metacall (this=0x2d7d0b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff077ec990) at /home/david/Téléchargements/kmymoney-4.6.2/build/kmymoney/views/kaccountsview.moc:128
#94 0x00007fae17ffeb27 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#95 0x00007fae189e7482 in QWidget::customContextMenuRequested(QPoint const&) () from /usr/lib/libQtGui.so.4
#96 0x00007fae189f4412 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#97 0x00007fae18dbf5e6 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#98 0x00007fae18ef8a8b in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#99 0x00007fae17fe6507 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#100 0x00007fae1899dfac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#101 0x00007fae189a3cd1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#102 0x00007fae1b02d586 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#103 0x00007fae17fe6cdc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#104 0x00007fae18a26392 in ?? () from /usr/lib/libQtGui.so.4
#105 0x00007fae18a24c5c in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#106 0x00007fae18a510e2 in ?? () from /usr/lib/libQtGui.so.4
#107 0x00007fae120b2342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#108 0x00007fae120b62a8 in ?? () from /lib/libglib-2.0.so.0
#109 0x00007fae120b645c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#110 0x00007fae18013193 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#111 0x00007fae18a50a4e in ?? () from /usr/lib/libQtGui.so.4
#112 0x00007fae17fe5a02 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#113 0x00007fae17fe5dec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#114 0x00007fae17fe9ebb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#115 0x0000000000454d6c in runKMyMoney (a=<value optimized out>, splash=<value optimized out>) at /home/david/Téléchargements/kmymoney-4.6.2/kmymoney/main.cpp:282
#116 0x0000000000456cd5 in main (argc=<value optimized out>, argv=<value optimized out>) at /home/david/Téléchargements/kmymoney-4.6.2/kmymoney/main.cpp:181
Comment 1 Cristian Oneț 2013-08-29 12:47:22 UTC
*** Bug 323280 has been marked as a duplicate of this bug. ***
Comment 2 Cristian Oneț 2013-08-29 19:59:24 UTC
With the file attached to BUG 323280 this can be reproduced.
Comment 3 Cristian Oneț 2013-08-30 07:12:12 UTC
This is actually a bug in libofx. It was reported at http://sourceforge.net/p/libofx/bugs/41/. The bug report also contains a patch against libofx that solves this issue. Closing this and waiting for the fix upstream.
Comment 4 Cristian Oneț 2013-08-30 07:14:42 UTC
Created attachment 82025 [details]
patch of libOFX
Comment 5 Cristian Oneț 2013-08-30 07:15:13 UTC
A workaround the crash is to remove everything after the OFX closing tag.
Comment 6 Cristian Oneț 2013-09-02 05:02:30 UTC
The bug was closed upstream so the fix will be available in the next version of libofx.