Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907609 - dev-perl/SDL-2.548.0-r2 fails tests: perl: sv.c:4125: Perl_sv_setsv_flags: Assertion &(ssv->sv_u.svu_iv) == &(((XPVIV) SvANY(ssv))->xiv_iv) failed
Summary: dev-perl/SDL-2.548.0-r2 fails tests: perl: sv.c:4125: Perl_sv_setsv_flags: As...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 907564
  Show dependency tree
 
Reported: 2023-06-01 08:40 UTC by Agostino Sarubbo
Modified: 2024-05-02 15:47 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,165.85 KB, text/plain)
2023-06-01 08:40 UTC, Agostino Sarubbo
Details
build.log and emerge --info (file_907609.txt,63.11 KB, text/plain)
2024-01-14 22:24 UTC, matoro
Details
gdb context and complete backtrace (gdb.txt,15.05 KB, text/plain)
2024-05-02 15:47 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-06-01 08:40:21 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-perl/SDL-2.548.0-r2 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2023-06-01 08:40:24 UTC
Created attachment 862997 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-06-01 08:41:09 UTC
also on dmesg:

[Thu Jun  1 10:38:30 2023] perl[21191]: segfault at 29 ip 00007f640b94bc61 sp 00007ffdfdf64980 error 4 in libperl.so.5.36.1[7f640b852000+25d000] likely on CPU 40 (core 8, socket 0)
[Thu Jun  1 10:38:30 2023] perl[21186]: segfault at 39 ip 00007fd89694bc61 sp 00007ffed108cad0 error 4 in libperl.so.5.36.1[7fd896852000+25d000] likely on CPU 63 (core 31, socket 0)
[Thu Jun  1 10:38:31 2023] perl[21580]: segfault at 29 ip 00007fc58554bc61 sp 00007ffc45536400 error 4 in libperl.so.5.36.1[7fc585452000+25d000] likely on CPU 44 (core 12, socket 0)
[Thu Jun  1 10:38:33 2023] perl[21897]: segfault at 29 ip 00007f5ae0b4bc61 sp 00007ffd1bc57a50 error 4 in libperl.so.5.36.1[7f5ae0a52000+25d000] likely on CPU 46 (core 14, socket 0)
[Thu Jun  1 10:38:33 2023] perl[21898]: segfault at 29 ip 00007f29f614bc61 sp 00007fffbe104220 error 4 in libperl.so.5.36.1[7f29f6052000+25d000] likely on CPU 37 (core 5, socket 0)
[Thu Jun  1 10:38:34 2023] perl[22258]: segfault at 29 ip 00007f23e7d4bc61 sp 00007fff9e2666f0 error 4 in libperl.so.5.36.1[7f23e7c52000+25d000] likely on CPU 56 (core 24, socket 0)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-04 06:38:05 UTC
Presumably needs debug on Perl.
Comment 4 Ionen Wolkens gentoo-dev 2023-06-04 07:01:34 UTC
Tend to wonder if should just get rid of this. It's only used by 1 game (last release 2008) and seem to cause trouble often.
Comment 5 James Le Cuirot gentoo-dev 2023-06-04 09:16:07 UTC
(In reply to Ionen Wolkens from comment #4)
> Tend to wonder if should just get rid of this. It's only used by 1 game
> (last release 2008) and seem to cause trouble often.

I knew without looking that it was Frozen Bubble. It's an open source classic! But yeah...
Comment 6 Larry the Git Cow gentoo-dev 2023-09-27 03:32:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a5988d6db2b42243501826054f7b86c087050b4

commit 7a5988d6db2b42243501826054f7b86c087050b4
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-09-27 03:31:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-27 03:31:56 +0000

    media-libs/libsdl: add 1.2.68
    
    The release notes mention sdl-perl works now, so maybe it fixes our problems
    (or perhaps the hang I've seen even if not the assert).
    
    See https://github.com/libsdl-org/sdl12-compat/releases/tag/release-1.2.68.
    
    Bug: https://bugs.gentoo.org/907609
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/libsdl/Manifest             |  1 +
 media-libs/libsdl/libsdl-1.2.68.ebuild | 45 ++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
Comment 7 matoro archtester 2024-01-14 22:24:17 UTC
Created attachment 882292 [details]
build.log and emerge --info

Affects x86 even worse
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-02 05:22:41 UTC
(In reply to matoro from comment #7)
> Created attachment 882292 [details]
> build.log and emerge --info
> 
> Affects x86 even worse

Can you give a backtrace?
Comment 9 Larry the Git Cow gentoo-dev 2024-05-02 06:36:06 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6f2d78341d72d6ec6cbb561ec26dd7f896b7df9

commit d6f2d78341d72d6ec6cbb561ec26dd7f896b7df9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-05-02 06:35:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-02 06:35:46 +0000

    dev-perl/SDL: try more memory safety fixes
    
    Debian are using these. I still get a UAF in the tests though.
    
    Bug: https://bugs.gentoo.org/907609
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-perl/SDL/SDL-2.548.0-r3.ebuild             |  58 +++++++++++
 dev-perl/SDL/files/SDL-2.548-refcount.patch    |  27 ++++++
 dev-perl/SDL/files/SDL-2.548-uaf-surface.patch | 127 +++++++++++++++++++++++++
 3 files changed, 212 insertions(+)
Comment 10 matoro archtester 2024-05-02 15:47:39 UTC
Created attachment 892139 [details]
gdb context and complete backtrace

(In reply to Sam James from comment #8)
> (In reply to matoro from comment #7)
> > Created attachment 882292 [details]
> > build.log and emerge --info
> > 
> > Affects x86 even worse
> 
> Can you give a backtrace?

Backtrace is served.  Seems the reason why it's choking everywhere is because it's extremely early in the module startup.