Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#64266 - [ffmpeg] segfault with 4.2.1-2 when playing twitch or twitter videos

Attached to Project: Arch Linux
Opened by Nicolas Goy (kuon) - Friday, 25 October 2019, 17:20 GMT
Last edited by Maxime Gauduin (Alucryd) - Wednesday, 20 November 2019, 17:45 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

After update from ffmpeg 4.2.1-1 to 4.2.1-2 a segfault occurs in libavcodec.so.58.54.100. Both firefox and mpv crashes when playing a video from twitch or twitter.


Additional info:

dmesg error from mpv:

[81004.634639] mpv/opener[2215161]: segfault at 10 ip 00007f303e476b61 sp 00007f302f7260d8 error 4 in libavcodec.so.58.54.100[7f303e1ca000+979000]
[81004.634643] Code: e9 24 c6 ff ff 48 8b 44 24 38 48 63 f6 48 63 c9 44 0f bf 48 e8 44 0f bf 40 ea e9 4d fb ff ff 68 8b 44 24 38 48 63 f6 48 63 c9 <44> 0f bf 78 04 44 0f bf 70 06 e9 43 f5 ff ff 48 8b 6c 24 28 4d 89

firefox crash report:

https://crash-stats.mozilla.org/report/index/c6b8fc95-a40d-4d00-9763-3bac20191025


Youtube plays properly with no crash, but twitter and twitch both crash. I have not tested other platform yet, it might be connected to the codec used.


Steps to reproduce:

* update ffmpeg to version 4.2.1-2
* open firefox 70.0
* go to twitch.tv, play a video

or

* install streamlink 1.2.0-1
* install mpv 0.30.0
* run `streamlink --player mpv twitch.tv/<a channel> best`


Workaround:

Downgrading to 4.2.1-1 fixed firefox and mpv.
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Wednesday, 20 November 2019, 17:45 GMT
Reason for closing:  Fixed
Additional comments about closing:  4.2.1-3
Comment by Nicolas Goy (kuon) - Friday, 25 October 2019, 17:24 GMT
MPV crash report:

PID: 2215156 (mpv)
UID: 1000 (kuon)
GID: 1000 (kuon)
Signal: 11 (SEGV)
Timestamp: Fri 2019-10-25 18:20:26 CEST (1h 3min ago)
Command Line: mpv --title twitch.tv/guile93 -
Executable: /usr/bin/mpv
Control Group: /user.slice/user-1000.slice/session-1.scope
Unit: session-1.scope
Slice: user-1000.slice
Session: 1
Owner UID: 1000 (kuon)
Boot ID: c4e708fb915a44529213b94679b803d4
Machine ID: b20570e1eb354484842cd3f69b841431
Hostname: yoda
Storage: /var/lib/systemd/coredump/core.mpv.1000.c4e708fb915a44529213b94679b803d4.2215156.1572020426000000000000.lz4
Message: Process 2215156 (mpv) of user 1000 dumped core.

Stack trace of thread 2215161:
#0 0x00007f303e476b61 n/a (libavcodec.so.58)

Stack trace of thread 2215156:
#0 0x00007f303d4a1f7a pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x000055a01bf8f622 n/a (mpv)
#2 0x000055a01bfc6f0a n/a (mpv)
#3 0x000055a01bfc9771 n/a (mpv)
#4 0x000055a01bfbc499 n/a (mpv)
#5 0x000055a01bfbef18 n/a (mpv)
#6 0x000055a01bfc016a n/a (mpv)
#7 0x000055a01bfc4409 n/a (mpv)
#8 0x00007f303c528153 __libc_start_main (libc.so.6)
#9 0x000055a01bf402ae n/a (mpv)

Stack trace of thread 2215159:
#0 0x00007f303d4a1f7a pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x000055a01bfa55f5 n/a (mpv)
#2 0x000055a01bfa75c9 mpv_wait_event (mpv)
#3 0x000055a01bfc22e5 n/a (mpv)
#4 0x00007f303d6e020e n/a (liblua5.2.so.5.2)
#5 0x00007f303d6ebfec n/a (liblua5.2.so.5.2)
#6 0x00007f303d6e05b8 n/a (liblua5.2.so.5.2)
#7 0x00007f303d6dc68b lua_callk (liblua5.2.so.5.2)
#8 0x000055a01bfc1808 n/a (mpv)
#9 0x00007f303d6e020e n/a (liblua5.2.so.5.2)
#10 0x00007f303d6e0582 n/a (liblua5.2.so.5.2)
#11 0x00007f303d6dfb30 n/a (liblua5.2.so.5.2)
#12 0x00007f303d6e07ff n/a (liblua5.2.so.5.2)
#13 0x00007f303d6dc751 lua_pcallk (liblua5.2.so.5.2)
#14 0x000055a01bfc3145 n/a (mpv)
#15 0x00007f303d6e020e n/a (liblua5.2.so.5.2)
#16 0x00007f303d6e0582 n/a (liblua5.2.so.5.2)
#17 0x00007f303d6dfb30 n/a (liblua5.2.so.5.2)
#18 0x00007f303d6e07ff n/a (liblua5.2.so.5.2)
#19 0x00007f303d6dc751 lua_pcallk (liblua5.2.so.5.2)
#20 0x000055a01bfc363d n/a (mpv)
#21 0x000055a01bfcaa5b n/a (mpv)
#22 0x00007f303d49b4cf start_thread (libpthread.so.0)
#23 0x00007f303c6002d3 __clone (libc.so.6)

Stack trace of thread 2215157:
#0 0x00007f303c5f59ef __poll (libc.so.6)
#1 0x000055a01c038984 n/a (mpv)
#2 0x00007f303d49b4cf start_thread (libpthread.so.0)
#3 0x00007f303c6002d3 __clone (libc.so.6)

Stack trace of thread 2215160:
#0 0x00007f303d4a1f7a pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x000055a01bfa55f5 n/a (mpv)
#2 0x000055a01bfa75c9 mpv_wait_event (mpv)
#3 0x000055a01bfc22e5 n/a (mpv)
#4 0x00007f303d6e020e n/a (liblua5.2.so.5.2)
#5 0x00007f303d6ebfec n/a (liblua5.2.so.5.2)
#6 0x00007f303d6e05b8 n/a (liblua5.2.so.5.2)
#7 0x00007f303d6dc68b lua_callk (liblua5.2.so.5.2)
#8 0x000055a01bfc1808 n/a (mpv)
#9 0x00007f303d6e020e n/a (liblua5.2.so.5.2)
#10 0x00007f303d6e0582 n/a (liblua5.2.so.5.2)
#11 0x00007f303d6dfb30 n/a (liblua5.2.so.5.2)
#12 0x00007f303d6e07ff n/a (liblua5.2.so.5.2)
#13 0x00007f303d6dc751 lua_pcallk (liblua5.2.so.5.2)
#14 0x000055a01bfc3145 n/a (mpv)
#15 0x00007f303d6e020e n/a (liblua5.2.so.5.2)
#16 0x00007f303d6e0582 n/a (liblua5.2.so.5.2)
#17 0x00007f303d6dfb30 n/a (liblua5.2.so.5.2)
#18 0x00007f303d6e07ff n/a (liblua5.2.so.5.2)
#19 0x00007f303d6dc751 lua_pcallk (liblua5.2.so.5.2)
#20 0x000055a01bfc363d n/a (mpv)
#21 0x000055a01bfcaa5b n/a (mpv)
#22 0x00007f303d49b4cf start_thread (libpthread.so.0)
#23 0x00007f303c6002d3 __clone (libc.so.6)

Stack trace of thread 2215158:
#0 0x00007f303d4a1f7a pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x000055a01bfa55f5 n/a (mpv)
#2 0x000055a01bfa75c9 mpv_wait_event (mpv)
#3 0x000055a01bfc22e5 n/a (mpv)
#4 0x00007f303d6e020e n/a (liblua5.2.so.5.2)
#5 0x00007f303d6ebfec n/a (liblua5.2.so.5.2)
#6 0x00007f303d6e05b8 n/a (liblua5.2.so.5.2)
#7 0x00007f303d6dc68b lua_callk (liblua5.2.so.5.2)
#8 0x000055a01bfc1808 n/a (mpv)
#9 0x00007f303d6e020e n/a (liblua5.2.so.5.2)
#10 0x00007f303d6e0582 n/a (liblua5.2.so.5.2)
#11 0x00007f303d6dfb30 n/a (liblua5.2.so.5.2)
#12 0x00007f303d6e07ff n/a (liblua5.2.so.5.2)
#13 0x00007f303d6dc751 lua_pcallk (liblua5.2.so.5.2)
#14 0x000055a01bfc3145 n/a (mpv)
#15 0x00007f303d6e020e n/a (liblua5.2.so.5.2)
#16 0x00007f303d6e0582 n/a (liblua5.2.so.5.2)
#17 0x00007f303d6dfb30 n/a (liblua5.2.so.5.2)
#18 0x00007f303d6e07ff n/a (liblua5.2.so.5.2)
#19 0x00007f303d6dc751 lua_pcallk (liblua5.2.so.5.2)
#20 0x000055a01bfc363d n/a (mpv)
#21 0x000055a01bfcaa5b n/a (mpv)
#22 0x00007f303d49b4cf start_thread (libpthread.so.0)
#23 0x00007f303c6002d3 __clone (libc.so.6)
Comment by Nicolas Goy (kuon) - Wednesday, 06 November 2019, 06:47 GMT
It seems that version 4.2.1-3 fixed the issue. I upgraded and didn't get the issue yet.

Loading...