* ffmpeg segfault with musl @ 2019-09-18 13:22 JS 2019-09-18 13:50 ` Rich Felker 2019-09-18 18:31 ` Natanael Copa 0 siblings, 2 replies; 5+ messages in thread From: JS @ 2019-09-18 13:22 UTC (permalink / raw) To: musl Hello Does anybody have experience/solution with ffmpeg segfaulting with musl? The issue happens when mpd tries to play wav file that is decoded by ffmpeg. Tested with musl 1.1.17 and 1.1.23 and both old and new ffmpeg versions. This does not happen with uClibc on the same hardware. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ffmpeg segfault with musl 2019-09-18 13:22 ffmpeg segfault with musl JS @ 2019-09-18 13:50 ` Rich Felker 2019-09-18 16:13 ` A. Wilcox 2019-09-18 18:31 ` Natanael Copa 1 sibling, 1 reply; 5+ messages in thread From: Rich Felker @ 2019-09-18 13:50 UTC (permalink / raw) To: musl On Wed, Sep 18, 2019 at 04:22:06PM +0300, JS wrote: > Hello > > Does anybody have experience/solution with ffmpeg segfaulting with > musl? The issue happens when mpd tries to play wav file that is > decoded by ffmpeg. Tested with musl 1.1.17 and 1.1.23 and both old > and new ffmpeg versions. This does not happen with uClibc on the > same hardware. I'm not aware of any such problem. Are there publicly available files you can reproduce the crash with? Is mpd necessary or does ffplay crash too? (easier test case) Rich ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ffmpeg segfault with musl 2019-09-18 13:50 ` Rich Felker @ 2019-09-18 16:13 ` A. Wilcox 0 siblings, 0 replies; 5+ messages in thread From: A. Wilcox @ 2019-09-18 16:13 UTC (permalink / raw) To: musl [-- Attachment #1.1: Type: text/plain, Size: 1742 bytes --] On 18/09/2019 08:50, Rich Felker wrote: > On Wed, Sep 18, 2019 at 04:22:06PM +0300, JS wrote: >> Hello >> >> Does anybody have experience/solution with ffmpeg segfaulting with >> musl? The issue happens when mpd tries to play wav file that is >> decoded by ffmpeg. Tested with musl 1.1.17 and 1.1.23 and both old >> and new ffmpeg versions. This does not happen with uClibc on the >> same hardware. > > I'm not aware of any such problem. Are there publicly available files > you can reproduce the crash with? Is mpd necessary or does ffplay > crash too? (easier test case) > > Rich I'll note here if it helps that I've been *incredibly* rough with ffplay and other ffmpeg consumers (including Firefox, Audacious, VLC) and I've never experienced an ffmpeg-related segfault on Adélie, ppc64 + x86_64. By "rough" I mean "files wrongly encoded by misbehaving programs", in addition to a wide swath of formats. I wanted to make sure that there wouldn't be any issues playing back any media. I've personally tested WAV (16-bit LE and 8-bit LE), AIFF (BE only), FLAC, AU (Sun only), MP2, MP3, M4A/AAC, Apple Lossless, Opus, WebM Audio, and CDDA (audio CDs). I'd be *very* curious to see an example WAV file as well, if they are unique in any way; this could even be a security-adjacent bug if there really is a buffer issue in mpd or ffmpeg. I'm also interested in what the audio stack looks like. For example, is this playing back to the ALSA back-end, Pulse, SDL, socket, sndio? I *have* seen a bit of trouble out of the ALSA back end at times, and the SDL output has been no end of trouble. Best, --arw -- A. Wilcox (awilfox) Project Lead, Adélie Linux https://www.adelielinux.org [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ffmpeg segfault with musl 2019-09-18 13:22 ffmpeg segfault with musl JS 2019-09-18 13:50 ` Rich Felker @ 2019-09-18 18:31 ` Natanael Copa 2019-09-18 19:14 ` JS 1 sibling, 1 reply; 5+ messages in thread From: Natanael Copa @ 2019-09-18 18:31 UTC (permalink / raw) To: JS; +Cc: musl On Wed, 18 Sep 2019 16:22:06 +0300 JS <js@direct.lv> wrote: > Hello > > Does anybody have experience/solution with ffmpeg segfaulting with musl? > The issue happens when mpd tries to play wav file that is decoded by > ffmpeg. Tested with musl 1.1.17 and 1.1.23 and both old and new ffmpeg > versions. This does not happen with uClibc on the same hardware. FWIW, There is a known issue with mpd and thread stack size: https://gitlab.alpinelinux.org/alpine/aports/issues/4448 I think i sent the patch upstream years ago, but the response was something like musl was explicitly not supported because there is no __MUSL__ define or similar. I remember this because there are only two projects that I can remember that has responded that musl is explicitly not supported when sending patches, and mpd is one of them. -nc ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ffmpeg segfault with musl 2019-09-18 18:31 ` Natanael Copa @ 2019-09-18 19:14 ` JS 0 siblings, 0 replies; 5+ messages in thread From: JS @ 2019-09-18 19:14 UTC (permalink / raw) To: musl On Wed, Sep 18, 2019 at 9:32 PM Natanael Copa <ncopa@alpinelinux.org> wrote: > > On Wed, 18 Sep 2019 16:22:06 +0300 > JS <js@direct.lv> wrote: > > > Hello > > > > Does anybody have experience/solution with ffmpeg segfaulting with musl? > > The issue happens when mpd tries to play wav file that is decoded by > > ffmpeg. Tested with musl 1.1.17 and 1.1.23 and both old and new ffmpeg > > versions. This does not happen with uClibc on the same hardware. > > FWIW, There is a known issue with mpd and thread stack size: > https://gitlab.alpinelinux.org/alpine/aports/issues/4448 > > I think i sent the patch upstream years ago, but the response was > something like musl was explicitly not supported because there is no > __MUSL__ define or similar. > > I remember this because there are only two projects that I can remember > that has responded that musl is explicitly not supported when sending > patches, and mpd is one of them. > > -nc I've increased stack size and could run my custom mpd build on Alpine VM without segfaults. I'll test it on real hardware later on. Thanks a lot for your help! ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-09-18 19:14 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-09-18 13:22 ffmpeg segfault with musl JS 2019-09-18 13:50 ` Rich Felker 2019-09-18 16:13 ` A. Wilcox 2019-09-18 18:31 ` Natanael Copa 2019-09-18 19:14 ` JS
Code repositories for project(s) associated with this public inbox https://git.vuxu.org/mirror/musl/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).