Bug 453239 - Get segmentation fault (core dumped) when starting Kstars on Kubuntu 22.04
Summary: Get segmentation fault (core dumped) when starting Kstars on Kubuntu 22.04
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: 3.5.7
Platform: Ubuntu Linux
: HI crash
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-30 17:56 UTC by Otto
Modified: 2022-05-11 20:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Otto 2022-04-30 17:56:00 UTC
SUMMARY
Kstars do not work under Kubuntu 22.04 with  kubuntu-ppa/backports
Latest patches deployed as 30-APR-2022



STEPS TO REPRODUCE
1. Running Kubuntu 22.04 with kubuntu-ppa/backports
2. From command line execute kstars
3. Crash: segmentado fault (core dumped)

OBSERVED RESULT
My system by default uses spanish, so I get this:
supersu@mac2:~$ kstars
Violación de segmento (`core' generado)

Translated to English:
Segmentation fault (core dumped) 

EXPECTED RESULT
kstars to start

SOFTWARE/OS VERSIONS 
Windows: 
macOS: 
Linux/KDE Plasma: KStars - Kubuntu 22.04 LTS x86_64  with kubuntu-ppa/backports
(available in About System)
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Kernel 5.15.0-27
Comment 1 Alex Argiropoulos 2022-04-30 23:11:12 UTC
Confirmed on a fresh 22.04 installation.
Bombs immediately, even 'kstars --version'.  Probably won't help due to missing debug symbols but here is the backtrace.

Thread 1 "kstars" received signal SIGSEGV, Segmentation fault.
0x00007ffff529927e in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
(gdb) bt
#0  0x00007ffff529927e in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007ffff563c046 in QGuiApplication::screenAdded(QScreen*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#2  0x00007ffff56217c0 in QWindowSystemInterface::handleScreenAdded(QPlatformScreen*, bool) ()
   from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#3  0x00007fffef8f0528 in QXcbConnection::initializeScreens() () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fffef8c7680 in QXcbConnection::QXcbConnection(QXcbNativeInterface*, bool, unsigned int, char const*) ()
   from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#5  0x00007fffef8cadb0 in QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**) ()
   from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#6  0x00007ffff7fb7523 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
#7  0x00007ffff56405ef in QGuiApplicationPrivate::createPlatformIntegration() () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#8  0x00007ffff5641c08 in QGuiApplicationPrivate::createEventDispatcher() () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#9  0x00007ffff5268b07 in QCoreApplicationPrivate::init() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007ffff5644b70 in QGuiApplicationPrivate::init() () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#11 0x00007ffff5d58ced in QApplicationPrivate::init() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x0000555555716b6c in ?? ()
#13 0x00007ffff47efd90 in __libc_start_call_main (main=main@entry=0x555555716b00, argc=argc@entry=1, 
    argv=argv@entry=0x7fffffffe208) at ../sysdeps/nptl/libc_start_call_main.h:58
#14 0x00007ffff47efe40 in __libc_start_main_impl (main=0x555555716b00, argc=1, argv=0x7fffffffe208, init=<optimized out>, 
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe1f8) at ../csu/libc-start.c:392
#15 0x0000555555762785 in ?? ()
Comment 2 Rik Mills 2022-05-01 09:20:41 UTC
Thread 1 "kstars" received signal SIGSEGV, Segmentation fault.
doActivate<false> (sender=0x0, signal_index=9, argv=0x7fffffffd550) at kernel/qobject.cpp:3768
3768    kernel/qobject.cpp: No such file or directory.
(gdb) bt
#0  doActivate<false> (sender=0x0, signal_index=9, argv=0x7fffffffd550) at kernel/qobject.cpp:3768
#1  0x00007ffff529ba97 in QMetaObject::activate (sender=<optimised out>, m=m@entry=0x7ffff5bd50e0 <QGuiApplication::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fffffffd550)
    at kernel/qobject.cpp:3946
#2  0x00007ffff5645046 in QGuiApplication::screenAdded (this=<optimised out>, _t1=<optimised out>, _t1@entry=0x55555654fa50) at .moc/moc_qguiapplication.cpp:389
#3  0x00007ffff562a7c0 in QWindowSystemInterface::handleScreenAdded (ps=ps@entry=0x5555564ca590, isPrimary=<optimised out>) at kernel/qwindowsysteminterface.cpp:826
#4  0x00007fffef903528 in QXcbConnection::initializeScreens (this=this@entry=0x5555564b5ad0) at ./src/plugins/platforms/xcb/qxcbconnection_screens.cpp:413
#5  0x00007fffef8da680 in QXcbConnection::QXcbConnection (this=0x5555564b5ad0, nativeInterface=<optimised out>, canGrabServer=<optimised out>, defaultVisualId=<optimised out>, displayName=<optimised out>)
    at ./src/plugins/platforms/xcb/qxcbconnection.cpp:103
#6  0x00007fffef8dddb0 in QXcbIntegration::QXcbIntegration (this=this@entry=0x5555564b17d0, parameters=..., argc=@0x7fffffffdbec: 1, argv=argv@entry=0x7fffffffdf68) at ./src/plugins/platforms/xcb/qxcbintegration.cpp:197
#7  0x00007ffff7fb7523 in QXcbIntegrationPlugin::create (this=<optimised out>, system=..., argv=0x7fffffffdf68, argc=@0x7fffffffdbec: 1, parameters=...) at ./src/plugins/platforms/xcb/qxcbmain.cpp:56
#8  QXcbIntegrationPlugin::create (this=<optimised out>, system=..., parameters=..., argc=@0x7fffffffdbec: 1, argv=0x7fffffffdf68) at ./src/plugins/platforms/xcb/qxcbmain.cpp:53
#9  0x00007ffff56495ef in init_platform (argv=<optimised out>, argc=@0x7fffffffdbec: 1, platformThemeName=..., platformPluginPath=..., pluginNamesWithArguments=...) at kernel/qguiapplication.cpp:1223
#10 QGuiApplicationPrivate::createPlatformIntegration (this=0x5555564a6a50) at kernel/qguiapplication.cpp:1481
#11 0x00007ffff564ac08 in QGuiApplicationPrivate::createEventDispatcher (this=<optimised out>) at kernel/qguiapplication.cpp:1498
#12 0x00007ffff5271b07 in QCoreApplicationPrivate::init (this=this@entry=0x5555564a6a50) at kernel/qcoreapplication.cpp:835
#13 0x00007ffff564db70 in QGuiApplicationPrivate::init (this=0x5555564a6a50) at kernel/qguiapplication.cpp:1527
#14 0x00007ffff5d61ced in QApplicationPrivate::init() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x0000555555716b6c in main (argc=<optimised out>, argv=0x7fffffffdf68) at ./kstars/main.cpp:67
Comment 3 Rik Mills 2022-05-01 09:22:58 UTC
Crash without backports PPa also
Comment 4 Rik Mills 2022-05-01 10:48:19 UTC
Please test the build of kstars found in :

https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/4837
Comment 5 Alex Argiropoulos 2022-05-01 11:11:02 UTC
(In reply to Rik Mills from comment #4)
> Please test the build of kstars found in :
> 
> https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/4837

Yeap, works fine.  Thanks!
Comment 6 Rik Mills 2022-05-01 11:50:35 UTC
FYI, seems kstars did not like having LTO enabled on the build

https://wiki.ubuntu.com/ToolChain/LTO
Comment 7 Rik Mills 2022-05-01 15:47:48 UTC
Tracking bug for fixing this in Ubuntu:

https://bugs.launchpad.net/ubuntu/+source/kstars/+bug/1971091
Comment 8 Otto 2022-05-02 00:04:25 UTC
I added the PPA in a couple machines (Kubuntu and Lubuntu 22.04).  That fixed the problem.

Best Regards.
Comment 9 Rik Mills 2022-05-11 20:45:37 UTC
The fixed package should be landing imminently in regular Ubuntu updates, so no need for PPA packages once it does.