Bug 400681 - kwalletmanager crashes when selecting "Delete"
Summary: kwalletmanager crashes when selecting "Delete"
Status: RESOLVED DUPLICATE of bug 373964
Alias: None
Product: kwalletmanager
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-11-04 20:19 UTC by Flavio Stanchina
Modified: 2018-11-06 09:06 UTC (History)
1 user (show)

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 Flavio Stanchina 2018-11-04 20:19:45 UTC
Application: kwalletmanager5 (16.08.3)

Qt Version: 5.7.1
Frameworks Version: 5.28.0
Operating System: Linux 4.9.0-8-amd64 x86_64
Distribution: Devuan GNU/Linux 2.0 (ascii)

-- Information about the crash:
kwalletmanager crashes when I select "Delete" from the menu, and there is no wallet to delete.

The crash can be reproduced every time.

-- Backtrace:
Application: Wallet Manager (kwalletmanager5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fdb9b1f9400 (LWP 1331))]

Thread 2 (Thread 0x7fdb7fdf5700 (LWP 1333)):
#0  0x00007fdb96c9967d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fdb90f829f6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fdb90f82b0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fdb975ae06b in QEventDispatcherGlib::processEvents (this=0x7fdb780008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fdb975579ca in QEventLoop::exec (this=this@entry=0x7fdb7fdf4c10, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007fdb973850f3 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507
#6  0x00007fdb9b3036d5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fdb97389da8 in QThreadPrivate::start (arg=0x7fdb9b378d60) at thread/qthread_unix.cpp:368
#8  0x00007fdb933b3494 in start_thread (arg=0x7fdb7fdf5700) at pthread_create.c:333
#9  0x00007fdb96ca2acf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 1 (Thread 0x7fdb9b1f9400 (LWP 1331)):
[KCrash Handler]
#6  QString::QString (other=..., this=0x7ffefaa1c8f0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:900
#7  KWalletManager::deleteWallet (this=0x7ffefaa1da30) at ./src/manager/kwalletmanager.cpp:351
#8  0x00007fdb9758595e in QtPrivate::QSlotObjectBase::call (a=0x7ffefaa1cac0, r=0x7ffefaa1da30, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#9  QMetaObject::activate (sender=sender@entry=0x55e3612c2190, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffefaa1cac0) at kernel/qobject.cpp:3723
#10 0x00007fdb97585f07 in QMetaObject::activate (sender=sender@entry=0x55e3612c2190, m=m@entry=0x7fdb98315f60 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffefaa1cac0) at kernel/qobject.cpp:3602
#11 0x00007fdb97e361c2 in QAction::triggered (this=this@entry=0x55e3612c2190, _t1=<optimized out>) at .moc/moc_qaction.cpp:369
#12 0x00007fdb97e38bb0 in QAction::activate (this=0x55e3612c2190, event=<optimized out>) at kernel/qaction.cpp:1170
#13 0x00007fdb97fa81ca in QMenuPrivate::activateCausedStack (this=this@entry=0x55e361397fd0, causedStack=..., action=action@entry=0x55e3612c2190, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1140
#14 0x00007fdb97faf854 in QMenuPrivate::activateAction (this=this@entry=0x55e361397fd0, action=action@entry=0x55e3612c2190, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1217
#15 0x00007fdb97fb0826 in QMenu::mouseReleaseEvent (this=<optimized out>, e=0x7ffefaa1d110) at widgets/qmenu.cpp:2680
#16 0x00007fdb97e84278 in QWidget::event (this=this@entry=0x55e3613a1c00, event=event@entry=0x7ffefaa1d110) at kernel/qwidget.cpp:9161
#17 0x00007fdb97fb2b53 in QMenu::event (this=0x55e3613a1c00, e=0x7ffefaa1d110) at widgets/qmenu.cpp:2799
#18 0x00007fdb97e3cb8c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55e3613a1c00, e=0x7ffefaa1d110) at kernel/qapplication.cpp:3799
#19 0x00007fdb97e451fd in QApplication::notify (this=<optimized out>, receiver=0x55e3613a1c00, e=0x7ffefaa1d110) at kernel/qapplication.cpp:3273
#20 0x00007fdb975599e0 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x55e3613a1c00, event=event@entry=0x7ffefaa1d110) at kernel/qcoreapplication.cpp:988
#21 0x00007fdb97e438ad in QCoreApplication::sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#22 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x55e3613a1c00, event=event@entry=0x7ffefaa1d110, alienWidget=0x0, alienWidget@entry=0x55e3613a1c00, nativeWidget=0x55e3613a1c00, buttonDown=buttonDown@entry=0x7fdb98344cb0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2771
#23 0x00007fdb97e9ed16 in QWidgetWindow::handleMouseEvent (this=this@entry=0x55e36127a550, event=event@entry=0x7ffefaa1d530) at kernel/qwidgetwindow.cpp:511
#24 0x00007fdb97ea1313 in QWidgetWindow::event (this=0x55e36127a550, event=0x7ffefaa1d530) at kernel/qwidgetwindow.cpp:239
#25 0x00007fdb97e3cb8c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55e36127a550, e=0x7ffefaa1d530) at kernel/qapplication.cpp:3799
#26 0x00007fdb97e44341 in QApplication::notify (this=0x7ffefaa1d9e0, receiver=0x55e36127a550, e=0x7ffefaa1d530) at kernel/qapplication.cpp:3556
#27 0x00007fdb975599e0 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x55e36127a550, event=event@entry=0x7ffefaa1d530) at kernel/qcoreapplication.cpp:988
#28 0x00007fdb978a1b03 in QCoreApplication::sendSpontaneousEvent (event=0x7ffefaa1d530, receiver=0x55e36127a550) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#29 QGuiApplicationPrivate::processMouseEvent (e=0x55e36127b150) at kernel/qguiapplication.cpp:1903
#30 0x00007fdb978a3685 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x55e36127b150) at kernel/qguiapplication.cpp:1687
#31 0x00007fdb9788161b in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:659
#32 0x00007fdb8847e4c0 in userEventSourceDispatch (source=<optimized out>) at eventdispatchers/qeventdispatcher_glib.cpp:76
#33 0x00007fdb90f827f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007fdb90f82a60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007fdb90f82b0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007fdb975ae04f in QEventDispatcherGlib::processEvents (this=0x55e3611aa3c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#37 0x00007fdb975579ca in QEventLoop::exec (this=this@entry=0x7ffefaa1d8d0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#38 0x00007fdb9756013c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261
#39 0x000055e3608dcdea in main (argc=<optimized out>, argv=<optimized out>) at ./src/manager/main.cpp:110

Reported using DrKonqi
Comment 1 Nate Graham 2018-11-05 16:59:27 UTC
Sorry, we cannot support such old versions. You're running software that's more than two years old. See https://community.kde.org/Get_Involved/Bug_Reporting#Step_2:_Make_sure_it_hasn.27t_already_been_fixed

Please update if possible.
Comment 2 Flavio Stanchina 2018-11-05 17:31:12 UTC
That's what's available in Debian stretch; by the way, I upgraded that machine two days ago, it was still on jessie with KDE 4 because it's being used by people who don't like to be inflicted a different user experience every year. I don't even use Kwallet, I found the bug while trying to completely turn it off.

I may take a closer look if I have time, but I don't have KDE source code ready to build (much less an up-to-date working copy).
Comment 3 Nate Graham 2018-11-05 17:55:04 UTC
(In reply to Flavio Stanchina from comment #2)
> it was still on jessie with KDE 4 because it's being used by people who
> don't like to be inflicted a different user experience every year.
Well, such people can't expect support, then. :) That's the trade-off you make when you use old open-source software. This stuff moves fast.
Comment 4 Christoph Feck 2018-11-05 23:21:15 UTC
Yep, is already fixed in newer versions, see bug 373964. If you want to report it to your distribution to backport the crash fix, the commit is:
https://cgit.kde.org/kwalletmanager.git/commit/?id=a1f607094655f80c189dbda3c6017540a9316fde
Comment 5 Nate Graham 2018-11-05 23:30:42 UTC

*** This bug has been marked as a duplicate of bug 373964 ***
Comment 6 Flavio Stanchina 2018-11-06 09:06:26 UTC
Thanks, will do.