Bug 262120 - saving a recently imported gnucash dataset
Summary: saving a recently imported gnucash dataset
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 4.5.2
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-04 21:26 UTC by Jaime Torres
Modified: 2011-05-28 23:17 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 Jaime Torres 2011-01-04 21:26:10 UTC
Application: kmymoney (4.5.2)
KDE Platform Version: 4.6.40 (4.7 >= 20101222) (Compiled from sources)
Qt Version: 4.7.2
Operating System: Linux 2.6.36.2optimum x86_64
Distribution (Platform): openSUSE RPMs

-- Information about the crash:
- What I was doing when the application crashed:

I just imported a gnucash dataset, played with the application and pressed the Save button.
kmymoney from 4.5.2 tarball.

The crash can be reproduced every time.

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Aborted
[Current thread is 1 (Thread 0x7f090f169760 (LWP 22661))]

Thread 2 (Thread 0x7f08f7771700 (LWP 22676)):
#0  0x00007fff5c9ff851 in clock_gettime ()
#1  0x00007f09030fe2b3 in clock_gettime () from /lib64/librt.so.1
#2  0x00007f090b355182 in do_gettime () at /g/kde4svn/qt/src/corelib/tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at /g/kde4svn/qt/src/corelib/tools/qelapsedtimer_unix.cpp:140
#4  0x00007f090b4169bd in QTimerInfoList::updateCurrentTime (this=0x2438060) at /g/kde4svn/qt/src/corelib/kernel/qeventdispatcher_unix.cpp:339
#5  0x00007f090b416d25 in QTimerInfoList::timerWait (this=0x2438060, tm=...) at /g/kde4svn/qt/src/corelib/kernel/qeventdispatcher_unix.cpp:442
#6  0x00007f090b4157ec in timerSourcePrepareHelper (src=<value optimized out>, timeout=0x7f08f7770c5c) at /g/kde4svn/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f090b41588d in timerSourcePrepare (source=<value optimized out>, timeout=<value optimized out>) at /g/kde4svn/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f0902e51787 in g_main_context_prepare () from /lib64/libglib-2.0.so.0
#9  0x00007f0902e52689 in ?? () from /lib64/libglib-2.0.so.0
#10 0x00007f0902e52d30 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#11 0x00007f090b415fe6 in QEventDispatcherGlib::QEventDispatcherGlib::processEvents (this=0x1ef2420, flags=<value optimized out>) at /g/kde4svn/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:424
#12 0x00007f090b3eaca2 in QEventLoop::QEventLoop::processEvents (this=<value optimized out>, flags=...) at /g/kde4svn/qt/src/corelib/kernel/qeventloop.cpp:149
#13 0x00007f090b3eaee4 in QEventLoop::QEventLoop::exec (this=0x7f08f7770de0, flags=...) at /g/kde4svn/qt/src/corelib/kernel/qeventloop.cpp:201
#14 0x00007f090b30212c in QThread::exec (this=<value optimized out>) at /g/kde4svn/qt/src/corelib/thread/qthread.cpp:492
#15 0x00007f090b3ccbb8 in QInotifyFileSystemWatcherEngine::QInotifyFileSystemWatcherEngine::run (this=0x25afdb0) at /g/kde4svn/qt/src/corelib/io/qfilesystemwatcher_inotify.cpp:248
#16 0x00007f090b304905 in QThreadPrivate::QThreadPrivate::start (arg=0x25afdb0) at /g/kde4svn/qt/src/corelib/thread/qthread_unix.cpp:320
#17 0x00007f09093aea4f in start_thread () from /lib64/libpthread.so.0
#18 0x00007f09098f252d in clone () from /lib64/libc.so.6
#19 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f090f169760 (LWP 22661)):
[KCrash Handler]
#6  0x00007f0909851ad5 in raise () from /lib64/libc.so.6
#7  0x00007f0909852fd6 in abort () from /lib64/libc.so.6
#8  0x00007f090b2fb327 in qt_message_output (msgType=<value optimized out>, buf=<value optimized out>) at /g/kde4svn/qt/src/corelib/global/qglobal.cpp:2282
#9  0x00007f090b2fb4bd in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f090b449728 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff5c9f8070) at /g/kde4svn/qt/src/corelib/global/qglobal.cpp:2328
#10 0x00007f090b2fb655 in qFatal (msg=<value optimized out>) at /g/kde4svn/qt/src/corelib/global/qglobal.cpp:2511
#11 0x000000000048f320 in QString::at (this=0x7fff5c9f86a0, i=0) at /usr/lib/qt4.5/include/QtCore/qstring.h:702
#12 0x000000000047660f in KMyMoneyApp::slotFileSaveAs (this=0x1af5f00) at /g/build/kmymoney-4.5.2/kmymoney/kmymoney.cpp:1646
#13 0x0000000000477955 in KMyMoneyApp::slotFileSave (this=0x1af5f00) at /g/build/kmymoney-4.5.2/kmymoney/kmymoney.cpp:1545
#14 0x000000000048e87d in KMyMoneyApp::qt_metacall (this=0x1af5f00, _c=QMetaObject::InvokeMetaMethod, _id=113, _a=0x7fff5c9f8de0) at /g/build/kmymoney-4.5.2/build/kmymoney/kmymoney.moc:516
#15 0x00007f090b400917 in QMetaObject::activate (sender=0x1c36760, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff5c9f8de0) at /g/kde4svn/qt/src/corelib/kernel/qobject.cpp:3278
#16 0x00007f090a5025a2 in QAction::triggered (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#17 0x00007f090a502793 in QAction::activate (this=0x1c36760, event=<value optimized out>) at /g/kde4svn/qt/src/gui/kernel/qaction.cpp:1257
#18 0x00007f090a8d2eba in QAbstractButtonPrivate::click (this=0x175f8c0) at /g/kde4svn/qt/src/gui/widgets/qabstractbutton.cpp:528
#19 0x00007f090a8d315c in QAbstractButton::QAbstractButton::mouseReleaseEvent (this=0x1af2f00, e=0x7fff5c9f9910) at /g/kde4svn/qt/src/gui/widgets/qabstractbutton.cpp:1121
#20 0x00007f090a98dcea in QToolButton::mouseReleaseEvent (this=<value optimized out>, e=<value optimized out>) at /g/kde4svn/qt/src/gui/widgets/qtoolbutton.cpp:721
#21 0x00007f090a559703 in QWidget::event (this=0x1af2f00, event=0x7fff5c9f9910) at /g/kde4svn/qt/src/gui/kernel/qwidget.cpp:8255
#22 0x00007f090a508ad4 in QApplicationPrivate::notify_helper (this=0x168d380, receiver=0x1af2f00, e=0x7fff5c9f9910) at /g/kde4svn/qt/src/gui/kernel/qapplication.cpp:4462
#23 0x00007f090a50dcf3 in QApplication::notify (this=<value optimized out>, receiver=0x1af2f00, e=0x7fff5c9f9910) at /g/kde4svn/qt/src/gui/kernel/qapplication.cpp:4023
#24 0x00007f090d3f2eb6 in KApplication::notify (this=0x16a23e0, receiver=0x1af2f00, event=0x7fff5c9f9910) at /g/kde4svn/kdelibs/kdeui/kernel/kapplication.cpp:311
#25 0x00007f090b3eb883 in QCoreApplication::QCoreApplication::notifyInternal (this=0x16a23e0, receiver=0x1af2f00, event=0x7fff5c9f9910) at /g/kde4svn/qt/src/corelib/kernel/qcoreapplication.cpp:731
#26 0x00007f090a509a96 in QCoreApplication::sendEvent (receiver=0x1af2f00, event=0x7fff5c9f9910, alienWidget=0x1af2f00, nativeWidget=0x1c06f60, buttonDown=0x7f090aff95c0, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../../../kde4svn/qt/src/corelib/kernel/qcoreapplication.h:215
#27 QApplicationPrivate::sendMouseEvent (receiver=0x1af2f00, event=0x7fff5c9f9910, alienWidget=0x1af2f00, nativeWidget=0x1c06f60, buttonDown=0x7f090aff95c0, lastMouseReceiver=..., spontaneous=true) at /g/kde4svn/qt/src/gui/kernel/qapplication.cpp:3122
#28 0x00007f090a587620 in QETWidget::QETWidget::translateMouseEvent (this=0x1c06f60, event=<value optimized out>) at /g/kde4svn/qt/src/gui/kernel/qapplication_x11.cpp:4461
#29 0x00007f090a585d09 in QApplication::QApplication::x11ProcessEvent (this=0x16a23e0, event=0x7fff5c9fa0e0) at /g/kde4svn/qt/src/gui/kernel/qapplication_x11.cpp:3587
#30 0x00007f090a5ace3a in x11EventSourceDispatch (s=0x16af380, callback=0, user_data=0x0) at /g/kde4svn/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:146
#31 0x00007f0902e522b3 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#32 0x00007f0902e52a90 in ?? () from /lib64/libglib-2.0.so.0
#33 0x00007f0902e52d30 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#34 0x00007f090b415f8f in QEventDispatcherGlib::QEventDispatcherGlib::processEvents (this=0x168b180, flags=<value optimized out>) at /g/kde4svn/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:422
#35 0x00007f090a5acaee in QGuiEventDispatcherGlib::QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at /g/kde4svn/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007f090b3eaca2 in QEventLoop::QEventLoop::processEvents (this=<value optimized out>, flags=...) at /g/kde4svn/qt/src/corelib/kernel/qeventloop.cpp:149
#37 0x00007f090b3eaee4 in QEventLoop::QEventLoop::exec (this=0x7fff5c9fa3e0, flags=...) at /g/kde4svn/qt/src/corelib/kernel/qeventloop.cpp:201
#38 0x00007f090b3ef293 in QCoreApplication::QCoreApplication::exec () at /g/kde4svn/qt/src/corelib/kernel/qcoreapplication.cpp:1008
#39 0x000000000045b4a2 in main (argc=1, argv=0x7fff5c9fb048) at /g/build/kmymoney-4.5.2/kmymoney/main.cpp:260

Reported using DrKonqi
Comment 1 Cristian Oneț 2011-05-28 23:17:45 UTC
SVN commit 1233943 by conet:

BUG: 262120
The code copied from KFileDialog::getSaveFileName needed an update to avoid a crash when prevDir was empty.

 M  +1 -1      kmymoney.cpp  


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