It seems that after recent Perl bump the x11-terms/rxvt-unicode-9.22-r7 when built with USE=perl segfaults on exit, flooding kmsg log with information about it, Jan 07 23:33:14 [kernel] urxvt[6808]: segfault at 210 ip 00007f1283c9a0ad sp 00007fff6c50e250 error 4 in libc-2.32.so[7f1283c81000+14f000] Jan 07 23:33:14 [kernel] Code: fe ff 49 83 c5 02 41 0f b7 6d fe 49 89 c6 4c 8d 78 fe 4d 85 e4 75 13 eb cc 0f 1f 40 00 4c 8b 63 08 48 83 c3 08 4d 85 e4 74 bb <66> 41 3b 2c 24 75 ec 49 8d 7c 24 02 4c 89 fa 4c 89 ee e8 9c 71 fe Others also seems to report similar issues on other distributions -- https://www.reddit.com/r/archlinux/comments/htq7hk/urxvt_segfaults_on_exit_for_whatever_reason/
Does upstream know about this?
Yes they do, see http://cvs.schmorp.de/rxvt-unicode/src/rxvtperl.xs?r1=1.246&r2=1.247 and http://cvs.schmorp.de/rxvt-unicode/src/rxvtperl.h?r1=1.28&r2=1.29 . Debian uses these two diffs as their patch to address this issue so I reckon the same will work for us as well.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79d31f8585e3cab9c6a7dcbcf643be5456303933 commit 79d31f8585e3cab9c6a7dcbcf643be5456303933 Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2021-04-16 16:21:46 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2021-04-16 18:24:52 +0000 x11-terms/rxvt-unicode: do not segfault on exit with USE=perl and recent Perl versions As addressed upstream and subsequently accepted by Debian. Closes: https://bugs.gentoo.org/764386 Signed-off-by: Marek Szuba <marecki@gentoo.org> .../rxvt-unicode-9.22-perl-segfault-on-exit.patch | 36 +++++++ x11-terms/rxvt-unicode/rxvt-unicode-9.22-r8.ebuild | 116 +++++++++++++++++++++ 2 files changed, 152 insertions(+)