From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +FYPH7l3VWFFOwEAgWs5BA (envelope-from ) for ; Thu, 30 Sep 2021 10:39:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UJyjGrl3VWFDbQAAbx9fmQ (envelope-from ) for ; Thu, 30 Sep 2021 08:39:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 559394E3C for ; Thu, 30 Sep 2021 10:39:20 +0200 (CEST) Received: from localhost ([::1]:56288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVrb4-00023b-SN for larch@yhetil.org; Thu, 30 Sep 2021 04:39:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVrao-00023P-C1 for bug-guix@gnu.org; Thu, 30 Sep 2021 04:39:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39874) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVrao-0005rU-1G for bug-guix@gnu.org; Thu, 30 Sep 2021 04:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVran-0006Wh-VE for bug-guix@gnu.org; Thu, 30 Sep 2021 04:39:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49509: libsigsegv fails to build on emulated aarch64 [core-updates] Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 30 Sep 2021 08:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49509 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Sarah Morgensen Received: via spool by 49509-submit@debbugs.gnu.org id=B49509.163299111225049 (code B ref 49509); Thu, 30 Sep 2021 08:39:01 +0000 Received: (at 49509) by debbugs.gnu.org; 30 Sep 2021 08:38:32 +0000 Received: from localhost ([127.0.0.1]:51420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVraI-0006Vv-8W for submit@debbugs.gnu.org; Thu, 30 Sep 2021 04:38:32 -0400 Received: from flashner.co.il ([178.62.234.194]:42824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVra2-0006VS-BB for 49509@debbugs.gnu.org; Thu, 30 Sep 2021 04:38:28 -0400 Received: from localhost (unknown [141.226.169.107]) by flashner.co.il (Postfix) with ESMTPSA id 86163404D4; Thu, 30 Sep 2021 08:38:08 +0000 (UTC) Date: Thu, 30 Sep 2021 11:37:36 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Sarah Morgensen , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 49509@debbugs.gnu.org References: <875yxhbynf.fsf@gnu.org> <87bl78akvx.fsf@gnu.org> <86czoqu6p7.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="K0asxcKWfcmO/p8t" Content-Disposition: inline In-Reply-To: <86czoqu6p7.fsf@mgsn.dev> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 49509@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: 559394E3C X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: n146vwRZJxF1 --K0asxcKWfcmO/p8t Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 29, 2021 at 07:40:20PM -0700, Sarah Morgensen wrote: > Hi all, >=20 > Ludovic Court=C3=A8s writes: >=20 > > Hello, > > > > Maxime Devos skribis: > > > >> Ludovic Court=C3=A8s schreef op zo 11-07-2021 om 00:19 [+0200]: > >>> Hi, > >>>=20 > >>> Maxime Devos skribis: > >>>=20 > >>> > FAIL: stackoverflow1 > >>> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >>> >=20 > >>> > qemu: uncaught target signal 11 (Segmentation fault) - core dumped > >>> > FAIL stackoverflow1 (exit status: 139) > >>> >=20 > >>> > FAIL: stackoverflow2 > >>> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >>> >=20 > >>> > Starting recursion pass 1. > >>> > Stack overflow 1 missed. > >>> > FAIL stackoverflow2 (exit status: 1) > >>>=20 > >>> For now I worked around it by offloading this to a =E2=80=9Creal=E2= =80=9D machine > >>> (overdrive1), where it builds fine. I wonder if there=E2=80=99s much= we can do > >>> regarding QEMU=E2=80=99s behavior here. > >> > >> Maybe detect if QEMU is used, and if so, don't run the test suite? > >> Not really a =E2=80=98clean=E2=80=99 solution though, w.r.t. reproduci= bility, > >> and I wouldn't know how to detect this. > > > > Yeah, I=E2=80=99d rather avoid that. > > > >> If this is a bug in QEMU, then ideally that would be fixed in QEMU, > >> but I wouldn't know where to look. > > > > It could be that someone else on the intertubes stumbled upon that > > issue, that=E2=80=99d be great. It could be that libsigsegv plays tric= ks that > > don=E2=80=99t fare well with QEMU=E2=80=99s expectations, as in > > . We should = ask > > on bug-libsigsegv@gnu.org. > > > > Thanks, > > Ludo=E2=80=99. >=20 > (I just realized I never actually replied to this!) >=20 > Configuring with "--disable-stackvma" seems to fix this. Doing this > makes libsigsegv use a different heuristic for determining if a SIGSEGV > was a stack overflow. I don't think it should impact functionality. > Perhaps just apply that to aarch64 until there's a proper fix? >=20 > This is probably a QEMU bug... I will try to report this to upstream > QEMU when I can, as I can't find my notes on this right now. >=20 I came across this on x86_64 when using our qemu-binfmt service when building for powerpc-linux too, and I'm pretty sure powerpc64le-linux and armhf-linux also. I haven't tried going the other direction, from aarch64-linux and emulating x86_64/i686 to see if it happens there too. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --K0asxcKWfcmO/p8t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmFVd0oACgkQQarn3Mo9 g1GlZQ/5AUiyGiR0Ej/zy+QUn02GNVJqWJrkX1TSpIiu2DKHv11ypk3lply3qYJw 5Coqg9PoecY6HUGgdobmJZDF8v19aFdFS/C172cYD0zVT0VXXSuNm1K8uO6VWNXX 7LUQ9AaBhKhxoNObnyn1ODGGt/q0P4JJuhjB72lrAt/Jq6RGReznRjnmjoZFDlOu T47dODs6ILF1ZMkdg6Vg18iqCVhCiNB1NyHbGCq8jf34IZXayYjtoJnNAItD2/xq WwkjCZC/iWqSePVTJ9iVR39v12oGOq+ROkkIBAdK0b3vm9xqa7lDyU9sk1ovjRqM bwBAMNFaWYNsCw1gaExQjwpcJ7MnAI3mRF4yX/yNi45qRnZ8bXPgMBrbDt+qN2R6 Px3Hj8Hk3dT8L1tmVriuVTp8XvrWZIaBuKgFRRgIyl2QF2Vzx+htROKtyzSCHSGd dgyouvW+e9ZqXBYHR7FXPYcT6LmhAhwkHUvX/kRnsk9MvXdbWnB9dRML5XuFDgX+ lbiSk7nnYXODGfnwnmdKvmlVimBo3r7g+1n3UbDwnvZcDyeH0bTEAbJt5gmOCqOX 1WKMABo7R/M74bjQMPwEqJObP1ceaaBswL1+rucOafabugevAvQ4EPMyO6ytwmYS JbnYRztWanR2baeBc4EzVsv/s1qXAkay3pI+O96w6ptptuY0OkM= =nt/r -----END PGP SIGNATURE----- --K0asxcKWfcmO/p8t--