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

            Bug ID: 426899
           Summary: kstars segmentation fault in doActivate when starting
           Product: kstars
           Version: 3.4.3
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: mutla...@ikarustech.com
          Reporter: matthew.fagn...@utoronto.ca
  Target Milestone: ---

SUMMARY

I installed kstars-3.4.3-3.fc33.x86_64 in a Fedora 33 KDE Plasma spin
installation running Plasma 5.19.5 on Wayland. kstars segmentation faulted in
doActivate or QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData>
>::operator-> at kernel/qobject.cpp:3766 in qt5-qtbase-5.15.1-1.fc33.x86_64
when starting each of a few times.

Core was generated by `/usr/bin/kstars'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fcf10ad4e5b in QScopedPointer<QObjectData,
QScopedPointerDeleter<QObjectData> >::operator->
    (this=<optimized out>) at kernel/qobject.cpp:3766
3766    void doActivate(QObject *sender, int signal_index, void **argv)
(gdb) bt
#0  0x00007fcf10ad4e5b in QScopedPointer<QObjectData,
QScopedPointerDeleter<QObjectData> >::operator->
    (this=<optimized out>) at kernel/qobject.cpp:3766
#1  qGetPtrHelper<QScopedPointer<QObjectData,
QScopedPointerDeleter<QObjectData> > > (ptr=...)
    at ../../include/QtCore/../../src/corelib/global/qglobal.h:1135
#2  QObject::d_func (this=<optimized out>) at kernel/qobject.h:132
#3  QObjectPrivate::get (o=<optimized out>) at kernel/qobject_p.h:339
#4  doActivate<false> (sender=0x0, signal_index=9, argv=0x7ffc77021ce0) at
kernel/qobject.cpp:3768
#5  0x00007fcf10f08ee2 in QGuiApplication::screenAdded (this=<optimized out>,
_t1=<optimized out>)
    at .moc/moc_qguiapplication.cpp:389
#6  0x00007fcefe390698 in
QtWaylandClient::QWaylandDisplay::handleScreenInitialized (this=
    0x5581ed409b60, screen=<optimized out>) at qwaylanddisplay.cpp:281
#7  0x00007fcefe39d623 in QtWaylandClient::QWaylandScreen::maybeInitialize
(this=0x5581ed401a20)
    at qwaylandscreen.cpp:97
#8  QtWaylandClient::QWaylandScreen::maybeInitialize (this=0x5581ed401a20) at
qwaylandscreen.cpp:86
#9  0x00007fcefe26bb10 in ffi_call_unix64 () at ../src/x86/unix64.S:76
#10 0x00007fcefe26b0a3 in ffi_call (cif=cif@entry=0x7ffc77021e80, fn=<optimized
out>, 
    rvalue=<optimized out>, rvalue@entry=0x0,
avalue=avalue@entry=0x7ffc77021f50)
    at ../src/x86/ffi64.c:525
#11 0x00007fcefe3138fe in wl_closure_invoke
(closure=closure@entry=0x5581ed414590, 
    target=<optimized out>, target@entry=0x5581ed4126b0, opcode=opcode@entry=2,
data=<optimized out>, 
    flags=<optimized out>) at src/connection.c:1018
#12 0x00007fcefe313fcb in dispatch_event (display=display@entry=0x5581ed409d10, 
    queue=<optimized out>, queue=<optimized out>) at src/wayland-client.c:1445
#13 0x00007fcefe31419c in dispatch_queue (queue=0x5581ed409de0,
display=0x5581ed409d10)
    at src/wayland-client.c:1591
--Type <RET> for more, q to quit, c to continue without paging--c
#14 wl_display_dispatch_queue_pending (display=0x5581ed409d10,
queue=0x5581ed409de0) at src/wayland-client.c:1833
#15 0x00007fcefe390d85 in QtWaylandClient::QWaylandDisplay::forceRoundTrip
(this=this@entry=0x5581ed409b60) at qwaylanddisplay.cpp:476
#16 0x00007fcefe398514 in QtWaylandClient::QWaylandDisplay::registry_global
(this=0x5581ed409b60, id=21, interface=..., version=2) at
qwaylanddisplay.cpp:351
#17 0x00007fcefe3ab88f in QtWayland::wl_registry::handle_global
(data=0x5581ed409b70, object=<optimized out>, name=21, interface=0x5581ed4122d0
"zxdg_output_manager_v1", version=2) at /usr/include/qt5/QtCore/qstring.h:701
#18 0x00007fcefe26bb10 in ffi_call_unix64 () at ../src/x86/unix64.S:76
#19 0x00007fcefe26b0a3 in ffi_call (cif=cif@entry=0x7ffc77022320, fn=<optimized
out>, rvalue=<optimized out>, rvalue@entry=0x0,
avalue=avalue@entry=0x7ffc770223f0) at ../src/x86/ffi64.c:525
#20 0x00007fcefe3138fe in wl_closure_invoke
(closure=closure@entry=0x5581ed4121f0, target=<optimized out>,
target@entry=0x5581ed409e60, opcode=opcode@entry=0, data=<optimized out>,
flags=<optimized out>) at src/connection.c:1018
#21 0x00007fcefe313fcb in dispatch_event (display=display@entry=0x5581ed409d10,
queue=<optimized out>, queue=<optimized out>) at src/wayland-client.c:1445
#22 0x00007fcefe31419c in dispatch_queue (queue=0x5581ed409de0,
display=0x5581ed409d10) at src/wayland-client.c:1591
#23 wl_display_dispatch_queue_pending (display=0x5581ed409d10,
queue=0x5581ed409de0) at src/wayland-client.c:1833
#24 0x00007fcefe390d85 in QtWaylandClient::QWaylandDisplay::forceRoundTrip
(this=this@entry=0x5581ed409b60) at qwaylanddisplay.cpp:476
#25 0x00007fcefe396c59 in QtWaylandClient::QWaylandDisplay::QWaylandDisplay
(this=<optimized out>, waylandIntegration=<optimized out>, this=<optimized
out>, waylandIntegration=<optimized out>) at qwaylanddisplay.cpp:162
#26 0x00007fcefe38d8eb in
QtWaylandClient::QWaylandIntegration::QWaylandIntegration (this=<optimized
out>, this=<optimized out>) at qwaylandintegration.cpp:115
#27 0x00007fcf12f0f3b7 in QtWaylandClient::QWaylandIntegrationPlugin::create
(this=<optimized out>, system=..., paramList=...) at main.cpp:59
#28 0x00007fcf10f01f4b in QPlatformIntegrationFactory::create (platform=...,
paramList=..., argc=@0x7ffc77022a5c: 1, argv=<optimized out>,
platformPluginPath=...) at kernel/qplatformintegrationfactory.cpp:51
#29 0x00007fcf10f0c690 in init_platform (argv=<optimized out>,
argc=@0x7ffc77022a5c: 1, platformThemeName=..., platformPluginPath=...,
pluginNamesWithArguments=...) at kernel/qguiapplication.cpp:1223
#30 QGuiApplicationPrivate::createPlatformIntegration (this=0x5581ed3ff6a0) at
kernel/qguiapplication.cpp:1474
#31 0x00007fcf10f0dca0 in QGuiApplicationPrivate::createEventDispatcher
(this=<optimized out>) at kernel/qguiapplication.cpp:1491
#32 0x00007fcf10aacf86 in QCoreApplicationPrivate::init (this=<optimized out>)
at kernel/qcoreapplication.cpp:852
#33 0x00007fcf10f105f4 in QGuiApplicationPrivate::init (this=0x5581ed3ff6a0) at
kernel/qguiapplication.cpp:1520
#34 0x00007fcf114d1ef9 in QApplicationPrivate::init (this=0x5581ed3ff6a0) at
kernel/qapplication.cpp:513
#35 0x00005581eb8f029e in main (argc=<optimized out>, argv=0x7ffc77022e18) at
/usr/src/debug/kstars-3.4.3-3.fc33.x86_64/kstars/main.cpp:80

Running kstars on X in konsole with QT_QPA_PLATFORM=xcb kstars and running
kstars in Plasma on X also crashed in doActivate. The problem isn't specific to
Wayland.


STEPS TO REPRODUCE
1. Boot a Fedora 33 KDE Plasma spin installation fully updated to 2020-9-23
with plasma-workspace-wayland and its dependencies installed
2. Log in to Plasma 5.19.5 on Wayland from sddm
3. start konsole
4. sudo dnf install kstars
5. kstars (in konsole)

OBSERVED RESULT
kstars segmentation fault in doActivate when starting

EXPECTED RESULT
kstars would start normally

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Fedora 33
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.73.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
qt5-qtdatavis3d-5.14.2-3.fc33.x86_64 was installed as a dependency of kstars.
The rest of Qt is 5.15.1 on my system, so a Qt versioning problem might be
possible.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to