From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29291 invoked from network); 13 Apr 2023 10:48:28 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Apr 2023 10:48:28 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1681382908; b=T6+XbPkapE8lKXVQOtU+RVstEu2o6WgSzez0FPK4PMlqsxOHX/E0V/wz4f6mWJE+jqkWFrs3Ve SZ5W5QJs2Z8GoRA1kjU6c0ZBPICjZzkbkjL37SBTaHH2m0juKbejzK0VWJ4Qgi3at1DGoFP5M4 LgCrbI/5EFEIknliA0QwwohwBWiLYKLLt3FOTCH/Buhdxb6pDBoekXMiOISQUdG5D5gbvRwdPb BCrDhyV5/0ZH8perdU8UTab1HNW+yFo1IDBGiBqtZsrp5Be/lHQiuu6ObyyHIfK2KKeSGNKzMb 73MIRwUHBbZ6VApiegJcE87FSh9tEodBwMSZZxeldZysVw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1681382908; bh=SSe6XJu99cEPdQ2UzRsDdFAlcs8BQKKYcjmdQK9U4RU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=VcITNk1/XiSQxvAHoDIUH+ndT9fhAwylcXlRQfir+rlUk8Mmorbtl6kysP6UvgsW4g+9lhQcbJ 4TMRlfCz8YgxebWR6YCclq5V3DSi5tdF0ifFX/8LAazqpc/ifYfQ2f7Qxo3JJ7suByNbEJs6ys mMQ71L3L3NLqeaamcYPiocv57zz6VbKFViVQpi+dsoFxRcngQxDtuXHerzgb9ORctjH9r9/qvl RY6SjwtMw1MH/x5bcuO69uiP1zk0hlfq1WUDfeiTIaFxeFVsZyUjs2FRv3bJX6vaRiKVVvpAqI yBlKDK6HPhBJ/EySd6zvnJbhqFuGhdgrJzjqEkEaaTix6w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=AWQZoiztrUxpzDczNFAS2XQYz0kYb1uv7xlPEUO4duw=; b=rUs2xch7jlSArcFXDk4eeYUQxd 0FVOEUh5BUydH+BBKE3A3tPajPozZ3LhTdJN7cgLECTb3X6MAq2elpVOi/MXFUtLly+4BE4W7oEhn JvozRt+goYenWYmoXRpDUIWw7ryoBc6kveHNz1/diYWZvofNu8n/7hz4hFldGqKniywI+LzM8D3qL kqkkQcl7exxZfOmNLSa5zUS9zNv239rfYz91vEU2b0WIr25q4BoWgf0t6KMlaG6qrZAudv6ZS4qZT Krge5x1jK84YKW4UV9ZgDYoDmi6YUHB9LvVtYxEf6cXohSKDBna4NVgp48HL7Qa4zZIe5/gU7Ljg/ ioxR+oFw==; Received: by zero.zsh.org with local id 1pmuV9-000JKG-Ii; Thu, 13 Apr 2023 10:48:27 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq1.tb.ukmail.iss.as9143.net ([212.54.57.96]:54792) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1pmuUY-000J0x-Et; Thu, 13 Apr 2023 10:47:53 +0000 Received: from [212.54.57.81] (helo=smtp2.tb.ukmail.iss.as9143.net) by smtpq1.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1) (envelope-from ) id 1pmuUY-0004ZA-08 for zsh-workers@zsh.org; Thu, 13 Apr 2023 12:47:50 +0200 Received: from oxbe11.tb.ukmail.iss.as9143.net ([172.25.160.142]) by smtp2.tb.ukmail.iss.as9143.net with ESMTP id muUXpDAmofELJmuUXp7FQg; Thu, 13 Apr 2023 12:47:49 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 172.25.160.142 X-CNFS-Analysis: v=2.4 cv=dqIdSXs4 c=1 sm=1 tr=0 ts=6437ddd5 cx=a_exe a=SbParRoiaCP7T9pO5d2WBA==:117 a=wbvTLvLwOfMA:10 a=IkcTkHD0fZMA:10 a=NLZqzBF-AAAA:8 a=JGM6yl902F_ZeOH43tsA:9 a=QEXdDO2ut3YA:10 a=RchoEgWomvYJfgJ0MydD:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1681382869; bh=SSe6XJu99cEPdQ2UzRsDdFAlcs8BQKKYcjmdQK9U4RU=; h=Date:From:To:In-Reply-To:References:Subject; b=wbJ0N0RaiB1032ZgfxThmLhcJ6Rl6twoJ3YmWO3juuwy3C1iAO+jYkV74eL5P6lcm XLk5/WupKtWKUZ6DBf2WbxCR4ftNpJnHuP4LTKQN1O7xRaK/yH6I2ZP4p8Rtmxk4vV ka/4/QhlVX+rEH5JkT69NFtUCn4VX11Qe8ab5YLEYxlkS1B7+vG/0HsdrtAqxJDg2n yki+VkWykz/r1c3V0Jenfx7I7VC8D3Y1+4zt3orkzBFYFmbhq7+4OlEgnCb61zv5qz OYI2d6AamltDEzkmmdjyGxmZmU/h/gNTJg1CJwqfBEKSYx63VNz/bzP4qmNMxDpb7g d0pCWG0KpZF6Q== Date: Thu, 13 Apr 2023 11:47:49 +0100 (BST) From: Peter Stephenson To: zsh-workers@zsh.org, "Jun. T" Message-ID: <267594676.4158370.1681382869709@mail.virginmedia.com> In-Reply-To: <5C4788C8-4E40-4565-AFE8-84D57949BC8C@ntlworld.com> References: <48A7DCE2-AEC1-4777-949C-50917EDCECB1@kba.biglobe.ne.jp> <5C4788C8-4E40-4565-AFE8-84D57949BC8C@ntlworld.com> Subject: Re: Probabilistic crash on zsh 5.9 on x86_64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer X-Originating-IP: 147.161.167.85 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfFCaV7u+SIBRqXKNe2OTlyzo9PWPnOo3lrK9JEEG2brMfqDdUNIn+g4odsAr+HiPrNR0ZtnzdBjr8YwG9ub/8vi/Q4Zan4bszLlWLeYd79nQMv3YLoCI 44VLQ6Yl6/22grC9ckC16K33SXSQ2GpJFXGdPYkYqgbYDJhDRBwem+i3g+fiqpcxzWIsqWkgqS/w+QkqELPte/YIVUuO8JJDvlfx3fLzwj+hQVEnmgsVM52I ht1nHt+VVAVn9NDlJvAHLdVjB1+QvH7D0V+WEueUmtU= X-Seq: 51644 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: > On 11/04/2023 17:29 Peter Stephenson wrote: > This indicates something is wrong with the reference counting: > it shouldn't be possible for a shell code chunk to be visible > to the user without it being marked as having at least one reference. This should reliably pick up the problem, though it needs tracing back to where the function is set up. It was crashing 100% for me, too, and this is the only time I see this debug message, so I think this is safe to commit and should give us a heads up on other cases. diff --git a/Src/exec.c b/Src/exec.c index 3b3d1235e..49c196bfd 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -5942,6 +5942,8 @@ doshfunc(Shfunc shfunc, LinkList doshargs, int noreturnval) funcsave->fstack.filename = getshfuncfile(shfunc); prog = shfunc->funcdef; + DPUTS1(!prog->nref, "function definition %s has zero reference count", + (fname && *fname) ? fname : ""); if (prog->flags & EF_RUN) { Shfunc shf; pws