Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 764386 - x11-terms/rxvt-unicode-9.22-r7: segfaults on exit when built with USE=perl on ~amd64
Summary: x11-terms/rxvt-unicode-9.22-r7: segfaults on exit when built with USE=perl on...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-07 22:41 UTC by Piotr Karbowski (RETIRED)
Modified: 2021-04-18 19:14 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Karbowski (RETIRED) gentoo-dev 2021-01-07 22:41:50 UTC
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/
Comment 1 Marek Szuba archtester gentoo-dev 2021-01-08 22:29:18 UTC
Does upstream know about this?
Comment 2 Marek Szuba archtester gentoo-dev 2021-04-16 13:53:48 UTC
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.
Comment 3 Larry the Git Cow gentoo-dev 2021-04-16 18:25:03 UTC
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(+)