Bug 375114

Summary: Konversation crash after exiting
Product: [Applications] konversation Reporter: Daniel <kde>
Component: generalAssignee: Konversation Developers <konversation-devel>
Status: RESOLVED FIXED    
Severity: crash CC: hein, toralf.foerster
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Daniel 2017-01-15 21:09:13 UTC
Application: konversation (1.6-branch #4910)

Qt Version: 5.7.1
Frameworks Version: 5.29.0
Operating System: Linux 4.8.13-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
Normally quit: File - Exit
- Unusual behavior I noticed:
plasmashell crashed this evening and restartet itself.

System: arch with plasmashell --version
plasmashell 5.8.5

-- Backtrace:
Application: Konversation (konversation), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f2b06108c80 (LWP 1129))]

Thread 2 (Thread 0x7f2aeac3e700 (LWP 1131)):
#0  0x00007f2afee0648d in poll () at /usr/lib/libc.so.6
#1  0x00007f2af9585786 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007f2af958589c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007f2affa2d2db in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007f2aff9d6d3a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f2aff7f9063 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007f2affe3ede5 in  () at /usr/lib/libQt5DBus.so.5
#7  0x00007f2aff7fdcf8 in  () at /usr/lib/libQt5Core.so.5
#8  0x00007f2afd128454 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007f2afee0f7df in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f2b06108c80 (LWP 1129)):
[KCrash Handler]
#6  0x00007f2aff7fc1db in QThreadStorageData::get() const () at /usr/lib/libQt5Core.so.5
#7  0x00007f2b001e3afa in QOpenGLContext::currentContext() () at /usr/lib/libQt5Gui.so.5
#8  0x00007f2b0046a5a2 in QPlatformBackingStore::~QPlatformBackingStore() () at /usr/lib/libQt5Gui.so.5
#9  0x00007f2af296e719 in  () at /usr/lib/libQt5XcbQpa.so.5
#10 0x00007f2b0033ce0b in QBackingStore::~QBackingStore() () at /usr/lib/libQt5Gui.so.5
#11 0x00007f2b0096af08 in  () at /usr/lib/libQt5Widgets.so.5
#12 0x00007f2b009749b2 in QWidgetPrivate::deleteTLSysExtra() () at /usr/lib/libQt5Widgets.so.5
#13 0x00007f2b00979a30 in QWidget::destroy(bool, bool) () at /usr/lib/libQt5Widgets.so.5
#14 0x00007f2b00980327 in QWidget::~QWidget() () at /usr/lib/libQt5Widgets.so.5
#15 0x00007f2b00aad789 in QMenu::~QMenu() () at /usr/lib/libQt5Widgets.so.5
#16 0x00007f2affa02831 in QObjectPrivate::deleteChildren() () at /usr/lib/libQt5Core.so.5
#17 0x00007f2b0098030b in QWidget::~QWidget() () at /usr/lib/libQt5Widgets.so.5
#18 0x00007f2b00aad789 in QMenu::~QMenu() () at /usr/lib/libQt5Widgets.so.5
#19 0x00000000005ed58f in IrcContextMenus::~IrcContextMenus() ()
#20 0x00000000005ed689 in  ()
#21 0x00007f2afed5c990 in __run_exit_handlers () at /usr/lib/libc.so.6
#22 0x00007f2afed5c9ea in  () at /usr/lib/libc.so.6
#23 0x00007f2afed47298 in __libc_start_main () at /usr/lib/libc.so.6
#24 0x00000000004e2789 in _start ()

Reported using DrKonqi
Comment 1 Christoph Feck 2017-01-18 15:54:58 UTC
Using global QWidgets is not supported. The destructor will be called after the application has already been destroyed. Please make the menu a child of some other GUI object that is deleted together with the main window.
Comment 2 Christoph Feck 2017-02-08 01:40:54 UTC
*** Bug 376001 has been marked as a duplicate of this bug. ***
Comment 3 Eike Hein 2017-03-29 12:09:04 UTC
This was fixed in c468e36ec7e51b77cc262e110d63c9e7bbfa3782.