Bug 274853 - Crash when logging out of KDE while KMyMoney is still running
Summary: Crash when logging out of KDE while KMyMoney is still running
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: SVN
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-03 18:43 UTC by Thomas Baumgart
Modified: 2011-07-14 20:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Baumgart 2011-06-03 18:43:02 UTC
Version:           SVN trunk (using KDE 4.6.0) 
OS:                Linux

The summary says it all. I have noticed once, that it does not crash if there are still unsaved modifications and the application asks if those should be saved. I answered No in this case and I did not see a crash.

Reproducible: Always

Steps to Reproduce:
Start KMyMoney, make sure all data is saved (the modified indicator on the window title bar is not present) and then log out of your KDE session.

Actual Results:  
KMyMoney crashes

Expected Results:  
KMyMoney should just quit.

Here's a backtrace:

Application: KMyMoney (kmymoney), signal: Segmentation fault
[KCrash Handler]
#6  0x00007f2066353958 in ?? () from /usr/lib64/libQtGui.so.4
#7  0x00007f20663547c3 in QSortFilterProxyModel::index(int, int, QModelIndex const&) const () from /usr/lib64/libQtGui.so.4
#8  0x00007f20663515b6 in ?? () from /usr/lib64/libQtGui.so.4
#9  0x00007f2066354f62 in ?? () from /usr/lib64/libQtGui.so.4
#10 0x00007f206634f6e2 in QAbstractProxyModel::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libQtGui.so.4
#11 0x00007f2066357fc5 in QSortFilterProxyModel::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libQtGui.so.4
#12 0x000000000078a2f8 in AccountsFilterProxyModel::qt_metacall (this=0xfb4340, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /home/thb/devel/kmymoney4/build/kmymoney/models/accountsmodel.moc:233
#13 0x00000000005a44f0 in AccountsViewFilterProxyModel::qt_metacall (this=0xfb4340, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffc9f803a0) at /home/thb/devel/kmymoney4/build/kmymoney/widgets/kmymoneyaccounttreeview.moc:192
#14 0x00007f2066c86def in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#15 0x00007f2066c872ff in QObject::destroyed(QObject*) () from /usr/lib64/libQtCore.so.4
#16 0x00007f2066c88a67 in QObject::~QObject() () from /usr/lib64/libQtCore.so.4
#17 0x0000000000789ff9 in AccountsModel::~AccountsModel (this=0xe99100, __in_chrg=<value optimized out>) at /home/thb/devel/kmymoney4/kmymoney/models/accountsmodel.cpp:362
#18 0x00007f2066c841d4 in QObjectPrivate::deleteChildren() () from /usr/lib64/libQtCore.so.4
#19 0x00007f2066c88e72 in QObject::~QObject() () from /usr/lib64/libQtCore.so.4
#20 0x00007f206514e5a1 in __run_exit_handlers () from /lib64/libc.so.6
#21 0x00007f206514e5f5 in exit () from /lib64/libc.so.6
#22 0x00007f2065137c04 in __libc_start_main () from /lib64/libc.so.6
#23 0x0000000000459679 in _start () at ../sysdeps/x86_64/elf/start.S:113
Comment 1 Cristian Oneț 2011-07-14 20:27:16 UTC
SVN commit 1241575 by conet:

BUG: 274853
Fixed a crash when logging out while KMyMoney is open. Don't hold the models that long until the static cleanup routine runs.

 M  +8 -2      models.cpp  
 M  +2 -4      models.h  


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