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 rs/YHd2Gql95GwAA0tVLHw (envelope-from ) for ; Tue, 10 Nov 2020 12:26:05 +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 qGFkGd2Gql9qFAAA1q6Kng (envelope-from ) for ; Tue, 10 Nov 2020 12:26:05 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 61FBE940415 for ; Tue, 10 Nov 2020 12:26:04 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A77C728BF0; Tue, 10 Nov 2020 07:25:55 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9DE0628818 for ; Tue, 10 Nov 2020 07:25:52 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id 35D1E5FB8B; Tue, 10 Nov 2020 07:25:49 -0500 (EST) Received: (nullmailer pid 4078030 invoked by uid 1000); Tue, 10 Nov 2020 12:25:48 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: T355-smime.sh is flaky X-List-To: notmuch Date: Tue, 10 Nov 2020 08:25:48 -0400 Message-ID: <87h7pxiek3.fsf@tethera.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Message-ID-Hash: WHSFYNKFSDG3L2IEGU3ZLB5GATCLL4LF X-Message-ID-Hash: WHSFYNKFSDG3L2IEGU3ZLB5GATCLL4LF X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Daniel Kahn Gillmor X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 0.59 X-TUID: UbjD1TpW1tHe --=-=-= Content-Type: text/plain With the attached (the first test from T355-smime.sh) saved as foo.sh, try running the following. count=0; while ./foo.sh ; do count=$((count + 1)) echo $count >> tests.log done After the somewhere between 1 and 200 iterations this hangs up for me. Emacs is still running, the message-mode buffer has appropriate looking stuff in it. There is nothing interesting in *Messages*, and the buffer is still titled "*unsent mail*". When sending manually, I get a message that there is no key for test_suite@notmuchmail.org After digging through mml-secure for a while, I realized that the problem is not actually in emacs, but in our test harness for gpgsm. I added the gpgsm -K to the script, and you can see that the test_suite@notmuchmail.org key is not being added. I think that means there is some kind of intermittent failure with the following pipeline openssl pkcs12 -export -passout pass: -inkey "$NOTMUCH_SRCDIR/test/smime/key+cert.pem" \ < "$NOTMUCH_SRCDIR/test/smime/test.crt" | \ gpgsm --batch --no-tty --no-common-certs-import --pinentry-mode=loopback --passphrase-fd 3 \ --disable-dirmngr --import >"$GNUPGHOME"/import.log 2>&1 3<<<'' I've attached "import.log". I _think_ the failure reported is the notmuchmail.org key, and the success is the 'Bob Babbage' key, --=-=-= Content-Type: text/x-sh Content-Disposition: inline; filename=foo.sh #!/usr/bin/env bash test_description='S/MIME signature verification and decryption' . $(dirname "$0")/test-lib.sh || exit 1 test_require_external_prereq openssl test_require_external_prereq gpgsm FINGERPRINT=$(openssl x509 -sha1 -fingerprint -in "$NOTMUCH_SRCDIR/test/smime/key+cert.pem" -noout | sed -e 's/^.*=//' -e s/://g) add_gpgsm_home gpgsm -K test_begin_subtest "emacs delivery of S/MIME signed message" test_expect_success \ 'emacs_fcc_message \ "test signed message 001" \ "This is a test signed message." \ "(let ((mml-secure-fail-when-key-problem t)) (mml-secure-message-sign \"smime\"))"' test_done --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=import.log Content-Transfer-Encoding: base64 Z3Bnc206IGtleWJveCAnL3RtcC9ub3RtdWNoLXRlc3QtNDA3NzgxNy5Xck5JbmUvZ251cGcvcHVi cmluZy5rYngnIGNyZWF0ZWQKZ3Bnc206IDg3MiBieXRlcyBvZiBSQzIgZW5jcnlwdGVkIHRleHQK Z3Bnc206IHByb2Nlc3NpbmcgY2VydEJhZwpncGdzbTogMTIyNCBieXRlcyBvZiAzREVTIGVuY3J5 cHRlZCB0ZXh0CmdwZ3NtOiBkZWNyeXB0aW9uIGZhaWxlZDsgdHJ5aW5nIGNoYXJzZXQgJ0lTTy04 ODU5LTEnCmdwZ3NtOiBkZWNyeXB0aW9uIGZhaWxlZDsgdHJ5aW5nIGNoYXJzZXQgJ0lTTy04ODU5 LTE1JwpncGdzbTogZGVjcnlwdGlvbiBmYWlsZWQ7IHRyeWluZyBjaGFyc2V0ICdJU08tODg1OS0y JwpncGdzbTogZGVjcnlwdGlvbiBmYWlsZWQ7IHRyeWluZyBjaGFyc2V0ICdJU08tODg1OS0zJwpn cGdzbTogZGVjcnlwdGlvbiBmYWlsZWQ7IHRyeWluZyBjaGFyc2V0ICdJU08tODg1OS00JwpncGdz bTogZGVjcnlwdGlvbiBmYWlsZWQ7IHRyeWluZyBjaGFyc2V0ICdJU08tODg1OS01JwpncGdzbTog ZGVjcnlwdGlvbiBmYWlsZWQ7IHRyeWluZyBjaGFyc2V0ICdJU08tODg1OS02JwpncGdzbTogZGVj cnlwdGlv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CA1NiAxOSA0QSAy QiBFNSBGQwpncGdzbTogdG90YWwgbnVtYmVyIHByb2Nlc3NlZDogMgpncGdzbTogICAgICAgICAg ICAgICBpbXBvcnRlZDogMQpncGdzbTogICAgICAgc2VjcmV0IGtleXMgcmVhZDogMQpncGdzbTog ICBzZWNyZXQga2V5cyBpbXBvcnRlZDogMQo= --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --=-=-=--