Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 733634

Summary: media-libs/xvid-1.3.5 with media-video/mplayer media-video/ffmpeg - segmentation fault in libxvidcore.so.4.3 on an AMD Ryzen5 CPU during encoding
Product: Gentoo Linux Reporter: LABBE Corentin <clabbe.montjoie>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: normal CC: drmccoy
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description LABBE Corentin 2020-07-23 09:49:29 UTC
When encoding files, both ffmpeg and mplayer segfault:
ffmpeg[14486]: segfault at 7f84fd9e7840 ip 00007f84fd9e7840 sp 00007ffd5253f718 error 15 in libxvidcore.so.4.3[7f84fd9ba000+36000]
mencoder[9629]: segfault at 7f3afaefb840 ip 00007f3afaefb840 sp 00007ffdb024fa28 error 15 in libxvidcore.so.4.3[7f3afaece000+36000]
All xvid version in portage lead to this.
This version worked fine on my ADM FX processor.
I hit this segfault since upgrade to Ryzen5 CPU.

Manualy upgrading to latest xvid 1.3.7 fix this problem.
Upgrading ebuild to 1.3.7 need to change xvid.org to xvid.com and tarball is now tar.gz.

Reproducible: Always
Comment 1 LABBE Corentin 2020-07-23 09:55:59 UTC
I forgot to say, that the xvid package was recompiled (full world recompile) before use on the new cpu.

Furthermore it seems that xvid 1.3.5 has some vulnerability according to https://labs.xvid.com/source/:
Fix for various, long-standing and potentially critical security vulnerabilities in the decoder (credit to OSS-Fuzz)

So adding 1.3.7 to tree seems usefull.
Comment 2 Sven Hesse 2020-08-24 18:51:14 UTC
Just ran into this as well, this is apparently a bug in xvid due to their use of .rotext, which doesn't work with binutils 2.31 upwards. Relevant thread on their mailing list is here: https://list.xvid.org/pipermail/xvid-devel/2019-January/006451.html

It's been fixed with xvid 1.36, 1.37 is current. So yeah, a version bump would be great
Comment 3 Sven Hesse 2020-08-24 19:07:15 UTC
There's also a patch here: https://list.xvid.org/pipermail/xvid-devel/2019-January/006451.html

But I can't really use that as a user-patch, because the ebuild sets the build/generic/ and then the file to patch is outside that directory...
Comment 4 LABBE Corentin 2021-02-28 17:03:32 UTC
This version is no longer in tree.