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 YGetDRQPXl/zewAA0tVLHw (envelope-from ) for ; Sun, 13 Sep 2020 12:22:44 +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 8E37BxQPXl/xSgAA1q6Kng (envelope-from ) for ; Sun, 13 Sep 2020 12:22:44 +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 69D5494036A for ; Sun, 13 Sep 2020 12:22:43 +0000 (UTC) Received: from localhost ([::1]:53974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHR1k-0005Xi-ES for larch@yhetil.org; Sun, 13 Sep 2020 08:22:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHR18-0005W7-AH for bug-guix@gnu.org; Sun, 13 Sep 2020 08:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38063) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHR17-0008OK-VS for bug-guix@gnu.org; Sun, 13 Sep 2020 08:22:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kHR17-0006dZ-RU for bug-guix@gnu.org; Sun, 13 Sep 2020 08:22: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: Sun, 13 Sep 2020 12:22: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.159999967025452 (code B ref 43088); Sun, 13 Sep 2020 12:22:01 +0000 Received: (at 43088) by debbugs.gnu.org; 13 Sep 2020 12:21:10 +0000 Received: from localhost ([127.0.0.1]:49609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHR0E-0006cO-2K for submit@debbugs.gnu.org; Sun, 13 Sep 2020 08:21:10 -0400 Received: from mout.gmx.net ([212.227.15.18]:55521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHR08-0006bV-KY for 43088@debbugs.gnu.org; Sun, 13 Sep 2020 08:21:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599999642; bh=/7ET0VB/CwSCSnvOMeHpf+UtikMn+4uv+hQbXwSA2HM=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=Y+6KA0ohxWXXgfGZUfSmUJGGxfjdVsuSxF6VOmQvbdb+EAwy7xuMMAJO8/rZZ1JWs Cpx2QG1zB52qlhm77BezjkaJr2Q0Kxh50WjtdBXXPOXJoJp2b9/U1VFLf6x7Dl8apn 2AVL6QgqKxwXN7Dzf2jTh9WAnZxrIwt8wIndMSTI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MgeoI-1kj4di0WPE-00h4ai; Sun, 13 Sep 2020 14:20:42 +0200 References: <87tuwmlrwu.fsf@nckx> <87wo0z6v4i.fsf@gmx.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Pierre Langlois In-reply-to: <87wo0z6v4i.fsf@gmx.com> Date: Sun, 13 Sep 2020 13:20:38 +0100 Message-ID: <87h7s17trd.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:wGG86763CLyGB0jp+7CMtyrPAOvL5HiWJfqiQc2XyaCBkQbICfp 8hiIKhfX6FgMW7Ej6LADHfUZ07/0YWbkd6xR7PhIQEvRH6OLL52di/Sb0Hzkb7t0FGtIF2B sihjzQNcfgo9dcCL6xLMfEnH/2xACeOYt3V/2y/+ZNrG5ajsC69H9BJb6LKXmqFhqk4lEuh Jlr1iVP6Ru9ERtUB0uFZg== X-UI-Out-Filterresults: notjunk:1;V03:K0:A2PKkNcxdak=:uiqt7MI4yZEK+g9Lh12Q5J M/uVZBTl4oCBe558dcxykSB+Ihzy2Il/K1HSNjvRBCYhb6hz85gBcshaQdzO1FKwhEC+1lukm p0Gtf1eOM9fI1wva/DevSq69L3c72sBBigKay52KvxHj47JmYzVPCHj36acWGcPfoMzUmDwpu 9x7nP9GZ6COVLPBkcdzrTeBky8TXde7cMSSMPMK+6FvoMr4kvGkOcr2M1ndIPdV1Lk9HdCxbg 9uV150oAMfdLGJ23fWHR2CJ76ALm1sUpq3pC/YaVYzCRk3i47ZbiRlUuHvdl0+x8BMfHRU30i FCNEy/eJABZzX/V8IqbFvuBaqj7PqsbHwQQXH+5dNh+wc3TiVrXy7j23+xM2VqTRPjlfD1l/o NvTaXrrjlD0Sqeqn7ZqgOWkTkYTSMB73sqj+rTtzElldljF3BfAtUFwONo5SMPnVjJGDGHiGo FGRPSCCslK26tHsc8wDGAxWulkzY9v3wriAgWhm14viwsOmXy0wVy8NPm3wasDS/cB9Zv17AQ JLD/rdCcCwLU2C4sc63m3Oa1EdbwvxAAaWjnnjpc0xL6zMgU+jCwJF7nzFU6KsWntV+7/OpO8 SHcFHwXCjhlv/YWy3xoP+9Z302dXEnFz2zcsPGrMbn0+mujPP3UBWExNQT2sL20TKxclj7HSr s69oJjiKOxvxdzmUgoJIrIdbDEnx25f9AShHplEnrCJSjelsaDCSWQw6Txi8ThKw9YH0cvbsz XYqBPaejgzAahVPCZezRh3lZw9ErbYbIo2VTO7AYoQG+U6/a6jsSPeaNojdOfbb3IEge5SNnf /3nlzU1HEFN5GYm76taAIBFkg8bK6ng4/ov8EU6GXfR466JyVgdW4gqJ2nVIWdipPOQg3WwVJ gOmVa4EERG0zQDXP2io7E6i4+zs8hYNX4M94aLkWQmmCZXRbl1jEGJkuij5iUnZvIX6wTRCLQ Jx2rwLUhWGdDb+iBpfnXw6fTn7qvEbfgyg3a4RYCCRIybO07wdq6R5rJ8eGmzFdFp7hi5J665 OQ/Bjp4uFDqXauPrj56naBUChEAHBuXNfeQV7+UhghgNAbH0n7oFS+CLHqoMfz/KWVU6foxB+ AOWMhFLHoFc2PBc4UVwOHcuxe/GtbXeYJ0tWrEUrK1A7O1z1rpBBfj9Gzt9Aw0uFajxhIMAFm oBfuIVtPh9eRdJWl+OlwamOgYoYQrNm20vi25RCQ2gPXQ/4AG29xQhZiq4npFKodyDIVbQp9s M/xvdeNCsLOdullJnw7PflsoewZ+Co8GsFNgHXw== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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=Y+6KA0oh; 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: gewYVNxsJHpg --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Pierre Langlois writes: > 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, bloc= king=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/testsu= ite.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/tests= uite.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/testsu= ite.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 +0= 200 >> -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. Cool, upstream fixed the bug! [0] Here's a patch to apply the fix before we get the next release. OK to commit? Thanks, Pierre [0]: https://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=3D5ca6382fe= 8adb5bc436a6d873c8b86c69d5abfd1 --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAl9eDpYYHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31UIz8H/13KXBixOtvVFd0bAtmg5Dz7 DOxX2z1fJh1P/ttonJZ9qrbnRv2z46NCdU5Yc81dNd+g4QcyMqkeqQJAomy2TywS 0ZlZKYu8ziJhEhxLAlvxrSR+lNIc7N6zbOGyCn+WjQ9R9HPnr3SW6EwqhUqQLpnH dau+FzNuc+Gc1v5dna62Cd99Fx4tqyRqsHiIcEjEhCC0pRaeJ+j/m0ywyQXLlhCZ p0yl4Pgd3nL/vRal4vMKiNMPf4t1qpenWgdd+PbPeonsToccC4Ur8SFD/k0nSd5i 7FA+b6DZmOEkvth878rwvYE+B71/k2K19XA7/zxqEJHxrG8Vz4Oq7UfrqxWDsHo= =Nd5E -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-mailutils-Fix-unitialized-variable-in-readmsg.patch Content-Transfer-Encoding: quoted-printable =46rom 0aac8082acd0c19a2d991376c7527053e196a1fd Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Sun, 13 Sep 2020 13:02:52 +0100 Subject: [PATCH] gnu: mailutils: Fix unitialized variable in readmsg. Fixes mailutils on aarch64, see . * gnu/packages/patches/mailutils-fix-uninitialized-variable.patch: New file. * gnu/packages/mail.scm (mailutils)[source]: Add patch. * gnu/local.mk (dist_patch_DATA): Register patch. =2D-- gnu/local.mk | 1 + gnu/packages/mail.scm | 5 +++- ...mailutils-fix-uninitialized-variable.patch | 26 +++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/mailutils-fix-uninitialized-varia= ble.patch diff --git a/gnu/local.mk b/gnu/local.mk index 1baa8405c5..6cdbe0d778 100644 =2D-- a/gnu/local.mk +++ b/gnu/local.mk @@ -1291,6 +1291,7 @@ dist_patch_DATA =3D \ %D%/packages/patches/luajit-no_ldconfig.patch \ %D%/packages/patches/luit-posix.patch \ %D%/packages/patches/lvm2-static-link.patch \ + %D%/packages/patches/mailutils-fix-uninitialized-variable.patch \ %D%/packages/patches/make-impure-dirs.patch \ %D%/packages/patches/mariadb-client-test-32bit.patch \ %D%/packages/patches/mars-install.patch \ diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 4a9c6fc90f..45d7877c27 100644 =2D-- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -197,7 +197,10 @@ example, modify the message headers or body, or encry= pt or sign the message.") version ".tar.xz")) (sha256 (base32 - "17smrxjdgbbzbzakik30vj46q4iib85ksqhb82jr4vjp57akszh9")))) + "17smrxjdgbbzbzakik30vj46q4iib85ksqhb82jr4vjp57akszh9")) + (patches + ;; Fixes https://issues.guix.gnu.org/43088. + (search-patches "mailutils-fix-uninitialized-variable.patch= ")))) (build-system gnu-build-system) (arguments `(#:phases diff --git a/gnu/packages/patches/mailutils-fix-uninitialized-variable.pat= ch b/gnu/packages/patches/mailutils-fix-uninitialized-variable.patch new file mode 100644 index 0000000000..2a1c81648b =2D-- /dev/null +++ b/gnu/packages/patches/mailutils-fix-uninitialized-variable.patch @@ -0,0 +1,26 @@ +From 5ca6382fe8adb5bc436a6d873c8b86c69d5abfd1 Mon Sep 17 00:00:00 2001 +From: Sergey Poznyakoff +Date: Sun, 13 Sep 2020 14:43:46 +0300 +Subject: [PATCH] Fix uninitialized variable in readmsg + +* readmsg/readmsg.c (main): Initialize weedc. +--- + readmsg/readmsg.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/readmsg/readmsg.c b/readmsg/readmsg.c +index 9f305bb9c..3a9f420db 100644 +--- a/readmsg/readmsg.c ++++ b/readmsg/readmsg.c +@@ -466,7 +466,7 @@ main (int argc, char **argv) + mu_mailbox_t mbox =3D NULL; + struct mu_wordsplit ws; + char **weedv; +- int weedc; ++ int weedc =3D 0; + int unix_header =3D 0; + + /* Native Language Support */ +-- +2.28.0 + =2D- 2.28.0 --=-=-=--