Reproduction: $ echo x > a.file $ kdiff3 -o /dev/null a.file a.file a.file <choose [B], save file> Bus error (core dumped) (lldb) bt * thread #1, name = 'kdiff3', stop reason = signal SIGBUS * frame #0: 0x000000083c4b7763 libxcb.so.1`xcb_send_request_with_fds64 + 35 frame #1: 0x000000086233f4e6 libxcb-shm.so.0`xcb_shm_detach_checked + 70 frame #2: 0x000000086085bb1d libQt5XcbQpa.so.5`___lldb_unnamed_symbol3365 + 45 frame #3: 0x000000086085ba44 libQt5XcbQpa.so.5`___lldb_unnamed_symbol3364 + 68 frame #4: 0x000000086085ed03 libQt5XcbQpa.so.5`___lldb_unnamed_symbol3399 + 19 frame #5: 0x000000086085dab9 libQt5XcbQpa.so.5`___lldb_unnamed_symbol3378 + 41 frame #6: 0x000000086085db4e libQt5XcbQpa.so.5`___lldb_unnamed_symbol3379 + 14 frame #7: 0x000000083383723c libQt5Gui.so.5`QBackingStore::~QBackingStore() + 28 frame #8: 0x0000000835ec654a libQt5Widgets.so.5`QWidgetPrivate::deleteTLSysExtra() + 106 frame #9: 0x0000000835ec62fd libQt5Widgets.so.5`QWidget::destroy(bool, bool) + 1005 frame #10: 0x0000000835ec5a35 libQt5Widgets.so.5`QWidget::~QWidget() + 1189 frame #11: 0x0000000000326b71 kdiff3`___lldb_unnamed_symbol4236 + 49 frame #12: 0x0000000838174a3b libc.so.7`__cxa_finalize(dso=0x0000000000000000) at atexit.c:238:5 frame #13: 0x0000000838174fd1 libc.so.7`exit(status=0) at exit.c:74:2 frame #14: 0x000000083808d11d libc.so.7`__libc_start1(argc=6, argv=0x000000082057d658, env=0x000000082057d690, cleanup=<unavailable>, mainX=(kdiff3`___lldb_unnamed_symbol2673)) at libc_start1.c:157:2 frame #15: 0x000000000027b3a0 kdiff3`___lldb_unnamed_symbol2452 + 48 Sorry I don't have more to go on just yet, will add additional detail if/when I can obtain more.
Versions: kdiff3-1.10.5 libxcb-1.15_1 qt5-widgets-5.15.8p157 qt5-gui-5.15.8p157_2
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=0eefb94230da5041b16936e22e73d549c95da1f8 commit 0eefb94230da5041b16936e22e73d549c95da1f8 Author: Jason E. Hale <jhale@FreeBSD.org> AuthorDate: 2023-09-26 19:15:43 +0000 Commit: Jason E. Hale <jhale@FreeBSD.org> CommitDate: 2023-09-26 19:26:57 +0000 textproc/kdiff3: Fix crash upon exit Add a few upstream patches to fix crashes upon application exit. While here, drop a few unused KF5 components. PR: 273031 Reported by: emaste textproc/kdiff3/Makefile | 12 ++++++++---- textproc/kdiff3/distinfo | 6 +++++- 2 files changed, 13 insertions(+), 5 deletions(-)
I was able to reproduce this crash. Simply starting and closing the application was enough to trigger it. Could you please try with the patches I just committed? They seem to fix the issue for me.
In the meantime, kdiff3 has been updated to 1.10.6 which includes these patches.
Confirmed fixed, thank you. I wasn't able to build it earlier, but have confirmed that the issues I encountered are no longer reproducible with 1.10.6 from the official pkg set.