From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CJC0A/tVRGP0ywAAbAwnHQ (envelope-from ) for ; Mon, 10 Oct 2022 19:27:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qJhNA/tVRGNxGAEA9RJhRA (envelope-from ) for ; Mon, 10 Oct 2022 19:27:23 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9CCD83C78F for ; Mon, 10 Oct 2022 19:27:22 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id DA5785F365; Mon, 10 Oct 2022 17:27:19 +0000 (UTC) Received: from meesny.iki.fi (meesny.iki.fi [195.140.195.201]) by mail.notmuchmail.org (Postfix) with ESMTPS id C605B5E545 for ; Mon, 10 Oct 2022 17:27:16 +0000 (UTC) Received: from c53 (gw1.nor.fi [185.218.193.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: too) by meesny.iki.fi (Postfix) with ESMTPSA id B50FB205E7; Mon, 10 Oct 2022 20:27:15 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1665422835; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hOk/RlGEUjuj3ApRNhLo28qT0dz/3do5Q1WqEnZUccE=; b=b/WWRvNK17wPG/Fc8H03AiiQsHH2l00I4fFJLa8f1K93F1AInVOIjfpkbAK4wmVVAlm51X N61xqDJYE5tL4Agubhq6vhTAVzQzzB4Mcbz7aeMATYL/ATxLjS1srDpv1ZYbjSQDAspqFc ZdHsJYUhJPKHnLvjc18HFzle9tKnJyo= From: Tomi Ollila To: Michael J Gruber , David Bremner Subject: Re: Test failure in Ubuntu 22.04 and 22.10 (new test) In-Reply-To: References: <1574005238.8760268.1665051216411.ref@mail.yahoo.com> <1574005238.8760268.1665051216411@mail.yahoo.com> <87leptxmg1.fsf@tethera.net> <87ilkxxkkz.fsf@tethera.net> <871qrkx655.fsf@tethera.net> User-Agent: Notmuch/0.37+18~g2a896dd (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1665422835; a=rsa-sha256; cv=none; b=vsxfd2cCC7js7mtiZ7VLQhx7SQmJOQjn6DjnOYwGYYfSGSogsGAiHZCF5tGZSoKryV5Oth aSreMrSeZ1sDdZN3hlCe/cFLCHi2a/wJQuVzAKjzmCoQTr4Zc1YWQ0RAowBDWWdh5YRe58 vljcB/KxfQmVQOmSux3Q0tL2OJI5/p0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1665422835; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hOk/RlGEUjuj3ApRNhLo28qT0dz/3do5Q1WqEnZUccE=; b=uSFpqrnXmr3ZDdCMa6KtwRrIOnp4fhlqc9CxKdIrRyk4Qg44eJXG6fLD46VL+fZ6Oizvwc Eg3O/HUayeA1t/mpxfpxJNsh7ykpaPIalRnnYluvIkkk2Ui0riYc0HKGd8RlE9EYbDvY/5 BjT7AcLkVP1zV3Rxpwi29z59Hfkg7bo= Message-ID-Hash: MQSJWZUIRJW2G2LWOTN5WIUSMX7E64AF X-Message-ID-Hash: MQSJWZUIRJW2G2LWOTN5WIUSMX7E64AF X-MailFrom: tomi.ollila@iki.fi 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; digests; suspicious-header CC: notmuch@notmuchmail.org X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665422842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=vFD/jvfip4j0vmyMm/TXEzUhUhFdqKmzIJMXI/Dhd+k=; b=O47Cte9IkSa/uak3cOPkYzhwaS8xyQNAGgaQwBiUiU2eH5fTC20Vypw0liLWLBMTw+SkAz eVXYFpHT5tT1ZFebbs9l5wq0Q++B8mFsF3p2/AXxME21mBXPGBjI61dwAqRGn91AqiEd1f 36nAOHJ2ysnKCKvPdwi6lJg+J5bgYi1xpZ8Ka5Uyn0YXv9sD15O8gsmFLCnlomcCLILIqt 57/K6AO99RCK144BIWjckghjB25UOVzP8rYGrlG9J2ipfFKpajmUIqFmp8+KsmsbzZOQl+ OCd/pi15u18ouVmKudwSHEhL781tM5JOVOiI8dYimwK0T51QjfyzoYgzdE3ldA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1665422842; a=rsa-sha256; cv=fail; b=RZiEL7cwQdE3/co/cAh3uE/Rl1uPa+0KB+T2wXCmKCJ2HHkKVikkNRAsv6lHd5Vc0T6nIA zsIO8NmzKp0Zgmw6jl7fp7lbUGZGpylZZVL4sQDUvOgwvJmnrqnxW4kSsrX0FOgtKE4uIS MZu1MQpSsFaE9Q0xO+Gfr08SQFkL5amUxZSCFnd9uy+hDcmwpjO7T+hCfwe/wRhzDUYCbC FFe6n4BRY4zwk36h6JT7AGKJdugLd85dgl3pw8WowBKP19jVMoUe6i0RcpQ0erqaqT3l0w LnIVtqlidxi9tSPJq0j3XeYOuQMXVtVYRPu9zYqItBHUrOEWJ8q1cRUHLlsFvA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=meesny header.b="b/WWRvNK"; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 2.95 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=meesny header.b="b/WWRvNK"; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 9CCD83C78F X-Spam-Score: 2.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: WnRVVLRIQEwe On Thu, Oct 06 2022, Michael J. Gruber wrote: > Am Do., 6. Okt. 2022 um 18:34 Uhr schrieb David Bremner : >> >> Michael J Gruber writes: >> >> > >> > Yes, lto-wrapper calls make. >> > >> > Are we compiling test functions on the fly during the test? In that >> > case we need to make sure that each test depends on the build >> > products, or else the test helper compilation and its users might run >> > in parallel ... >> >> Yes, we compile C code on the fly during the run of the tests. I'm not >> really clear on what race condition you are anticipating, as neither the >> compilation nor the other parts of the test are directly run by make. >> Execution is sequential within each T*.sh file. Unless gcc is returning >> before it has finished compilation (which I think we'd all agree would >> be gcc bug), I don't see how a race can arise there. One thing I can >> imagine happening is gcc's recursive invocation of make somehow fails >> under make -j, possibly something to do with violated assumptions about >> the jobserver and/or environment variables. > > What I mean is: > make calls T*.sh > T*.sh calls gcc > gcc calls make (for lto) > > Could it be that within a parallel make session, that gcc-make-call > gets delegated to the master make jobserver and thus gcc returns too > early? Wild speculation, I admit. Like David said, that would be bug in gcc... (nasty one I'd admit, how can one expect that the world around has set make to run its jobs parallely (if that is the case)) anyway, one could try unset MAKEFLAGS in ... test-lib.sh and see if that helps (perhaps also MFLAGS)) $ printf %s\\n all: $'\tenv' | make -j -f /dev/stdin | sort | grep FLA MAKEFLAGS= -j4 --jobserver-auth=4,5 MFLAGS=-j4 --jobserver-auth=4,5 > I haven't checked the code, but having those testhelpers as > prerequisites of the test scripts may help in that case. > > Michael Tomi