Details
-
Bug
-
Resolution: Out of scope
-
P1: Critical
-
None
-
5.9, 5.12
-
None
-
Ubuntu 18.04.2 LTS -- Linux 5.0.0-23-generic
libqt5core5a/bionic-updates,bionic-security,now 5.9.5+dfsg-0ubuntu2.1 amd64 [installed,automatic]
Description
Updating an app from Qt4 to Qt5 on stock Ubuntu 18.04.2 LTS with X11+GTK3 using qtbase-opensource-src-5.9.5+dfsg configured with -developer-build. Also crashes when using the standard apt install qt5-default package.
(gdb) b QDBusTrayIcon::updateMenu Function "QDBusTrayIcon::updateMenu" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (QDBusTrayIcon::updateMenu) pending. (gdb) run -e ../share -c client-conf.d -m . Starting program: /home/USER/Code/yate/yate-git/build/YateClient -e ../share -c client-conf.d -m . ... Thread 1 "YateClient" hit Breakpoint 1, QDBusTrayIcon::updateMenu (this=0x5555563f8a80, menu=0x555555ff0140) at genericunix/dbustray/qdbustrayicon.cpp:256 (gdb) bt #0 0x00007fffec15c520 in QDBusTrayIcon::updateMenu(QPlatformMenu*) (this=0x5555563f8a80, menu=0x555555ff0140) at genericunix/dbustray/qdbustrayicon.cpp:256 #1 0x00007ffff752b83a in QSystemTrayIconPrivate::updateMenu_sys() (this=this@entry=0x555556412690) at util/qsystemtrayicon_x11.cpp:329 #2 0x00007ffff750b7d4 in QSystemTrayIcon::setContextMenu(QMenu*) (this=<optimized out>, menu=0x555556413bb0) at util/qsystemtrayicon.cpp:200 ... (gdb) p m_menuAdaptor $1 = (QDBusMenuAdaptor *) 0x555556406c60 (gdb) n Thread 1 "YateClient" received signal SIGSEGV, Segmentation fault. 0x00007fffec15c594 in QDBusTrayIcon::updateMenu (this=0x5555563f8a80, menu=<optimized out>) at genericunix/dbustray/qdbustrayicon.cpp:262 262 delete m_menuAdaptor; (gdb)
See the attached text file for the complete gdb session. I can reproduce this crash every time. This code does not crash on macOS with Qt 5.12.