From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14691 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "A. Wilcox" Newsgroups: gmane.linux.lib.musl.general Subject: Re: ffmpeg segfault with musl Date: Wed, 18 Sep 2019 11:13:11 -0500 Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: References: <150f8535-83a7-b7a0-d11d-8efc54d60348@direct.lv> <20190918135036.GA9017@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="M7Mhfg4TMjaOTLerc58PMg9UVLTZl7Pkm" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="118283"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux ppc64; rv:68.0) Gecko/20100101 Thunderbird/68.0 To: musl@lists.openwall.com Original-X-From: musl-return-14707-gllmg-musl=m.gmane.org@lists.openwall.com Wed Sep 18 18:13:32 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iAcaB-000Ucx-Qc for gllmg-musl@m.gmane.org; Wed, 18 Sep 2019 18:13:31 +0200 Original-Received: (qmail 30254 invoked by uid 550); 18 Sep 2019 16:13:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 30236 invoked from network); 18 Sep 2019 16:13:27 -0000 Autocrypt: addr=awilfox@adelielinux.org; prefer-encrypt=mutual; keydata= mQINBE+DjPIBEADTQ1H/e/avDUhgt8+T3TJpjGYoY9Y47EMfHqWMm9LjR9aiZSG6GWRbpjWS 4V0DqzIhNQw7HLkPws9CVqQkmpIeltQyGDV2qcR5AXxJ4lCRWHxwRzWE0cCzhLUR9BBWOO0U NINQY+2IqmzRAqXZ9zL+mGTles/qeheXmaWLKf/T0kqJFihoM+ItQvUWOkWUdVv0prhzXr9Q QUdt0NTIW8n4sPwtuSvQgqwSzCJQArh1myugVSGiIIN38pCU8g41Vh35mHHhbHjbn0o1mhrX B/gbsndGo7QQBKz4CPaSel+Fl92dCvVWTp1XYyjqeZx2xlx1zfDrXOTuzY1WmNHi7BgHYuem tG7Zyp7u9MR6FvLKgQhmvCQZXaa+9oNtwKckxoP/I5R8ede9YRb6pLyG5JC0pTTk7kpUZCX2 tm8pLKy899zomm8BBm71aEJHE44ABEl/PbM7tA7XhSPiWsdBmVCxH4bqpUgGMx0ztqhNsUul SDDhiAWgtYFHATynhmeKBDKthkO7lj4CzwI54dn1uiwDtvUFVyVsPMjJcCxFnONbOPcvm1R9 sDg5sn57dv0f+EtaU3ppZdotutjM9X7OEC93d1flO3k1LO20qn2ZcI24f3tEOLAjn5xZ1GdV 3BYBwrtuaaiO8tMdp0uAtILzkkrcr0vOi2/SngxtXFw+44X+WQARAQABtDNBLiBXaWxjb3gg KEFkw6lsaWUgTGludXgpIDxhd2lsZm94QGFkZWxpZWxpbnV4Lm9yZz6JAjoEEwEIACQCGwMF CwkIBwIGFQgJ In-Reply-To: <20190918135036.GA9017@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:14691 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --M7Mhfg4TMjaOTLerc58PMg9UVLTZl7Pkm Content-Type: multipart/mixed; boundary="NG5yleRgElwFLlWx4H0735EqLBHJpwOWj" --NG5yleRgElwFLlWx4H0735EqLBHJpwOWj Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable 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. >=20 > 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) >=20 > 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=C3=A9lie, 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 --=20 A. Wilcox (awilfox) Project Lead, Ad=C3=A9lie Linux https://www.adelielinux.org --NG5yleRgElwFLlWx4H0735EqLBHJpwOWj-- --M7Mhfg4TMjaOTLerc58PMg9UVLTZl7Pkm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEjNyWOYPU1SaTSMHHyynLUZIrnRQFAl2CV5cACgkQyynLUZIr nRTp5Q//bUJrp2HNYZlHJLqvL+7cRUO4jwIcH99PLH8Dk341N+DdG2NhEmy2JuhZ 8OoG8qMrTxCKGWO4g91YTpZ53O0pldb26zpNIbbgdpEi+p9e/mMuXKUcg7T4Sh6R xmQ8VxoKwIAma0H/YrC6+YJ2NYQBJsvfgG8CHuw8jSRuC1WN2iAcDS4RIpo1Z9G5 tIV/LUGEFlfASY6qCXsP9bITIJ2/4XkJxoUcBd+l6/NOoytYc2N/R82K6Y2VUjCn OrAdAWb4xegC2Gi6hKIFU4p++3wt6L13ngm6kHIZgHhcpN+NmJL3R/8DEDczPjrb yHpjir+EAyzfDaK9lmkx/IHfoGvQExKIGciB/1GWGgMHqy/WUQ7Wy+4bo2T7FiV4 4zngJi23K+HM5cpkEYz2LP43STR9NpRCkDyf6S1ui5VDGUYn4Fo5c4hXlypcUyU0 IogF/+5Ti2rskTpOEbmDd3wSun6NFx5wDc/qIFEh+fEQDFd2y/EaLex8YJUzR8M8 P+olXX0XqpFnUzTuKWT2HCK0Sz2LZptFawBB5BrCTFjBaZtugubz5CZz7snfWW9W ohXQkO5Qf35iGH7AjqqJ7Isk08G47NVOK/8WYF5PmyTiXF/ubvGpKRyFR2nZmxdY mOnc392HHjSyZ8CSR4R7EAXk9BN3AO1U+D6jvH4RoRfvqUOuhEM= =HvPF -----END PGP SIGNATURE----- --M7Mhfg4TMjaOTLerc58PMg9UVLTZl7Pkm--