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.
Can you make sure ghostreader is built w/ debugging symbols (and source information), see https://wiki.gentoo.org/wiki/Debugging#Per-package?
Created attachment 908004 [details] gdb output with backtrace
Thanks. https://github.com/KDE/ghostwriter/blob/7a2079a8dd173692fac7f465f589b8a916364f5d/src/preview/htmlpreview.cpp#L210 This code changed in https://github.com/KDE/ghostwriter/commit/f82070ac7916b36bb0bfd84a5c0e96cb084a6e28 (https://bugs.kde.org/show_bug.cgi?id=465799). Could you try that patch?
OK, thanks. I made a patch from that github commit, and the issue appears to be resolved in the patched build.
Created attachment 908033 [details, diff] patch to fix ghostwriter segfault The patch, for posterity.
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(+)