Bug 485962 - ghostwriter segfaults
Summary: ghostwriter segfaults
Status: RESOLVED DUPLICATE of bug 485691
Alias: None
Product: ghostwriter
Classification: Applications
Component: general (show other bugs)
Version: 24.02.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: megan.conkle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-22 14:15 UTC by phoenix
Modified: 2024-05-11 14:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description phoenix 2024-04-22 14:15:29 UTC
SUMMARY

Running ghostwriter 24.02.2 on openSUSE Tumbleweed results in a segfault, already since before Plasma6.

> $ ghostwriter SOMEFILE.md
> QFontDatabase: Must construct a QGuiApplication before accessing QFontDatabase
> [1]    8613 IOT instruction (core dumped)  ghostwriter SOMEFILE.md

This is a follow-up of https://bugzilla.suse.com/show_bug.cgi?id=1215849, where someone has identified the problem as related to `libpbf.so`, where the QFontDatabase is accessed before creating the QGuiApplication (see https://bugzilla.suse.com/show_bug.cgi?id=1215849#c4).

STEPS TO REPRODUCE
1. Run `ghostwriter`

OBSERVED RESULT

* `ghostwriter` crashes with SIGSEGV

EXPECTED RESULT

* ghostwriter starts without crashing

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.0.4
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Comment 1 phoenix 2024-04-22 14:15:49 UTC
This might be a duplicate of https://bugs.kde.org/show_bug.cgi?id=485691, however from the error message therein I cannot say for sure.
Comment 2 phoenix 2024-04-22 14:16:46 UTC
Backtrace:

Thread 1 "ghostwriter" received signal SIGSEGV, Segmentation fault.
0x00007fffec342307 in QKeySequence::operator=(QKeySequence const&) () from /lib64/libQt6Gui.so.6
(gdb) bt
#0  0x00007fffec342307 in QKeySequence::operator=(QKeySequence const&) () from /lib64/libQt6Gui.so.6
#1  0x00007fffecac0eca in QAbstractButton::setShortcut(QKeySequence const&) () from /lib64/libQt6Widgets.so.6
#2  0x00007fffecac0f61 in QAbstractButton::setText(QString const&) () from /lib64/libQt6Widgets.so.6
#3  0x00005555555e0410 in ?? ()
#4  0x00007fffeb7e8443 in ?? () from /lib64/libQt6Core.so.6
#5  0x00005555555e981f in ?? ()
#6  0x00007fffeca0e075 in QWidget::event(QEvent*) () from /lib64/libQt6Widgets.so.6
#7  0x00007fffeca99532 in QFrame::event(QEvent*) () from /lib64/libQt6Widgets.so.6
#8  0x00007fffec9c2f1e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt6Widgets.so.6
#9  0x00007fffeb78f030 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt6Core.so.6
#10 0x00007fffeca0985c in QWidgetPrivate::hide_helper() () from /lib64/libQt6Widgets.so.6
#11 0x00007fffeca0b2aa in QWidgetPrivate::setVisible(bool) () from /lib64/libQt6Widgets.so.6
#12 0x0000555555610aa3 in ?? ()
#13 0x000055555559da4e in ?? ()
#14 0x00007fffeae2a1f0 in __libc_start_call_main () from /lib64/libc.so.6
#15 0x00007fffeae2a2b9 in __libc_start_main_impl () from /lib64/libc.so.6
#16 0x000055555559df05 in ?? ()
Comment 3 Christophe Marin 2024-05-11 14:54:27 UTC

*** This bug has been marked as a duplicate of bug 485691 ***