Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942928 - app-editors/ghostwriter-24.08.1 segfaults on all non-trivial interactions with interface
Summary: app-editors/ghostwriter-24.08.1 segfaults on all non-trivial interactions wit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL: https://invent.kde.org/office/ghostwr...
Whiteboard:
Keywords: PATCH, UPSTREAM
Depends on:
Blocks:
 
Reported: 2024-11-06 01:31 UTC by Darren Kirby
Modified: 2024-11-06 19:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info and gdb backtrace (file_942928.txt,9.31 KB, text/plain)
2024-11-06 01:31 UTC, Darren Kirby
Details
gdb output with backtrace (file_942928.txt,9.99 KB, text/plain)
2024-11-06 17:08 UTC, Darren Kirby
Details
patch to fix ghostwriter segfault (ghostwriter-24.08.1.fix_segfault.patch,5.22 KB, patch)
2024-11-06 19:31 UTC, Darren Kirby
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Kirby 2024-11-06 01:31:20 UTC
Created attachment 907987 [details]
emerge --info and gdb backtrace

Segfault occurs when launched from console and menu. Interaction with application menus is possible, but as soon as I try to type some text the program crashes. When launched from the console this text is produced:

[     0.179 16945 ghostwriter ] INFO      Backup files will be stored in "/home/darren/.local/share/ghostwriter/backups/"
[     0.224 16945 ghostwriter ] WARNING   Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/bin/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib64/qt6/libexec/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib64/qt6/libexec/qtwebengine_dictionaries'
[     3.793 16945 ghostwriter  qt.xkb.compose] WARNING   failed to create compose table
Segmentation fault

I searched but could not find a relevant bug in upstream bug tracker (bugs.kde.org/)
 
emerge --info and gdb backtrace attached.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-06 06:20:07 UTC
Can you make sure ghostreader is built w/ debugging symbols (and source information), see https://wiki.gentoo.org/wiki/Debugging#Per-package?
Comment 2 Darren Kirby 2024-11-06 17:08:08 UTC
Created attachment 908004 [details]
gdb output with backtrace
Comment 4 Darren Kirby 2024-11-06 19:12:34 UTC
OK, thanks. I made a patch from that github commit, and the issue appears to be resolved in the patched build.
Comment 5 Darren Kirby 2024-11-06 19:31:13 UTC
Created attachment 908033 [details, diff]
patch to fix ghostwriter segfault

The patch, for posterity.
Comment 6 Larry the Git Cow gentoo-dev 2024-11-06 19:52:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd1d07066b493b813c2005138328f78f2194532c

commit dd1d07066b493b813c2005138328f78f2194532c
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-11-06 19:46:03 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-11-06 19:51:44 +0000

    app-editors/ghostwriter: Fix segfaults
    
    See also: https://invent.kde.org/office/ghostwriter/-/merge_requests/46
    KDE-bug: https://bugs.kde.org/show_bug.cgi?id=465799
    
    Closes: https://bugs.gentoo.org/942928
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/ghostwriter-24.08.2-fix-segfault.patch   | 175 +++++++++++++++++++++
 .../ghostwriter/ghostwriter-24.08.2-r1.ebuild      |  44 ++++++
 2 files changed, 219 insertions(+)