From owner-freebsd-ports@freebsd.org Sat Sep 24 19:23:13 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8C84BE8DBF for ; Sat, 24 Sep 2016 19:23:13 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 89F8318AF for ; Sat, 24 Sep 2016 19:23:13 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::48d4:fbbc:5aa2:7cdb] (unknown [IPv6:2001:7b8:3a7:0:48d4:fbbc:5aa2:7cdb]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 291D83CA39; Sat, 24 Sep 2016 21:23:09 +0200 (CEST) Subject: Re: HTML5 videos crashes Firefox Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_96BF9AAA-D602-4A25-965E-AEFD531B843D"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6.1 From: Dimitry Andric In-Reply-To: <1474623338662-6132220.post@n6.nabble.com> Date: Sat, 24 Sep 2016 21:23:04 +0200 Cc: freebsd-ports@freebsd.org Message-Id: References: <56F804E9.8050506@netfence.it> <56FAAB3D.10906@netfence.it> <34cb33f2-69b0-aa43-1d98-6613713c8877@netfence.it> <1474623338662-6132220.post@n6.nabble.com> To: Robert_Burmeister X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2016 19:23:13 -0000 --Apple-Mail=_96BF9AAA-D602-4A25-965E-AEFD531B843D Content-Type: multipart/mixed; boundary="Apple-Mail=_E27B1FA4-68E2-4E49-8A4E-0E5F8D8FB5A4" --Apple-Mail=_E27B1FA4-68E2-4E49-8A4E-0E5F8D8FB5A4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 23 Sep 2016, at 11:35, Robert_Burmeister = wrote: > I was able to resolve HTML5 videos crashes in Firefox 49 on FreeBSD = 10.3 i386 > by changing the FFMPEG compile option to "SSE=3Doff" and recompiling = FFMPEG. >=20 > The LLVM compiler was not dealing with an SSE bug on my older core2 = CPU. I can't reproduce your particular crashes, but in the past I had created a patch to force the FFmpeg build to use stack realignment. Can you please try it out? E.g. put the attched patch in the root of your ports folder, and run: patch -p0 -f -F0 -i multimedia__ffmpeg-force-i386-stack-realign-1.diff This patch is needed, because FFmpeg assumes a 16-byte aligned stack, even on i386, where the ABI specifies a 4-byte alignment. On Linux, this ABI requirement was basically dumped at some point, leaving old applications in the cold, but not on FreeBSD. -Dimitry --Apple-Mail=_E27B1FA4-68E2-4E49-8A4E-0E5F8D8FB5A4 Content-Disposition: attachment; filename=multimedia__ffmpeg-force-i386-stack-realign-1.diff Content-Type: application/octet-stream; name="multimedia__ffmpeg-force-i386-stack-realign-1.diff" Content-Transfer-Encoding: 7bit Index: multimedia/ffmpeg/files/patch-configure =================================================================== --- multimedia/ffmpeg/files/patch-configure (revision 422403) +++ multimedia/ffmpeg/files/patch-configure (working copy) @@ -14,6 +14,19 @@ cpu="generic" intrinsics="none" +@@ -5682,7 +5677,11 @@ elif enabled gcc; then + elif enabled llvm_gcc; then + check_cflags -mllvm -stack-alignment=16 + elif enabled clang; then +- check_cflags -mllvm -stack-alignment=16 ++ if enabled x86_32; then ++ check_cflags -mllvm -stack-alignment=16 ++ check_cflags -mstack-alignment=16 ++ check_cflags -mstackrealign ++ fi + check_cflags -Qunused-arguments + check_cflags -Werror=implicit-function-declaration + check_cflags -Werror=missing-prototypes @@ -5823,7 +5818,7 @@ ifndef MAIN_MAKEFILE SRC_PATH:=\$(SRC_PATH:.%=..%) endif --Apple-Mail=_E27B1FA4-68E2-4E49-8A4E-0E5F8D8FB5A4-- --Apple-Mail=_96BF9AAA-D602-4A25-965E-AEFD531B843D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlfm0pwACgkQsF6jCi4glqMrvgCfXv/2itnrZ+oTrRoGbwM2sR4L cjAAoO0Z2Q6RXJB8y3Vzi4QR1LQiHmF2 =1cwx -----END PGP SIGNATURE----- --Apple-Mail=_96BF9AAA-D602-4A25-965E-AEFD531B843D--