I'm having this issue as well. Here's a backtrace from GDB, with some debug symbols:
(gdb) bt
#0 doActivate<false> (sender=0x0, signal_index=9, argv=argv@entry=0x7fffffffb9a0) at kernel/qobject.cpp:3768
#1 0x00007fffeafb5cb8 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fffebed30a0 <QGuiApplication::staticMetaObject>, local_signal_index=local_signal_index@entry=1,
argv=argv@entry=0x7fffffffb9a0) at kernel/qobject.cpp:3946
#2 0x00007fffeb9515a6 in QGuiApplication::screenAdded (this=<optimized out>, _t1=<optimized out>, _t1@entry=0x5555558b3cf0) at .moc/moc_qguiapplication.cpp:389
#3 0x00007fffeb936d80 in QWindowSystemInterface::handleScreenAdded (ps=ps@entry=0x5555558a5850, isPrimary=<optimized out>) at kernel/qwindowsysteminterface.cpp:826
#4 0x00007fffdef2d540 in QXcbConnection::initializeScreens (this=this@entry=0x555555893950) at qxcbconnection_screens.cpp:413
#5 0x00007fffdef082a4 in QXcbConnection::QXcbConnection (this=0x555555893950, nativeInterface=<optimized out>, canGrabServer=<optimized out>, defaultVisualId=<optimized out>, displayName=<optimized out>)
at qxcbconnection.cpp:103
#6 0x00007fffdef0b10f in QXcbIntegration::QXcbIntegration (this=0x555555893830, parameters=..., argc=<optimized out>, argv=<optimized out>) at qxcbintegration.cpp:197
#7 0x00007ffff7fb9593 in QXcbIntegrationPlugin::create (this=<optimized out>, system=..., argv=0x7fffffffd868, argc=@0x7fffffffd60c: 1, parameters=...) at qxcbmain.cpp:56
#8 QXcbIntegrationPlugin::create (this=<optimized out>, system=..., parameters=..., argc=@0x7fffffffd60c: 1, argv=0x7fffffffd868) at qxcbmain.cpp:53
#9 0x00007fffeb9559fc in init_platform (argv=<optimized out>, argc=@0x7fffffffd60c: 1, platformThemeName=..., platformPluginPath=..., pluginNamesWithArguments=...) at kernel/qguiapplication.cpp:1223
#10 QGuiApplicationPrivate::createPlatformIntegration (this=0x555555887e20) at kernel/qguiapplication.cpp:1481
#11 0x00007fffeb956e88 in QGuiApplicationPrivate::createEventDispatcher (this=<optimized out>) at kernel/qguiapplication.cpp:1498
#12 0x00007fffeaf8be46 in QCoreApplicationPrivate::init (this=this@entry=0x555555887e20) at kernel/qcoreapplication.cpp:834
#13 0x00007fffeb959e02 in QGuiApplicationPrivate::init (this=0x555555887e20) at kernel/qguiapplication.cpp:1527
#14 0x00007fffef2f5fed in QApplicationPrivate::init() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x000055555571c68b in SharedTools::QtSingleApplication::QtSingleApplication (this=<optimized out>, appId=..., argc=<optimized out>, argv=<optimized out>, this=<optimized out>, appId=...,
argc=<optimized out>, argv=<optimized out>) at ./src/3rdparty/qtsingleapplication/qtsingleapplication.cpp:56
#16 0x000055555563d30c in OCC::Application::Application (this=<optimized out>, argc=<optimized out>, argv=<optimized out>, this=<optimized out>, argc=<optimized out>, argv=<optimized out>)
at ./src/gui/application.cpp:116
#17 0x00005555556093c7 in main (argc=<optimized out>, argv=0x7fffffffd868) at ./src/gui/main.cpp:80
As you can see, the "sender" argument to qobject.cpp's doActivate function is NULL, which it's not supposed to be. The first line of that function is line 3768, and that line is "QObjectPrivate *sp = QObjectPrivate::get(sender);". Since "QObjectPrivate::get" dereferences its argument, that's obviously a segfault.
From stuff I'm reading online, it seems like this might be triggered by compiling with LTO. That's sort of just a wild guess though.
I'm having this issue as well. Here's a backtrace from GDB, with some debug symbols:
(gdb) bt entry=0x7ffffff fb9a0) at kernel/ qobject. cpp:3768 :activate (sender=<optimized out>, m=m@entry= 0x7fffebed30a0 <QGuiApplicatio n::staticMetaOb ject>, local_signal_ index=local_ signal_ index@entry= 1, argv@entry= 0x7fffffffb9a0) at kernel/ qobject. cpp:3946 ::screenAdded (this=<optimized out>, _t1=<optimized out>, _t1@entry= 0x5555558b3cf0) at .moc/moc_ qguiapplication .cpp:389 terface: :handleScreenAd ded (ps=ps@ entry=0x5555558 a5850, isPrimary= <optimized out>) at kernel/ qwindowsystemin terface. cpp:826 :initializeScre ens (this=this@ entry=0x5555558 93950) at qxcbconnection_ screens. cpp:413 :QXcbConnection (this=0x5555558 93950, nativeInterface =<optimized out>, canGrabServer= <optimized out>, defaultVisualId =<optimized out>, displayName= <optimized out>) cpp:103 ::QXcbIntegrati on (this=0x5555558 93830, parameters=..., argc=<optimized out>, argv=<optimized out>) at qxcbintegration .cpp:197 Plugin: :create (this=<optimized out>, system=..., argv=0x7fffffff d868, argc=@0x7ffffff fd60c: 1, parameters=...) at qxcbmain.cpp:56 Plugin: :create (this=<optimized out>, system=..., parameters=..., argc=@0x7ffffff fd60c: 1, argv=0x7fffffff d868) at qxcbmain.cpp:53 fd60c: 1, platformThemeNa me=..., platformPluginP ath=... , pluginNamesWith Arguments= ...) at kernel/ qguiapplication .cpp:1223 Private: :createPlatform Integration (this=0x5555558 87e20) at kernel/ qguiapplication .cpp:1481 Private: :createEventDis patcher (this=<optimized out>) at kernel/ qguiapplication .cpp:1498 nPrivate: :init (this=this@ entry=0x5555558 87e20) at kernel/ qcoreapplicatio n.cpp:834 Private: :init (this=0x5555558 87e20) at kernel/ qguiapplication .cpp:1527 vate::init( ) () from /lib/x86_ 64-linux- gnu/libQt5Widge ts.so.5 :QtSingleApplic ation:: QtSingleApplica tion (this=<optimized out>, appId=..., argc=<optimized out>, argv=<optimized out>, this=<optimized out>, appId=..., qtsingleapplica tion/qtsingleap plication. cpp:56 n::Application (this=<optimized out>, argc=<optimized out>, argv=<optimized out>, this=<optimized out>, argc=<optimized out>, argv=<optimized out>) application. cpp:116 d868) at ./src/gui/ main.cpp: 80
#0 doActivate<false> (sender=0x0, signal_index=9, argv=argv@
#1 0x00007fffeafb5cb8 in QMetaObject:
argv=
#2 0x00007fffeb9515a6 in QGuiApplication
#3 0x00007fffeb936d80 in QWindowSystemIn
#4 0x00007fffdef2d540 in QXcbConnection:
#5 0x00007fffdef082a4 in QXcbConnection:
at qxcbconnection.
#6 0x00007fffdef0b10f in QXcbIntegration
#7 0x00007ffff7fb9593 in QXcbIntegration
#8 QXcbIntegration
#9 0x00007fffeb9559fc in init_platform (argv=<optimized out>, argc=@0x7ffffff
#10 QGuiApplication
#11 0x00007fffeb956e88 in QGuiApplication
#12 0x00007fffeaf8be46 in QCoreApplicatio
#13 0x00007fffeb959e02 in QGuiApplication
#14 0x00007fffef2f5fed in QApplicationPri
#15 0x000055555571c68b in SharedTools:
argc=<optimized out>, argv=<optimized out>) at ./src/3rdparty/
#16 0x000055555563d30c in OCC::Applicatio
at ./src/gui/
#17 0x00005555556093c7 in main (argc=<optimized out>, argv=0x7fffffff
As you can see, the "sender" argument to qobject.cpp's doActivate function is NULL, which it's not supposed to be. The first line of that function is line 3768, and that line is "QObjectPrivate *sp = QObjectPrivate: :get(sender) ;". Since "QObjectPrivate ::get" dereferences its argument, that's obviously a segfault.
From stuff I'm reading online, it seems like this might be triggered by compiling with LTO. That's sort of just a wild guess though.