https://bugs.kde.org/show_bug.cgi?id=412193

--- Comment #2 from Szőts Ákos <szots...@gmail.com> ---
Also can be reproduced with a different path:

- Show all stocks/bonds in the Accounts panel (Settings > Filter)
- Right click on a bond and choose "Close Account"
- KMyMoney crashes

Application: KMyMoney (kmymoney), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
29        return SYSCALL_CANCEL (poll, fds, nfds, timeout);
[Current thread is 1 (Thread 0x7efbef615140 (LWP 7908))]

Thread 4 (Thread 0x7efbdb7a3700 (LWP 7913)):
#0  __GI___libc_read (nbytes=10, buf=0x7efbdb7a299e, fd=23) at
../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=23, buf=0x7efbdb7a299e, nbytes=10) at
../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007efbe40f5f71 in pa_read () from
/usr/lib64/pulseaudio/libpulsecommon-12.2.so
#3  0x00007efbe417947e in pa_mainloop_prepare () from /usr/lib64/libpulse.so.0
#4  0x00007efbe4179f30 in pa_mainloop_iterate () from /usr/lib64/libpulse.so.0
#5  0x00007efbe4179ff0 in pa_mainloop_run () from /usr/lib64/libpulse.so.0
#6  0x00007efbe4188039 in ?? () from /usr/lib64/libpulse.so.0
#7  0x00007efbe4124db8 in ?? () from
/usr/lib64/pulseaudio/libpulsecommon-12.2.so
#8  0x00007efbfccd7faa in start_thread (arg=<optimized out>) at
pthread_create.c:486
#9  0x00007efbff5e173f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7efbe6127700 (LWP 7910)):
#0  __GI___libc_read (nbytes=16, buf=0x7efbe6126920, fd=19) at
../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=19, buf=0x7efbe6126920, nbytes=16) at
../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007efbf376170f in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007efbf37adc8e in g_main_context_check () from
/usr/lib64/libglib-2.0.so.0
#4  0x00007efbf37af342 in ?? () from /usr/lib64/libglib-2.0.so.0
#5  0x00007efbf37af46f in g_main_context_iteration () from
/usr/lib64/libglib-2.0.so.0
#6  0x00007efbfd61799b in QEventDispatcherGlib::processEvents
(this=0x7efbe0000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007efbfd5c00db in QEventLoop::exec (this=this@entry=0x7efbe6126b30,
flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:140
#8  0x00007efbfd3f8021 in QThread::exec (this=<optimized out>) at
../../include/QtCore/../../src/corelib/global/qflags.h:120
#9  0x00007efbfd8a04f6 in ?? () from /usr/lib64/libQt5DBus.so.5
#10 0x00007efbfd3f91a2 in QThreadPrivate::start (arg=0x7efbfd922d80) at
thread/qthread_unix.cpp:360
#11 0x00007efbfccd7faa in start_thread (arg=<optimized out>) at
pthread_create.c:486
#12 0x00007efbff5e173f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7efbed63c700 (LWP 7909)):
#0  0x00007efbff5d6cbf in __GI___poll (fds=0x7efbed63ba68, nfds=1, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007efbf3156742 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007efbf31573fa in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007efbed7b6f90 in QXcbEventQueue::run (this=0x56555796b6e0) at
qxcbeventqueue.cpp:228
#4  0x00007efbfd3f91a2 in QThreadPrivate::start (arg=0x56555796b6e0) at
thread/qthread_unix.cpp:360
#5  0x00007efbfccd7faa in start_thread (arg=<optimized out>) at
pthread_create.c:486
#6  0x00007efbff5e173f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7efbef615140 (LWP 7908)):
[KCrash Handler]
#5  InstitutionsModel::slotObjectModified (this=0x565558161680,
objType=<optimized out>, id=...) at
/usr/src/debug/kmymoney-5.0.6-1.2.x86_64/kmymoney/models/accountsmodel.cpp:1217
#6  0x00007efbfd5ec638 in QtPrivate::QSlotObjectBase::call (a=0x7ffbffff8720,
r=0x565558161680, this=0x565559bca710) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#7  QMetaObject::activate (sender=0x7efbff182e10 <MyMoneyFile::file>,
signalOffset=<optimized out>, local_signal_index=<optimized out>,
argv=<optimized out>) at kernel/qobject.cpp:3789
#8  0x00007efbff13a486 in MyMoneyFile::objectModified
(this=this@entry=0x7efbff182e10 <MyMoneyFile::file>, _t1=<optimized out>,
_t2=...) at
/usr/src/debug/kmymoney-5.0.6-1.2.x86_64/build/kmymoney/mymoney/kmm_mymoney_autogen/EWIEGA46WW/moc_mymoneyfile.cpp:250
#9  0x00007efbff1405c2 in MyMoneyFile::commitTransaction (this=0x7efbff182e10
<MyMoneyFile::file>) at
/usr/src/debug/kmymoney-5.0.6-1.2.x86_64/kmymoney/mymoney/mymoneyfile.cpp:430
#10 0x00007efbff12136d in MyMoneyFileTransaction::commit
(this=this@entry=0x7ffbffff87f0) at
/usr/src/debug/kmymoney-5.0.6-1.2.x86_64/kmymoney/mymoney/mymoneyfile.cpp:3572
#11 0x00005655557f9776 in KAccountsView::slotCloseAccount (this=0x5655581832a0)
at
/usr/src/debug/kmymoney-5.0.6-1.2.x86_64/kmymoney/views/kaccountsview.cpp:359
#12 0x00007efbfd5ec638 in QtPrivate::QSlotObjectBase::call (a=0x7ffbffff8960,
r=0x5655581832a0, this=0x56555818cd20) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#13 QMetaObject::activate (sender=0x565558117ba0, signalOffset=<optimized out>,
local_signal_index=<optimized out>, argv=<optimized out>) at
kernel/qobject.cpp:3789
#14 0x00007efbfe447852 in QAction::triggered (this=this@entry=0x565558117ba0,
_t1=<optimized out>) at .moc/moc_qaction.cpp:381
#15 0x00007efbfe449f22 in QAction::activate (this=0x565558117ba0,
event=<optimized out>) at kernel/qaction.cpp:1166
#16 0x00007efbfe5cde72 in QMenuPrivate::activateCausedStack
(this=this@entry=0x56555814d040, causedStack=...,
action=action@entry=0x565558117ba0, action_e=action_e@entry=QAction::Trigger,
self=self@entry=true) at widgets/qmenu.cpp:1353
#17 0x00007efbfe5d54ea in QMenuPrivate::activateAction
(this=this@entry=0x56555814d040, action=action@entry=0x565558117ba0,
action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at
widgets/qmenu.cpp:1430
#18 0x00007efbfe5d6512 in QMenu::mouseReleaseEvent (this=0x56555815bc80,
e=0x7ffbffff9040) at widgets/qmenu.cpp:2907
#19 0x00007efbfe4900b6 in QWidget::event (this=this@entry=0x56555815bc80,
event=event@entry=0x7ffbffff9040) at kernel/qwidget.cpp:8977
#20 0x00007efbfe5d8af3 in QMenu::event (this=0x56555815bc80, e=0x7ffbffff9040)
at widgets/qmenu.cpp:3029
#21 0x00007efbfe44dc62 in QApplicationPrivate::notify_helper
(this=this@entry=0x565557949770, receiver=receiver@entry=0x56555815bc80,
e=e@entry=0x7ffbffff9040) at kernel/qapplication.cpp:3703
#22 0x00007efbfe457433 in QApplication::notify (this=<optimized out>,
receiver=0x56555815bc80, e=0x7ffbffff9040) at kernel/qapplication.cpp:3163
#23 0x00007efbfd5c1572 in QCoreApplication::notifyInternal2
(receiver=0x56555815bc80, event=0x7ffbffff9040) at
../../include/QtCore/../../src/corelib/kernel/qobject.h:143
#24 0x00007efbfe456543 in QApplicationPrivate::sendMouseEvent
(receiver=0x56555815bc80, event=event@entry=0x7ffbffff9040, alienWidget=0x0,
nativeWidget=0x56555815bc80, buttonDown=buttonDown@entry=0x7efbfe9778d0
<qt_button_down>, lastMouseReceiver=..., spontaneous=true,
onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2649
#25 0x00007efbfe4ac444 in QWidgetWindow::handleMouseEvent (this=0x565557ed4df0,
event=0x7ffbffff94c0) at /usr/include/c++/9/bits/atomic_base.h:413
#26 0x00007efbfe4aeb14 in QWidgetWindow::event (event=0x7ffbffff94c0,
this=0x565557ed4df0) at kernel/qwidgetwindow.cpp:280
#27 QWidgetWindow::event (this=0x565557ed4df0, event=0x7ffbffff94c0) at
kernel/qwidgetwindow.cpp:224
#28 0x00007efbfe44dc62 in QApplicationPrivate::notify_helper
(this=this@entry=0x565557949770, receiver=receiver@entry=0x565557ed4df0,
e=e@entry=0x7ffbffff94c0) at kernel/qapplication.cpp:3703
#29 0x00007efbfe4571e0 in QApplication::notify (this=0x7ffbffffadf0,
receiver=0x565557ed4df0, e=0x7ffbffff94c0) at kernel/qapplication.cpp:3449
#30 0x00007efbfd5c1572 in QCoreApplication::notifyInternal2
(receiver=0x565557ed4df0, event=0x7ffbffff94c0) at
../../include/QtCore/../../src/corelib/kernel/qobject.h:143
#31 0x00007efbfde1ba18 in QGuiApplicationPrivate::processMouseEvent
(e=e@entry=0x56555c305d70) at kernel/qguiapplication.cpp:2111
#32 0x00007efbfde1d28b in QGuiApplicationPrivate::processWindowSystemEvent
(e=e@entry=0x56555c305d70) at kernel/qguiapplication.cpp:1846
#33 0x00007efbfddf825b in QWindowSystemInterface::sendWindowSystemEvents
(flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1148
#34 0x00007efbed7b7f4a in xcbSourceDispatch (source=<optimized out>) at
qxcbeventdispatcher.cpp:105
#35 0x00007efbf37ad683 in g_main_context_dispatch () from
/usr/lib64/libglib-2.0.so.0
#36 0x00007efbf37af430 in ?? () from /usr/lib64/libglib-2.0.so.0
#37 0x00007efbf37af46f in g_main_context_iteration () from
/usr/lib64/libglib-2.0.so.0
#38 0x00007efbfd617981 in QEventDispatcherGlib::processEvents
(this=0x565557a12f50, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#39 0x00007efbfd5c00db in QEventLoop::exec (this=this@entry=0x7ffbffff9860,
flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:140
#40 0x00007efbfe5d314d in QMenu::exec (this=this@entry=0x56555815bc80, p=...,
action=action@entry=0x0) at
../../include/QtCore/../../src/corelib/global/qflags.h:120
#41 0x0000565555657c11 in
KInvestmentView::slotShowInvestmentMenu(MyMoneyAccount const&) [clone
.constprop.0] (acc=..., this=<optimized out>) at
/usr/src/debug/kmymoney-5.0.6-1.2.x86_64/kmymoney/views/kinvestmentview.cpp:250
#42 0x00005655557a3429 in KMyMoneyView::slotContextMenuRequested
(this=0x5655580dac60, obj=...) at
/usr/src/debug/kmymoney-5.0.6-1.2.x86_64/kmymoney/views/kmymoneyview.cpp:857
#43 0x00005655557ab9b5 in KMyMoneyView::slotSelectByObject (this=<optimized
out>, obj=..., intent=<optimized out>) at
/usr/src/debug/kmymoney-5.0.6-1.2.x86_64/kmymoney/views/kmymoneyview.cpp:724
#44 0x00007efbfd5ec638 in QtPrivate::QSlotObjectBase::call (a=0x7ffbffff9a50,
r=0x5655580dac60, this=0x5655581741d0) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#45 QMetaObject::activate (sender=0x5655581832a0, signalOffset=<optimized out>,
local_signal_index=<optimized out>, argv=<optimized out>) at
kernel/qobject.cpp:3789
#46 0x00007efbff4b5813 in KMyMoneyViewBase::selectByObject (this=<optimized
out>, _t1=..., _t2=<optimized out>) at
/usr/src/debug/kmymoney-5.0.6-1.2.x86_64/build/kmymoney/widgets/kmm_widgets_autogen/EWIEGA46WW/moc_kmymoneyviewbase.cpp:172
#47 0x00007efbfd5ec638 in QtPrivate::QSlotObjectBase::call (a=0x7ffbffff9b80,
r=0x5655581832a0, this=0x565559bc78a0) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#48 QMetaObject::activate (sender=0x5655581cb030, signalOffset=<optimized out>,
local_signal_index=<optimized out>, argv=<optimized out>) at
kernel/qobject.cpp:3789
#49 0x00007efbff4b5d43 in KMyMoneyAccountTreeView::selectByObject
(this=<optimized out>, _t1=..., _t2=<optimized out>) at
/usr/src/debug/kmymoney-5.0.6-1.2.x86_64/build/kmymoney/widgets/kmm_widgets_autogen/EWIEGA46WW/moc_kmymoneyaccounttreeview.cpp:183
#50 0x00007efbff48b31b in KMyMoneyAccountTreeView::customContextMenuRequested
(this=0x5655581cb030) at /usr/include/qt5/QtCore/qvariant.h:863
#51 0x00007efbfd5ec638 in QtPrivate::QSlotObjectBase::call (a=0x7ffbffff9d80,
r=0x5655581cb030, this=0x5655581b7000) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#52 QMetaObject::activate (sender=0x5655581cb030, signalOffset=<optimized out>,
local_signal_index=<optimized out>, argv=<optimized out>) at
kernel/qobject.cpp:3789
#53 0x00007efbfe476495 in QWidget::customContextMenuRequested
(this=this@entry=0x5655581cb030, _t1=...) at .moc/moc_qwidget.cpp:663
#54 0x00007efbfe490d5e in QWidget::event (this=this@entry=0x5655581cb030,
event=event@entry=0x7ffbffffa3c0) at
../../include/QtGui/../../src/gui/kernel/qevent.h:527
#55 0x00007efbfe53de6e in QFrame::event (this=0x5655581cb030, e=0x7ffbffffa3c0)
at widgets/qframe.cpp:550
#56 0x00007efbfe6bc74e in QAbstractItemView::viewportEvent
(this=this@entry=0x5655581cb030, event=event@entry=0x7ffbffffa3c0) at
itemviews/qabstractitemview.cpp:1753
#57 0x00007efbfe72bfab in QTreeView::viewportEvent (this=0x5655581cb030,
event=0x7ffbffffa3c0) at itemviews/qtreeview.cpp:1311
#58 0x00007efbfd5c1283 in
QCoreApplicationPrivate::sendThroughObjectEventFilters (event=<optimized out>,
receiver=<optimized out>) at kernel/qcoreapplication.cpp:1221
#59 QCoreApplicationPrivate::sendThroughObjectEventFilters
(receiver=receiver@entry=0x5655581c9010, event=event@entry=0x7ffbffffa3c0) at
kernel/qcoreapplication.cpp:1210
#60 0x00007efbfe44dc51 in QApplicationPrivate::notify_helper
(this=this@entry=0x565557949770, receiver=receiver@entry=0x5655581c9010,
e=e@entry=0x7ffbffffa3c0) at kernel/qapplication.cpp:3697
#61 0x00007efbfe45804b in QApplication::notify (this=<optimized out>,
receiver=0x5655581c9010, e=0x7ffbffffa3c0) at kernel/qapplication.cpp:3309
#62 0x00007efbfd5c1572 in QCoreApplication::notifyInternal2
(receiver=0x5655581c9010, event=0x7ffbffffa3c0) at
../../include/QtCore/../../src/corelib/kernel/qobject.h:143
#63 0x00007efbfe4ac0aa in QWidgetWindow::handleMouseEvent (this=0x565557ec7fd0,
event=0x7ffbffffa880) at kernel/qwidgetwindow.cpp:669
#64 0x00007efbfe4aeb14 in QWidgetWindow::event (event=0x7ffbffffa880,
this=0x565557ec7fd0) at kernel/qwidgetwindow.cpp:280
#65 QWidgetWindow::event (this=0x565557ec7fd0, event=0x7ffbffffa880) at
kernel/qwidgetwindow.cpp:224
#66 0x00007efbfe44dc62 in QApplicationPrivate::notify_helper
(this=this@entry=0x565557949770, receiver=receiver@entry=0x565557ec7fd0,
e=e@entry=0x7ffbffffa880) at kernel/qapplication.cpp:3703
#67 0x00007efbfe4571e0 in QApplication::notify (this=0x7ffbffffadf0,
receiver=0x565557ec7fd0, e=0x7ffbffffa880) at kernel/qapplication.cpp:3449
#68 0x00007efbfd5c1572 in QCoreApplication::notifyInternal2
(receiver=0x565557ec7fd0, event=0x7ffbffffa880) at
../../include/QtCore/../../src/corelib/kernel/qobject.h:143
#69 0x00007efbfde1ba18 in QGuiApplicationPrivate::processMouseEvent
(e=e@entry=0x56555c30b6b0) at kernel/qguiapplication.cpp:2111
#70 0x00007efbfde1d28b in QGuiApplicationPrivate::processWindowSystemEvent
(e=e@entry=0x56555c30b6b0) at kernel/qguiapplication.cpp:1846
#71 0x00007efbfddf825b in QWindowSystemInterface::sendWindowSystemEvents
(flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1148
#72 0x00007efbed7b7f4a in xcbSourceDispatch (source=<optimized out>) at
qxcbeventdispatcher.cpp:105
#73 0x00007efbf37ad683 in g_main_context_dispatch () from
/usr/lib64/libglib-2.0.so.0
#74 0x00007efbf37af430 in ?? () from /usr/lib64/libglib-2.0.so.0
#75 0x00007efbf37af46f in g_main_context_iteration () from
/usr/lib64/libglib-2.0.so.0
#76 0x00007efbfd617981 in QEventDispatcherGlib::processEvents
(this=0x565557a12f50, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#77 0x00007efbfd5c00db in QEventLoop::exec (this=this@entry=0x7ffbffffac20,
flags=..., flags@entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:140
#78 0x00007efbfd5c7d42 in QCoreApplication::exec () at
../../include/QtCore/../../src/corelib/global/qflags.h:120
#79 0x00007efbfde10d5c in QGuiApplication::exec () at
kernel/qguiapplication.cpp:1788
#80 0x00007efbfe44dbd5 in QApplication::exec () at kernel/qapplication.cpp:2859
#81 0x0000565555645a05 in runKMyMoney(QApplication&,
std::unique_ptr<QSplashScreen, std::default_delete<QSplashScreen> >, QUrl
const&, bool) [clone .constprop.0] (splash=std::unique_ptr<class QSplashScreen>
= {...}, file=..., noFile=<optimized out>, a=...) at
/usr/src/debug/kmymoney-5.0.6-1.2.x86_64/kmymoney/main.cpp:349
#82 0x000056555563787f in main (argc=<optimized out>, argv=<optimized out>) at
/usr/include/c++/9/bits/move.h:74
[Inferior 1 (process 7908) detached]

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to