[Kmymoney-devel] Budgeting report segfault [Backtrace and use case included]

Reto Glauser kde at blinkeye.ch
Thu Apr 8 10:50:51 CEST 2010


Hello

kmymoney crashes in the following situation:

1. create a budget
2. create a custom budgeting report using this budget (e.g. copy yearly 
budget)
3. delete the budget
4. create a new budget with the same name
5. open/delete/edit custom budgeting report

The segfault happens only after re-creating a budget with the same name.

There's no need of any data to be involved, but you need some accounts 
(e.g. United States -> Base -Blank account will suffice).

Further information:
- Consistency check is ok
- Version 3.97.1, Using KDE 4.3.5 (KDE 4.3.5)

Backtrace:

> Application: KMyMoney (kmymoney), signal: Segmentation fault
> [Current thread is 1 (Thread 0x7fe8c5cb5740 (LWP 16801))]
>
> Thread 2 (Thread 0x7fe8b201a910 (LWP 16809)):
> #0  0x00007fe8bf445d7d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
> #1  0x00007fe8c1a1e1e5 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
> #2  0x00007fe8c1a14809 in ?? () from /usr/lib64/qt4/libQtCore.so.4
> #3  0x00007fe8c1a1d3e1 in ?? () from /usr/lib64/qt4/libQtCore.so.4
> #4  0x00007fe8bf4420d9 in start_thread () from /lib/libpthread.so.0
> #5  0x00007fe8c037f25d in clone () from /lib/libc.so.6
> #6  0x0000000000000000 in ?? ()
>
> Thread 1 (Thread 0x7fe8c5cb5740 (LWP 16801)):
> [KCrash Handler]
> #5  QBasicAtomicInt::ref (this=0xf9) at /usr/include/qt4/QtCore/qatomic_x86_64.h:121
> #6  0x00000000004960d9 in QMap (this=0x7fffb57ee3c0, other=...) at /usr/include/qt4/QtCore/qmap.h:166
> #7  0x000000000049612f in MyMoneyBudget (this=0x7fffb57ee3a0) at /usr/src/debug/app-office/kmymoney-3.97.1/kmymoney-3.97.1_build/kmymoney/mymoneybudget.h:55
> #8  0x00000000006e0f12 in MyMoneySeqAccessMgr::budget (this=<value optimized out>, _id=<value optimized out>)
>     at /usr/src/debug/app-office/kmymoney-3.97.1/kmymoney-3.97.1/kmymoney/mymoney/storage/mymoneyseqaccessmgr.cpp:1648
> #9  0x00007fe8c5888f57 in MyMoneyFile::budget (this=0x7fe8c5aef480, id=...) at /usr/src/debug/app-office/kmymoney-3.97.1/kmymoney-3.97.1/kmymoney/mymoney/mymoneyfile.cpp:2148
> #10 0x0000000000519406 in reports::PivotTable::calculateBudgetMapping (this=0x16084c0) at /usr/src/debug/app-office/kmymoney-3.97.1/kmymoney-3.97.1/kmymoney/reports/pivottable.cpp:803
> #11 0x000000000051d96d in reports::PivotTable::init (this=0x16084c0) at /usr/src/debug/app-office/kmymoney-3.97.1/kmymoney-3.97.1/kmymoney/reports/pivottable.cpp:169
> #12 0x000000000051dcb8 in PivotTable (this=0x16084c0, _config_f=...) at /usr/src/debug/app-office/kmymoney-3.97.1/kmymoney-3.97.1/kmymoney/reports/pivottable.cpp:94
> #13 0x00000000004c4b37 in KReportsView::KReportTab::updateReport (this=0x1716d10) at /usr/src/debug/app-office/kmymoney-3.97.1/kmymoney-3.97.1/kmymoney/views/kreportsview.cpp:209
> #14 0x00000000004c4c4b in KReportsView::KReportTab::showEvent (this=0xf9, event=0x7fffb57ef980) at /usr/src/debug/app-office/kmymoney-3.97.1/kmymoney-3.97.1/kmymoney/views/kreportsview.cpp:187
> #15 0x00007fe8c0fa2b52 in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
> #16 0x00007fe8c0f554b6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
> #17 0x00007fe8c0f5beb1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
> #18 0x00007fe8c3ed7efc in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
> #19 0x00007fe8c1afd26e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
> #20 0x00007fe8c0fa6ff0 in QWidgetPrivate::show_helper() () from /usr/lib64/qt4/libQtGui.so.4
> #21 0x00007fe8c0fa74e4 in QWidget::setVisible(bool) () from /usr/lib64/qt4/libQtGui.so.4
> #22 0x00007fe8c0f8ec22 in QStackedLayout::setCurrentIndex(int) () from /usr/lib64/qt4/libQtGui.so.4
> #23 0x00007fe8c135c5f5 in ?? () from /usr/lib64/qt4/libQtGui.so.4
> #24 0x00007fe8c135c756 in QTabWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/qt4/libQtGui.so.4
> #25 0x00007fe8c3fb1e9f in KTabWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdeui.so.5
> #26 0x00007fe8c1b0e970 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
> #27 0x00007fe8c1352a7e in QTabBar::currentChanged(int) () from /usr/lib64/qt4/libQtGui.so.4
> #28 0x00000000004c7cdd in KReportsView::qt_metacall (this=0x103ce80, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffb57efd60)
>     at /usr/src/debug/app-office/kmymoney-3.97.1/kmymoney-3.97.1_build/kmymoney/views/kreportsview.moc:118
> #29 0x00007fe8c1b0e970 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
> #30 0x00007fe8c503bed8 in Q3ListView::doubleClicked(Q3ListViewItem*) () from /usr/lib64/qt4/libQt3Support.so.4
> #31 0x00007fe8c352ad1e in K3ListView::contentsMouseDoubleClickEvent(QMouseEvent*) () from /usr/lib/libkde3support.so.4
> #32 0x00007fe8c4f596e2 in Q3ScrollView::viewportMouseDoubleClickEvent(QMouseEvent*) () from /usr/lib64/qt4/libQt3Support.so.4
> #33 0x00007fe8c4f5ac26 in Q3ScrollView::eventFilter(QObject*, QEvent*) () from /usr/lib64/qt4/libQt3Support.so.4
> #34 0x00007fe8c4f09826 in Q3ListView::eventFilter(QObject*, QEvent*) () from /usr/lib64/qt4/libQt3Support.so.4
> #35 0x00007fe8c1afc8ca in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
> #36 0x00007fe8c0f55495 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
> #37 0x00007fe8c0f5cc3d in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
> #38 0x00007fe8c3ed7efc in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
> #39 0x00007fe8c1afd26e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
> #40 0x00007fe8c0f5ae22 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/qt4/libQtGui.so.4
> #41 0x00007fe8c0fd18dd in ?? () from /usr/lib64/qt4/libQtGui.so.4
> #42 0x00007fe8c0fd0835 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/qt4/libQtGui.so.4
> #43 0x00007fe8c0ff6b2a in ?? () from /usr/lib64/qt4/libQtGui.so.4
> #44 0x00007fe8bf68d053 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
> #45 0x00007fe8bf69014c in ?? () from /usr/lib/libglib-2.0.so.0
> #46 0x00007fe8bf6902ce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
> #47 0x00007fe8c1b22bf4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
> #48 0x00007fe8c0ff6746 in ?? () from /usr/lib64/qt4/libQtGui.so.4
> #49 0x00007fe8c1afbf44 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
> #50 0x00007fe8c1afc28f in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
> #51 0x00007fe8c1afe25e in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
> #52 0x00000000004626b8 in main (argc=1, argv=0x7fffb57f1f68) at /usr/src/debug/app-office/kmymoney-3.97.1/kmymoney-3.97.1/kmymoney/main.cpp:277


More information about the KMyMoney-devel mailing list