Bug 25587 - segmentation fault when using libxvidcore
Summary: segmentation fault when using libxvidcore
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2019-10-19 06:34 CEST by Yuri Galitsky
Modified: 2019-10-23 23:08 CEST (History)
4 users (show)

See Also:
Source RPM: xvid-1.3.5-3.mga7.tainted.src.rpm
CVE:
Status comment:


Attachments

Description Yuri Galitsky 2019-10-19 06:34:56 CEST
Description of problem:
segmentation fault when encoding video using libxvidcore library.

Version-Release number of selected component (if applicable):
lib64xvidcore4-1.3.5-3.mga7.tainted
Using lib64xvidcore4-1.3.4-3.mga6.tainted package solves the problem.

How reproducible:
Always

Steps to Reproduce:
1.Try to encode video input.mp4 to output.mp4 with FFmpeg:
ffmpeg -i input.mp4 -c:a copy -c:v libxvid output.mp4

Actual results: segmentation fault.

Additional information:
http://list.xvid.org/pipermail/xvid-devel/2019-January/006449.html
Probable patch:
https://github.com/rpmfusion/xvidcore/blob/master/xvidcore-check_cpu_features-crash.patch
Comment 1 David GEIGER 2019-10-19 07:56:06 CEST
Should be fixed with xvid-1.3.5-3.1.mga7 in Tainted/Updates_testing repo!

Please test it, thanks in advance.

CC: (none) => geiger.david68210

Comment 2 Lewis Smith 2019-10-19 10:43:51 CEST
Thank you Yuri for this error report. And once more to DavidG for responding immediately.

Testing M7/x64 BEFORE the update:
ffmpeg-4.1.4-1.mga7.tainted, lib64xvidcore4-1.3.5-3.mga7.tainted

@David : it looks as if you cited the updated SRPM name, rather than the pkg:
 lib64xvidcore4-1.3.5-3.1.mga7.tainted
This will need an advisory...

Using Yuri's example:
 $ ffmpeg -i VID-20180410-WA0000.mp4 -c:a copy -c:v libxvid output.mp4
 ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
 ... [the library in question is not among those listed]
 Press [q] to stop, [?] for help
 Segmentation fault (core dumped)
so the fault is confirmed.

I could not yet see the updated package in tainted updates testing. Try later.
Assigning to QA. Easy to test.

Assignee: bugsquad => qa-bugs

Comment 3 Yuri Galitsky 2019-10-19 11:53:09 CEST
Tested on Mageia 7 64-bit system, works without any issues. I confirm that the bug is fixed.
Comment 4 David GEIGER 2019-10-19 12:47:31 CEST

Advisory:
========================

This update fixes a segmentation fault when encoding video using libxvidcore library.

========================

Packages in 7/core/updates_testing:
========================
libxvidcore4-1.3.5-3.1.mga7.tainted.i586.rpm
libxvidcore-devel-1.3.5-3.1.mga7.tainted.i586.rpm
lib64xvidcore4-1.3.5-3.1.mga7.tainted.x86_64.rpm
lib64xvidcore-devel-1.3.5-3.1.mga7.tainted.x86_64.rpm

Source RPM: 
========================
xvid-1.3.5-3.1.mga7.src.rpm
Comment 5 Len Lawrence 2019-10-19 15:28:49 CEST
Mageia 7, x86_64

Before update:
$ ffmpeg -i HandelTrumpetConcerto_in_D.mkv -c:a copy -c:v libxvid output.mp4
ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
[...]
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (libxvid))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
Segmentation fault (core dumped)

After update:
$ ffmpeg -i HandelTrumpetConcerto_in_D.mkv -c:a copy -c:v libxvid output.mp4
[...]
[mp4 @ 0x1e89b40] track 1: codec frame size is not set
[mp4 @ 0x1e89b40] opus in MP4 support is experimental, add '-strict -2' if you want to use it.
Could not write header for output file #0 (incorrect codec parameters ?): Experimental feature
Error initializing output stream 0:0 -- 
Conversion failed!
$ ll output.mp4 
-rw-r--r-- 1 lcl lcl 0 Oct 19 14:02 output.mp4

At least, the segfault is cured.  The '-strict 2' option did not help.

$ ffmpeg -i pangaea.mp4 -c:a copy -c:v libxvid output.mp4
<results in frame by frame conversion>
video:149016kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.041241%

output.mp4 reproduces the original anaglyphic video.

This looks good from QA point of view.

CC: (none) => tarazed25
Whiteboard: (none) => MGA7-64-OK

Len Lawrence 2019-10-22 07:44:59 CEST

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Thomas Backlund 2019-10-23 20:02:44 CEST

Keywords: (none) => advisory
CC: (none) => tmb

Comment 6 Mageia Robot 2019-10-23 23:08:30 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2019-0178.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.