Bug 377931

Summary: Crash during saving data
Product: [Applications] kmymoney Reporter: Roman <ron_k>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED WORKSFORME    
Severity: crash CC: lukasz.wojnilowicz
Priority: NOR Keywords: drkonqi
Version: 4.8.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Roman 2017-03-22 14:53:09 UTC
Application: kmymoney (4.8.0)
KDE Platform Version: 4.14.9
Qt Version: 4.8.6
Operating System: Linux 3.16.7-53-desktop x86_64
Distribution: "openSUSE 13.2 (Harlequin) (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
I creation new raport using context menu on existed raport. Raport was modificated. Next I tried save data. Program crashed and lost all data.

The crash can be reproduced every time.

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash Handler]
#5  0x00007faa298bcf6f in QString::operator=(QString const&) () at /usr/lib64/libQtCore.so.4
#6  0x00007faa2ae7ee53 in  () at /usr/lib64/libQtXml.so.4
#7  0x00007faa2ae84b65 in  () at /usr/lib64/libQtXml.so.4
#8  0x00007faa2df3befc in MyMoneyReport::write(QDomElement&, QDomDocument*, bool) const (this=this@entry=0xcced8a0, e=..., doc=doc@entry=0x38abf70, anonymous=anonymous@entry=false) at /usr/src/debug/kmymoney-4.8.0/kmymoney/mymoney/mymoneyreport.cpp:370
#9  0x00007faa2df3cc20 in MyMoneyReport::writeXML(QDomDocument&, QDomElement&) const (this=0xcced8a0, document=..., parent=...) at /usr/src/debug/kmymoney-4.8.0/kmymoney/mymoney/mymoneyreport.cpp:774
#10 0x00000000007b1119 in MyMoneyStorageXML::writeReports(QDomElement&) (this=0x3416e40, parent=...) at /usr/src/debug/kmymoney-4.8.0/kmymoney/mymoney/storage/mymoneystoragexml.cpp:822
#11 0x00000000007b2ed0 in MyMoneyStorageXML::writeFile(QIODevice*, IMyMoneySerialize*) (this=0x3416e40, qf=0x2de8910, storage=<optimized out>) at /usr/src/debug/kmymoney-4.8.0/kmymoney/mymoney/storage/mymoneystoragexml.cpp:542
#12 0x00000000004c49f1 in KMyMoneyView::saveToLocalFile(QString const&, IMyMoneyStorageFormat*, bool, QString const&) (this=this@entry=0x2c85030, localFile=..., pWriter=pWriter@entry=0x3416e40, plaintext=plaintext@entry=false, keyList=...) at /usr/src/debug/kmymoney-4.8.0/kmymoney/views/kmymoneyview.cpp:1213
#13 0x00000000004c59c4 in KMyMoneyView::saveFile(KUrl const&, QString const&) (this=0x2c85030, url=..., keyList=...) at /usr/src/debug/kmymoney-4.8.0/kmymoney/views/kmymoneyview.cpp:1270
#14 0x0000000000498384 in KMyMoneyApp::slotFileSave() (this=0x2ce4420) at /usr/src/debug/kmymoney-4.8.0/kmymoney/kmymoney.cpp:1688
#15 0x00000000004b4ed8 in KMyMoneyApp::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x2ce4420, _c=42862792, _id=215723521, _a=0x7fff1abdce01) at /usr/src/debug/kmymoney-4.8.0/build/kmymoney/moc_kmymoney.cpp:550
#16 0x00007faa2998a1fa in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib64/libQtCore.so.4
#17 0x00007faa2a37e622 in QAction::triggered(bool) () at /usr/lib64/libQtGui.so.4
#18 0x00007faa2a37ffd3 in QAction::activate(QAction::ActionEvent) () at /usr/lib64/libQtGui.so.4
#19 0x00007faa2a732102 in  () at /usr/lib64/libQtGui.so.4
#20 0x00007faa2a73222c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib64/libQtGui.so.4
#21 0x00007faa2a7e915a in QToolButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib64/libQtGui.so.4
#22 0x00007faa2a3d3c0a in QWidget::event(QEvent*) () at /usr/lib64/libQtGui.so.4
#23 0x00007faa2a38476c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#24 0x00007faa2a38adea in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#25 0x00007faa2c92ae0a in KApplication::notify(QObject*, QEvent*) () at /usr/lib64/libkdeui.so.5
#26 0x00007faa299762ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQtCore.so.4
#27 0x00007faa2a38a5e3 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib64/libQtGui.so.4
#28 0x00007faa2a3fbc9b in  () at /usr/lib64/libQtGui.so.4
#29 0x00007faa2a3fa70c in QApplication::x11ProcessEvent(_XEvent*) () at /usr/lib64/libQtGui.so.4
#30 0x00007faa2a4215c2 in  () at /usr/lib64/libQtGui.so.4
#31 0x00007faa23b1fa04 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#32 0x00007faa23b1fc48 in  () at /usr/lib64/libglib-2.0.so.0
#33 0x00007faa23b1fcec in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#34 0x00007faa299a30be in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#35 0x00007faa2a421676 in  () at /usr/lib64/libQtGui.so.4
#36 0x00007faa29974e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#37 0x00007faa29975165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#38 0x00007faa2997a5b9 in QCoreApplication::exec() () at /usr/lib64/libQtCore.so.4
#39 0x0000000000465b9a in runKMyMoney(KStartupLogo*, KApplication*) (splash=splash@entry=0x2a9e290, a=0x28b2760) at /usr/src/debug/kmymoney-4.8.0/kmymoney/main.cpp:283
#40 0x00000000004636cc in main(int, char**) (argc=1, argv=0x7fff1abdf1d8) at /usr/src/debug/kmymoney-4.8.0/kmymoney/main.cpp:182

Reported using DrKonqi
Comment 1 wojnilowicz 2017-07-02 08:41:28 UTC
The problem is in MyMoneyReport::write. That has changed considerably in 5.0. Please retest and reopen if still valid.

It would be also helpful what report you created and what were its settings.