From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eIkADUa+XF8rEgAA0tVLHw (envelope-from ) for ; Sat, 12 Sep 2020 12:25:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kEJEB0a+XF/nTAAA1q6Kng (envelope-from ) for ; Sat, 12 Sep 2020 12:25:42 +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 911259407C8 for ; Sat, 12 Sep 2020 12:25:41 +0000 (UTC) Received: from localhost ([::1]:35972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kH4b6-0004Nj-9m for larch@yhetil.org; Sat, 12 Sep 2020 08:25:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kH4aU-0004NU-Bx for bug-guix@gnu.org; Sat, 12 Sep 2020 08:25:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kH4aU-0006A6-11 for bug-guix@gnu.org; Sat, 12 Sep 2020 08:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kH4aT-0000Pp-To for bug-guix@gnu.org; Sat, 12 Sep 2020 08:25:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43088: GNU Mailutils fails its test suite on aarch64 Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 12 Sep 2020 12:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43088 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice Received: via spool by 43088-submit@debbugs.gnu.org id=B43088.15999134781561 (code B ref 43088); Sat, 12 Sep 2020 12:25:01 +0000 Received: (at 43088) by debbugs.gnu.org; 12 Sep 2020 12:24:38 +0000 Received: from localhost ([127.0.0.1]:46544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kH4a6-0000P6-6d for submit@debbugs.gnu.org; Sat, 12 Sep 2020 08:24:38 -0400 Received: from mout.gmx.net ([212.227.17.20]:32905) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kH4a3-0000Os-Pv for 43088@debbugs.gnu.org; Sat, 12 Sep 2020 08:24:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599913457; bh=nAZJ1aWqLWEnEjQzmuCdPilax2VkGIMbJYX6EJtEXT8=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=VFI8RdGDfkYAtUqwynk8iB39XimwkwvOuPpxhCgEuvcnlIyLmWpWeKX9AuGxjOyFx CmKWdxY3tyZ4b3pNj10QqQMs72++8VQVgTBvEEChMZwvdzbvS/Js1J6j1kdKjcPiZY zqThiTxrkaxeoLxfgmhfwJLaw+I/zMeDLrGJiv3s= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.com (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1M42nY-1kH4Zl36X2-0002L3; Sat, 12 Sep 2020 14:24:17 +0200 References: <87tuwmlrwu.fsf@nckx> User-agent: mu4e 1.4.13; emacs 27.1 From: Pierre Langlois In-reply-to: <87tuwmlrwu.fsf@nckx> Date: Sat, 12 Sep 2020 13:24:13 +0100 Message-ID: <87wo0z6v4i.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Provags-ID: V03:K1:YOUQYAzUZlLWcPoM4D37YrqNxfC4sQhUYVg8drlV34O8CQzkzoW 8V8QqKA40eblj9QpH7Y3xasMU4KSfIOJUI2dnSrzwwQHcN6l5eBT0GrDYLcas5EhU5Eicdh LJiyHWma/IkcGEcQiBlRECGwf4dmtiQ2lulxfD07mwQXyw/uoiN/M9b/tvhLdv/yA5zWMuT SfqFIOJx4dopnqNuLkUyA== X-UI-Out-Filterresults: notjunk:1;V03:K0:JuXlpBwnO20=:QVpKN55RsgSmNLzDHfSS3v HNGSpS7OnG15q0n+WCwoUhSHJ9SoTWof6ius+oqDBlkGnANo/wVTtD3BMoLcPJXFl61VR8GyI CuIDNfdcR3pX518aeEntWTcIaZMCwznlMK1tRMtHp3C1BLfFkWYyHCjCjwGGXHE1PHvFQJr3n Zgrgk+0Crxy/8ZK8HA014vEQhv6lDQrNPOljssFzSZvCrQ3xenurk8w7U3JXL+OcF3xzX5hju HfgCRZ1RFKmR3BLxXsV66qftmnyPlLhwTyzP/pnEThmc8yK1XVVapvUpBZUyH+ptZOw7pbB2s iBa8klkAX/aCWkVElGVm0F8M8ejCz5VI31Q8usEFZAql0vDtpJG2TK+iDylhG6oAfU2mrNTJ1 Jd0nBA9JWBgpaqgzupmpwdsCBvppdW1fLszgmm1FItnLeTSHnFbCQlvicS1xD6guXQLKNTDmw QozYtrmUfO0cBOozTLZxvq177s4X2P7yYIqRxCOdW2xTNBFfUeb216hJNyroUJ17ycYi5Dno9 MAB1YCrA+VTE+kRQL3z0GufToLxz2aq1owW1Q3gbtLOBM6PBFM8vLkLj7sd9/dhVKfnH2t04N FzSQ9sXt3g3mf1UleQraH5hfBLSKQ05yY7wSknjjQa8AEgFYeaS3emfIbtqbHqVuZCS13WBM8 jcsr+h2CzoQobZnwBgWQuQcSmHgxhz0AIeWhM8BaGoGn705Uu2eCjdcINtFFkT/tU4gLyKMes baXcjAQopO0OL+iE+yNFcwqLewK5GJpzDy5WpFuGPsq3dzN8qyF/A8+rdFNOQmViLOkr274d5 ocHfK6smVLTojvg/vysLYk9BNuzMRl/zT48SyuJFL5SSABdKU+TwcXbU8Ks/nUcT9OYh3er2f C3HJnDf4780U/NNM832ffAZZscMI4US9Nb3aFr1VTZMS9DgSdQgJCQAN1r/fdF5z8FWcu7e1m MhzYK4v5JMFiS+4I2EQgUCv5rpgSQhR7u/Q9G+LK6HpsXvxg3KQUW0pA9zUOBMO9ewH4ND8t/ O3CsG6VQ0AkLFIYsajSGyu6C/ctgvSnzGXrTuHKeBtbqmJN6UsrL9WAGLNQdQeeIhtgWPYD5u ElQbalBF5Bps1IAWvgRw+jRua1p2dWFe8Rc4whOT1crGNI6wufJZ6J0me6/u/Z/E1CDdYcNF7 o9MjoozzfsIh9sRgINEu89lQQo10C8HHLFMXcl+q5mDr0jNjFKDg7dqe88VK3A++1nQui0KKs I3I4/3hfWUBmFXZJqOUFHMIc/1FEc3J7+obkx+g== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 43088@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmx.net header.s=badeba3b8450 header.b=VFI8RdGD; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -2.11 X-TUID: 18v+3P4li2bE --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Tobias, Tobias Geerinckx-Rice via Bug reports for GNU Guix writes: > Guix, > > =E2=80=98readmsg=E2=80=99 from mailutils@3.10 segfaults on aarch64, block= ing=20 > =E2=80=98emacs=E2=80=99 > and =E2=80=98emacs-no-x=E2=80=99, but not =E2=80=98emacs-minimal=E2=80=99. > > --- ./readmsg/tests/testsuite.dir/4/testsuite.log > --------------------------- > > # -*- compilation -*- > 4. hdr.at:17: testing readmsg -h ... > ./hdr.at:17: > MAIL=3D$abs_top_srcdir/testsuite/spool/mbox1 > FOLDER=3D$MAIL > export MAIL FOLDER > readmsg --no-site --no-user readmsg -h SOMETHING > --- /dev/null 2020-08-25 23:01:26.064000000 +0000 > +++ > /tmp/guix-build-mailutils-3.10.drv-0/mailutils-3.10/readmsg/tests/testsui= te.dir/at-groups/4/stderr=20 > 2020-08- > 27 15:25:42.447733149 +0000 > @@ -0,0 +1 @@ > +/tmp/guix-build-mailutils-3.10.drv-0/mailutils-3.10/readmsg/tests/testsu= ite.dir/at-groups/4/test-source: > line 2 > 1: 30506 Segmentation fault readmsg --no-site --no-user readmsg -h > SOMETHING > --- - 2020-08-27 15:25:42.455592145 +0000 > +++ > /tmp/guix-build-mailutils-3.10.drv-0/mailutils-3.10/readmsg/tests/testsui= te.dir/at-groups/4/stdout=20 > 2020-08- > 27 15:25:42.451733151 +0000 > @@ -1,17 +1,2 @@ > From bar@dontmailme.org Fri Dec 28 23:28:09 2001 > -Received: (from bar@dontmailme.org) > - by dontmailme.org id fERKR9N16790 > - for foobar@nonexistent.net; Fri, 28 Dec 2001 22:18:08 +02= 00 > -Date: Fri, 28 Dec 2001 23:28:08 +0200 > -From: Bar > -To: Foo Bar > -Message-Id: <200112232808.fERKR9N16790@dontmailme.org> > -Subject: Re: Jabberwocky > - > -It seems very pretty, but it's *rather* hard to understand!' > -Somehow it seems to fill my head with ideas -- only I don't > -exactly know what they are! However, SOMEBODY killed SOMETHING: > -that's clear, at any rate... > - > - > > ./hdr.at:17: exit code was 139, expected 0 > 4. hdr.at:17: 4. readmsg -h (hdr.at:17): FAILED (hdr.at:17) I've been hit by this as well so I thought I'd look into it today, and I think I found the problem! I just sent an email upstream to bug-mailutils@gnu.org about it. Essentially, we have a `weedc' variable that's not initialized, and on aarch64 it gets initialized with `0xffff'. See https://git.savannah.gnu.org/cgit/mailutils.git/tree/readmsg/readmsg.c#n469 Here's the reproducer I just sent upstream: ``` $ export MAIL=3D/tmp/guix-build-mailutils-3.10.drv-0/mailutils-3.10/testsui= te/spool/mbox1 $ export FOLDER=3D/tmp/guix-build-mailutils-3.10.drv-0/mailutils-3.10/tests= uite/spool/mbox1 $ ... edit readmsg script so that `gdb --args' is prepended $ /tmp/guix-build-mailutils-3.10.drv-0/mailutils-3.10/readmsg/readmsg --no-= site --no-user readmsg -h SOMETHING ... (gdb) start Temporary breakpoint 2 at 0x4034c8: file readmsg.c, line 463. Starting program: /tmp/guix-build-mailutils-3.10.drv-0/mailutils-3.10/readm= sg/.libs/readmsg --no-site --no-user readmsg -h SOMETHING [Thread debugging using libthread_db enabled] Using host libthread_db library "/gnu/store/cb88z63hyg1icd2kkahiink2p291mhr= 2-glibc-2.31/lib/libthread_db.so.1". Temporary breakpoint 2, main (argc=3D6, argv=3D0xffffffffeb58) at readmsg.c= :463 463 int *set =3D NULL; (gdb) p weedc $4 =3D 65535 (gdb) watch weedc Hardware watchpoint 3: weedc (gdb) c Continuing. From=20bar@dontmailme.org Fri Dec 28 23:28:09 2001 Program received signal SIGSEGV, Segmentation fault. 0x00000000004030a0 in print_header (message=3D0x470f90, unix_header=3D1, we= edc=3D65535, weedv=3D0x4042c8 <__libc_csu_init>) at readmsg.c:353 353 if (weedv[j][0] =3D=3D '!') (gdb) p j $5 =3D 0 (gdb) p weedv[j][0] Cannot access memory at address 0x910003fda9bc7bfd (gdb) up #1 0x0000000000403a2c in main (argc=3D2, argv=3D0xffffffffeb78) at readmsg= .c:580 580 print_header (msg, unix_header, weedc, weedv); (gdb) p weedc $6 =3D 65535 (gdb)=20 ``` The test suite all passes if we initialize `int weedc =3D 0'! Thanks, Pierre --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAl9cve0YHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31UXDoH/A0B+U4V782fANjUy5ILMo1m afpyI9W6zjbMRE66sLZmGRnwX4TavriJFiAj1b8ao13NM/ULyDSX0HQizTdGzowk or5jRyRTlNFGsjzvAeR/tnxQFvWR4OTeLB8mlr6v3zNogl/7irS2Kllo0I80KVx2 eeYZ7V7wCM5v9nMshFTm7vTtEsU+qiCyjE80Xy1PW+7dUycsypcxGkInT9PL324I SIgkppV8JGQuL+pPtBzHxK8MpfCbGAu07xwJy08p7nOBGO6kPIIBTR7yVn62KYp8 HMHmTjqczwAIzJ6BzwYsXk7I7PKa65fxtQ4smHsq6DYD1bvpryFEpct6ulD9uPc= =4825 -----END PGP SIGNATURE----- --=-=-=--