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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23799 invoked from network); 28 Mar 2022 15:10:04 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 28 Mar 2022 15:10:04 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1648480204; b=mIydcr2p77/eE5hGCJ+uP2RpKS/iMjbwcd1qfEpPQvIGREt5GJ566rEfnAfDGZ7mZcJ4vGzS2d S0SBOz4iamfEcss26IBEu0k+LVOro1bDFm3aN2byBtVqxKLA/5hiYb4FCPqokGZVOJmP5hdOgv LPhBfqw/BsUN2KTH8l8NZJEpDz4KBxEHvODjdDZHClB6pkTBjiTpOpZk8jhfpjpF2GRGK4iAE7 Tf6/DYLcq0TAWTG3IBJXjsu3YQ1Z6mfmfGNkjhV8aCaT7UpmBBax6Yi4pYboC4FJFRnm7IMHef nAQF8Q3rNAPOT0lulvA6iwBdXCsfQMqlW3c9CQsksX//hA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f41.google.com) smtp.remote-ip=209.85.167.41; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1648480204; bh=OXuTy01JPWwkt2tFp/1CMpLmeV8umpOeqPf5rJsKJVk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=mf7rvtfDAXM7Klvv4S7gsfDcdMmJnZdQ6IT2FdammL9Gws77ctXNB5PoL1Q/eLPH3hCrP5vSZe fZdg92j9OSsTu50L3wZmAZ8Y5y6z8nXemXYzAHTfQf69wL0O2QsZQtj+5xg+WFZq9kp2kiCsfD RLaWOw7w+16TLHVF/UG5Z7YEkB9zT17iFTZo319B0Agb6w0zu3Wsv1C6NJEICZfVOXnprPBX69 P+tVEuS61rgT9cCN4SuKHh7WM5UftWOBuRim/zX3MCsnZkUn6/OPzjjfA2IijkA+IHYD8ien5i bfTm9EVCuzBZWUYw5yurecJCzQo0aE1nbuttoVWCkB1bmg==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=fWI+HIRPJfWFDoTvhVPAENuqM6zXCZtE4QGZzdsG9ik=; b=oo84dD8At3GXEqUO0UQBufpLz9 R+/5vS/Ktpfz51kiM2HvrbtW/am83eOX8td34P9g5leJ8CNtCgyHxb0ZxEUy8K94kZAQj85uw5vTu 7kX1zpyWt5JdspNJdlPUiMcqQTO+66KHiqPUfhgxLOKkOVqQ+IdgG0g5FpMmJn7n9/1M2IMHQR4Zp mcG1ogPmf2Wz+KuK/1EezkeZ+IDcCiBPGs4yQKKRQa26O7XL5MBryq+3ylAYCyzwJDHShHORUznCq BLa/jOh4E9Ualgvh8D/E8d1z+AyucbSFbDzbgiwherZvri60F/QgRraRdNXcmVqGYpdjuIbkfC2EF HTN/tQ6A==; Received: from authenticated user by zero.zsh.org with local id 1nYr0N-000LWe-Ou; Mon, 28 Mar 2022 15:10:03 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f41.google.com) smtp.remote-ip=209.85.167.41; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-lf1-f41.google.com ([209.85.167.41]:46994) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nYr09-000LC1-2l; Mon, 28 Mar 2022 15:09:50 +0000 Received: by mail-lf1-f41.google.com with SMTP id e16so25254180lfc.13 for ; Mon, 28 Mar 2022 08:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fWI+HIRPJfWFDoTvhVPAENuqM6zXCZtE4QGZzdsG9ik=; b=P112obcAhgrbgHqvdxzNIngfStlMv834cvMuaP9nck+qZpQfRXir7uGeCYwJwbdWKw ho92ZL4gdA4R8D/X1YfBj1x8p8IwJLlpooPpoffWFd4cj2L1mQHgpTWRD8Kf9JqfJ9Th 8cpJdDPd0oPXG6XMQ+JiTL1Uykxj/IaoDI8GCiqPviXdqF0y1P7N1tfUkkSbIKoJSz4l FS7JIY/FgDBy6KjRWP/A4Lgd4aZFz1fLVwih7f8kMjP7+5Vo0mpvzMnUUMAwktS846Y3 48y48pBczPkNS6Z0lD8sjp1qrv9bQg9VGlQSErqkvWcNBDBipdCZmQveFnmCbajTo5aD xWTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fWI+HIRPJfWFDoTvhVPAENuqM6zXCZtE4QGZzdsG9ik=; b=44m/XgB8OwXnPSWyFmCXFoxJ3D/w9sdgoyFLZ0gg73hhqD6quSaEjzw1N4RyquwjKh JGQA8TXIkOISYRwkZt5EIw6GcuWFvvczsRxfVaNuOjBHy4hXU+8ftrURKBVE3Z1dZcSk VTF5/YxSIjEyA4oRUg962oaxpeu9EJall+nkX1qZ7BC0RIs+w8VXyolC/S8zKeG8kZL9 v7naQgq1b6DQA2t3ruBGLXkQRHYGYpnGD8fL7+Rpgg5iUXSNPDlfTGLhEHZA4dNqWowI bqEOQQoTXgELsXWNwgIVepPRSsv7wczp8D5X6Sd3SGgzyl07ktBmcrQpLo0UFptIgDPY elBA== X-Gm-Message-State: AOAM531LuL+UVo0QbVlxkM9NEk2okQZe5xID8IVPR8LhAdm9EHq8QPgf UYMTFyiKE2wBpfHaPZTVgdMW1zdY4Q+jI87gnySXwg== X-Google-Smtp-Source: ABdhPJwDum2SrdeLDge8IsYznmrItqJbS8161sTks3RxR2BadiosS5esFA5m+f3K33/asCpxShi5NX+whU1gXI3xdaA= X-Received: by 2002:a05:6512:22d3:b0:44a:518d:c23b with SMTP id g19-20020a05651222d300b0044a518dc23bmr20170810lfu.21.1648480188090; Mon, 28 Mar 2022 08:09:48 -0700 (PDT) MIME-Version: 1.0 References: <1409134730.698961.1648457237653@mail2.virginmedia.com> <1613542531.711035.1648478945973@mail2.virginmedia.com> In-Reply-To: <1613542531.711035.1648478945973@mail2.virginmedia.com> From: Bart Schaefer Date: Mon, 28 Mar 2022 08:09:37 -0700 Message-ID: Subject: Re: Crash on jobstates since workers/49783 (commit 6a8aa2a) To: Peter Stephenson Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49901 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 Mon, Mar 28, 2022 at 7:49 AM Peter Stephenson wrote: > > Just thinking the pukka way to do this is actually zero the PN fields > in the saved job structure when we enter the subshell (unless we decide > to preserve them properly, which is more work but should be possible). Looking at the way zargs was using subshells and $jobstates, I think it's important that there be some way to distinguish jobs that the subshell can't manage. % % sleep 5 & ( sleep 2 & print -aC2 ${(kv)jobstates} ) [1] 68859 1 running:+ 3 running: How is it helpful that this returned anything? Previously the subshell could get information about the jobs it started itself, but now it gets nothing. I'm not even sure what job 3 is, there, as it only shows up in the table at all a small fraction of the time when I try this (usually it's just job 1).