Since update to dev-libs/glib-2.76.0 the Openbox randomly crashes. Seems that Archlinux users did the legwork and it is related to gslice. https://bbs.archlinux.org/viewtopic.php?pid=2090135#p2090135 Added Gnome project to CC since glib is maintained by Gnome team, many old X software might have now issues much like openbox here and tint2 in another bug.
Thanks Sam for adding the see also links, I just came here to add https://bugzilla.icculus.org/show_bug.cgi?id=6669 and seems it is already here.
This is a use after free bug, and the patch attached to the icculus bug tracker entry fixes it: https://bugzilla-attachments.icculus.org/attachment.cgi?id=3646 So we should add that to the ebuild.
The final version of patch that was pushed https://github.com/Mikachu/openbox/commit/9ed6fdd71890c5cc43747f105382d5677e5d37e7.patch
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95d5a573165b47f9523ba43d9abc3cae5e116c48 commit 95d5a573165b47f9523ba43d9abc3cae5e116c48 Author: Jimi Huotari <chiitoo@gentoo.org> AuthorDate: 2023-03-19 10:24:19 +0000 Commit: Jimi Huotari <chiitoo@gentoo.org> CommitDate: 2023-03-19 10:24:19 +0000 x11-wm/openbox: patch issue with >=glib-2.76.0 Bug: https://bugs.gentoo.org/901777 Signed-off-by: Jimi Huotari <chiitoo@gentoo.org> x11-wm/openbox/files/openbox-3.6.1-glib-2.76.patch | 54 +++++++++ x11-wm/openbox/openbox-3.6.1-r5.ebuild | 123 +++++++++++++++++++++ 2 files changed, 177 insertions(+)