Bug 230371 - KMM 3.96 crashes clicking grayed out account in move transaction dialog
Summary: KMM 3.96 crashes clicking grayed out account in move transaction dialog
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-11 22:23 UTC by Jack
Modified: 2010-03-11 22:49 UTC (History)
0 users

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 Jack 2010-03-11 22:23:35 UTC
Application that crashed: kmymoney
Version of the application: 3.96.1-svn1100190
KDE Version: 4.3.5 (KDE 4.3.5)
Qt Version: 4.6.2
Operating System: Linux 2.6.27-gentoo-r8-01 x86_64

What I was doing when the application crashed:
I imported an OFX  file into an investment account.  One of the transactions really belongs in the brokerage account, but if (in the ledger) I right click and select Move transaction to, the dialog shows all accounts grayed out.  If I click on one anyway, KMM crashes.

 -- Backtrace:
Application: KMyMoney (kmymoney), signal: Segmentation fault
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2200.4-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
The current source language is "auto; currently c".
[KCrash Handler]
#5  QString (this=<value optimized out>, toId=<value optimized out>, tx=<value optimized out>) at /usr/include/qt4/QtCore/qstring.h:714
#6  MyMoneyObject (this=<value optimized out>, toId=<value optimized out>, tx=<value optimized out>) at /home/jack/KMM/KDE4/kmymoney/build/kmymoney/mymoneyobject.h:44
#7  MyMoneySplit (this=<value optimized out>, toId=<value optimized out>, tx=<value optimized out>) at /home/jack/KMM/KDE4/kmymoney/build/kmymoney/mymoneysplit.h:55
#8  KMyMoneyApp::Private::moveInvestmentTransaction (this=<value optimized out>, toId=<value optimized out>, tx=<value optimized out>) at /home/jack/KMM/KDE4/kmymoney/kmymoney/kmymoney.cpp:5339
#9  0x0000000000473f73 in KMyMoneyApp::slotMoveToAccount (this=0xd51460, id=...) at /home/jack/KMM/KDE4/kmymoney/kmymoney/kmymoney.cpp:5265
#10 0x00000000004a7851 in KMyMoneyApp::qt_metacall (this=0xd51460, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff7aa81de0)
    at /home/jack/KMM/KDE4/kmymoney/build/kmymoney/kmymoney.moc:478
#11 0x00007f2a6e52c117 in QMetaObject::activate (sender=0xe5cd10, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1b66560) at kernel/qobject.cpp:3285
#12 0x00000000007311d5 in KMyMoneySelector::itemSelected (this=0x7fff7aa81700, _t1=<value optimized out>) at /home/jack/KMM/KDE4/kmymoney/build/kmymoney/widgets/kmymoneyselector.moc:117
#13 0x0000000000731c8c in KMyMoneySelector::slotItemSelected (this=0xe5cd10, item=<value optimized out>) at /home/jack/KMM/KDE4/kmymoney/kmymoney/widgets/kmymoneyselector.cpp:121
#14 0x00000000007329cf in KMyMoneySelector::qt_metacall (this=0xe5cd10, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff7aa81f80)
    at /home/jack/KMM/KDE4/kmymoney/build/kmymoney/widgets/kmymoneyselector.moc:98
#15 0x000000000075de3d in kMyMoneyAccountSelector::qt_metacall (this=0x7fff7aa81700, _c=28787400, _id=1921422240, _a=0x1b66560)
    at /home/jack/KMM/KDE4/kmymoney/build/kmymoney/widgets/kmymoneyaccountselector.moc:74
#16 0x00007f2a6e52c117 in QMetaObject::activate (sender=0xe825c0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1b66560) at kernel/qobject.cpp:3285
#17 0x00007f2a6de68d70 in QTreeWidget::itemActivated (this=0x7fff7aa81700, _t1=0xd4d020, _t2=0) at .moc/release-shared/moc_qtreewidget.cpp:221
#18 0x00007f2a6de72069 in QTreeWidget::qt_metacall (this=0xe825c0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff7aa820b0) at .moc/release-shared/moc_qtreewidget.cpp:152
#19 0x00007f2a6e52c117 in QMetaObject::activate (sender=0xe825c0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1b66560) at kernel/qobject.cpp:3285
#20 0x00007f2a6dde86d5 in QAbstractItemView::activated (this=0x7fff7aa81700, _t1=<value optimized out>) at .moc/release-shared/moc_qabstractitemview.cpp:345
#21 0x00007f2a6ddf545c in QAbstractItemView::mouseReleaseEvent (this=0xe825c0, event=0x7fff7aa830c0) at itemviews/qabstractitemview.cpp:1784
#22 0x00007f2a6d91d752 in QWidget::event (this=0xe825c0, event=0x7fff7aa830c0) at kernel/qwidget.cpp:7998
#23 0x00007f2a6dcc936b in QFrame::event (this=0xe825c0, e=0x7fff7aa830c0) at widgets/qframe.cpp:557
#24 0x00007f2a6ddf7c2b in QAbstractItemView::viewportEvent (this=0xe825c0, event=0x7fff7aa830c0) at itemviews/qabstractitemview.cpp:1610
#25 0x00007f2a6de35124 in QTreeView::viewportEvent (this=0xe825c0, event=0x7fff7aa830c0) at itemviews/qtreeview.cpp:1248
#26 0x00007f2a6e5180d8 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0xd07210, event=0x7fff7aa830c0) at kernel/qcoreapplication.cpp:819
#27 0x00007f2a6d8c61cc in QApplicationPrivate::notify_helper (this=0xc82aa0, receiver=0xd07210, e=0x7fff7aa830c0) at kernel/qapplication.cpp:4296
#28 0x00007f2a6d8ce31c in QApplication::notify (this=<value optimized out>, receiver=0xd07210, e=0x7fff7aa830c0) at kernel/qapplication.cpp:3865
#29 0x00007f2a70b7c6db in KApplication::notify (this=0xc829d0, receiver=0xd07210, event=0x7fff7aa830c0)
    at /mnt/ffortso3/portage/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kdeui/kernel/kapplication.cpp:302
#30 0x00007f2a6e518cbc in QCoreApplication::notifyInternal (this=0xc829d0, receiver=0xd07210, event=0x7fff7aa830c0) at kernel/qcoreapplication.cpp:704
#31 0x00007f2a6d8cce9b in QCoreApplication::sendEvent (receiver=0xd07210, event=0x7fff7aa830c0, alienWidget=0xd07210, nativeWidget=0xe4aa20, buttonDown=<value optimized out>, lastMouseReceiver=..., 
    spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#32 QApplicationPrivate::sendMouseEvent (receiver=0xd07210, event=0x7fff7aa830c0, alienWidget=0xd07210, nativeWidget=0xe4aa20, buttonDown=<value optimized out>, lastMouseReceiver=..., spontaneous=
    true) at kernel/qapplication.cpp:2965
#33 0x00007f2a6d94f613 in QETWidget::translateMouseEvent (this=0xe4aa20, event=<value optimized out>) at kernel/qapplication_x11.cpp:4302
#34 0x00007f2a6d94e5fc in QApplication::x11ProcessEvent (this=0xc829d0, event=0x7fff7aa838a0) at kernel/qapplication_x11.cpp:3501
#35 0x00007f2a6d976ff2 in x11EventSourceDispatch (s=0xc86730, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#36 0x00007f2a6bfc6f2a in g_main_dispatch (context=0xc85440) at gmain.c:1960
#37 IA__g_main_context_dispatch (context=0xc85440) at gmain.c:2513
#38 0x00007f2a6bfca788 in g_main_context_iterate (context=0xc85440, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591
#39 0x00007f2a6bfca93c in IA__g_main_context_iteration (context=0xc85440, may_block=1) at gmain.c:2654
#40 0x00007f2a6e5425fc in QEventDispatcherGlib::processEvents (this=0xc82a30, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#41 0x00007f2a6d976b8f in QGuiEventDispatcherGlib::processEvents (this=0x7fff7aa81700, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#42 0x00007f2a6e5175a2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#43 0x00007f2a6e517974 in QEventLoop::exec (this=0x7fff7aa83bd0, flags=...) at kernel/qeventloop.cpp:201
#44 0x00007f2a6dd0a265 in QMenu::exec (this=<value optimized out>, p=..., action=0x0) at widgets/qmenu.cpp:2063
#45 0x0000000000462d47 in KMyMoneyApp::showContextMenu (this=<value optimized out>, containerName=...) at /home/jack/KMM/KDE4/kmymoney/kmymoney/kmymoney.cpp:5470
#46 0x000000000046c1ba in KMyMoneyApp::slotShowTransactionContextMenu (this=0xd51460) at /home/jack/KMM/KDE4/kmymoney/kmymoney/kmymoney.cpp:5478
#47 0x00000000004a7357 in KMyMoneyApp::qt_metacall (this=0xd51460, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff7aa841f0)
    at /home/jack/KMM/KDE4/kmymoney/build/kmymoney/kmymoney.moc:539
#48 0x00007f2a6e52c117 in QMetaObject::activate (sender=0x10b6f00, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1b66560) at kernel/qobject.cpp:3285
#49 0x000000000052ef4d in KGlobalLedgerView::qt_metacall (this=0x10b6f00, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff7aa843e0)
    at /home/jack/KMM/KDE4/kmymoney/build/kmymoney/views/kgloballedgerview.moc:210
#50 0x00007f2a6e52c117 in QMetaObject::activate (sender=0x10bdb30, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1b66560) at kernel/qobject.cpp:3285
#51 0x000000000073aebe in KMyMoneyRegister::Register::selectItem (this=0x10bdb30, row=<value optimized out>, col=4, button=2) at /home/jack/KMM/KDE4/kmymoney/kmymoney/widgets/register.cpp:1576
#52 0x000000000073afbe in KMyMoneyRegister::Register::qt_metacall (this=0x10bdb30, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff7aa84580)
    at /home/jack/KMM/KDE4/kmymoney/build/kmymoney/widgets/register.moc:117
#53 0x00007f2a6e52c117 in QMetaObject::activate (sender=0x10bdb30, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1b66560) at kernel/qobject.cpp:3285
#54 0x00007f2a71d71a62 in Q3Table::clicked (this=0x7fff7aa81700, _t1=72, _t2=4, _t3=2, _t4=...) at .moc/release-shared/moc_q3table.cpp:328
#55 0x00007f2a71c3e18b in Q3Table::contentsMouseReleaseEvent (this=0x7fff7aa81700, e=0x7fff7aa84630) at itemviews/q3table.cpp:3856
#56 0x00007f2a71c7a759 in Q3ScrollView::viewportMouseReleaseEvent (this=0x10bdb30, e=0x7fff7aa85040) at widgets/q3scrollview.cpp:1763
#57 0x00007f2a71c7beee in Q3ScrollView::eventFilter (this=0x10bdb30, obj=0x10bb170, e=0x7fff7aa85040) at widgets/q3scrollview.cpp:1481
#58 0x00007f2a71c39ca4 in Q3Table::eventFilter (this=0x10bdb30, o=0x10bb170, e=0x7fff7aa85040) at itemviews/q3table.cpp:4042
#59 0x0000000000735ee0 in KMyMoneyRegister::Register::eventFilter (this=0x10bdb30, o=0x10bb170, e=0x7fff7aa85040) at /home/jack/KMM/KDE4/kmymoney/kmymoney/widgets/register.cpp:642
#60 0x00007f2a6e5180d8 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x10bb170, event=0x7fff7aa85040) at kernel/qcoreapplication.cpp:819
#61 0x00007f2a6d8c61cc in QApplicationPrivate::notify_helper (this=0xc82aa0, receiver=0x10bb170, e=0x7fff7aa85040) at kernel/qapplication.cpp:4296
#62 0x00007f2a6d8ce31c in QApplication::notify (this=<value optimized out>, receiver=0x10bb170, e=0x7fff7aa85040) at kernel/qapplication.cpp:3865
#63 0x00007f2a70b7c6db in KApplication::notify (this=0xc829d0, receiver=0x10bb170, event=0x7fff7aa85040)
    at /mnt/ffortso3/portage/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kdeui/kernel/kapplication.cpp:302
#64 0x00007f2a6e518cbc in QCoreApplication::notifyInternal (this=0xc829d0, receiver=0x10bb170, event=0x7fff7aa85040) at kernel/qcoreapplication.cpp:704
#65 0x00007f2a6d8cce9b in QCoreApplication::sendEvent (receiver=0x10bb170, event=0x7fff7aa85040, alienWidget=0x10bb170, nativeWidget=0x10b6f00, buttonDown=<value optimized out>, lastMouseReceiver=
    ..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#66 QApplicationPrivate::sendMouseEvent (receiver=0x10bb170, event=0x7fff7aa85040, alienWidget=0x10bb170, nativeWidget=0x10b6f00, buttonDown=<value optimized out>, lastMouseReceiver=..., spontaneous=
    true) at kernel/qapplication.cpp:2965
#67 0x00007f2a6d94f450 in QETWidget::translateMouseEvent (this=0x10b6f00, event=<value optimized out>) at kernel/qapplication_x11.cpp:4368
#68 0x00007f2a6d94e5fc in QApplication::x11ProcessEvent (this=0xc829d0, event=0x7fff7aa85820) at kernel/qapplication_x11.cpp:3501
#69 0x00007f2a6d976ff2 in x11EventSourceDispatch (s=0xc86730, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#70 0x00007f2a6bfc6f2a in g_main_dispatch (context=0xc85440) at gmain.c:1960
#71 IA__g_main_context_dispatch (context=0xc85440) at gmain.c:2513
#72 0x00007f2a6bfca788 in g_main_context_iterate (context=0xc85440, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591
#73 0x00007f2a6bfca93c in IA__g_main_context_iteration (context=0xc85440, may_block=1) at gmain.c:2654
#74 0x00007f2a6e5425fc in QEventDispatcherGlib::processEvents (this=0xc82a30, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#75 0x00007f2a6d976b8f in QGuiEventDispatcherGlib::processEvents (this=0x7fff7aa81700, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#76 0x00007f2a6e5175a2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#77 0x00007f2a6e517974 in QEventLoop::exec (this=0x7fff7aa85b50, flags=...) at kernel/qeventloop.cpp:201
#78 0x00007f2a6e519e26 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#79 0x0000000000460090 in main (argc=1, argv=0x7fff7aa867a8) at /home/jack/KMM/KDE4/kmymoney/kmymoney/main.cpp:274

Reported using DrKonqi
Comment 1 Cristian Oneț 2010-03-11 22:49:19 UTC
SVN commit 1102141 by conet:

BUG: 230371
Fixed dereferencing an invalid iterator. Also moved the iterator declaration into the for loop so it could not be used from outside of the loop where it could be invalid.

 M  +6 -6      kmymoney.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1102141