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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29113 invoked from network); 13 Dec 2022 09:51:03 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Dec 2022 09:51:03 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1670925063; b=n2o0qTobAXgUeOG65QPsb+0tlDvgXboaJIjS9mmEGMfveHr3/hTXVz0isR4oc2mAQ1vBCkcDMs RhCkRVku34EoAPc60+wVq56ueyU3PkGtl5kTXmpXcdgECmCWVqqGC6PAdm3GOHi1hM10npPXXi uqOINGLTAcwZ3DWdDY66TAvQvBRB1coBOdzGL7ysbnBjPbl6cXQeM3IhtwZ7R9tT+PNxLCtqVy vduxH3WkmkecOQ2n573l939wD5UGM5rKJx1nrEnBSQhH+Fkm7YaQU71p7kIINRTmJRSqvzXpd0 8up9p7hoTY8EpwRpN0fFVEwGd+QX5nNeta4/BYLLgNADEw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd21012-bg.im.kddi.ne.jp) smtp.remote-ip=222.227.84.28; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1670925063; bh=UbnPL5Lp5tkoB0HKCN/gDhd2vwYaQ4Vu1Wse/a06RyI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:References:Message-ID:Content-Transfer-Encoding:Date: In-Reply-To:From:Subject:MIME-Version:Content-Type:DKIM-Signature; b=PXJbREV26a8IdG5K2OBBxYjNytiAMF2CyPujc8upTgIF4XqiUG23Yr/23NKJWo+r7YXG+yKnxO kGTCsJxz5ziNwLF74n7SnO5XiQfXu5eDjDIeisexjfNkSYfttfebpsMl/wHtprqrlzSjwcPDJp hpGQKQSJjJoDto6klAit4PXZs+to/6TRa92pfW2j6j606rcrcwBSc5DPv45zywXby8OLxgBDEQ os2IZLYpoPTuxUI8rLf7G26wGVw3180svwpKyGYpQKKMNDsgdamwz8z1d0Y6/3a4Xych9A2VL7 Ln/6kfxu+E8Ap8t39Oa5rOTZIbjFxDnWlhkVaDTcZde3zw==; 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:To:References:Message-Id: Content-Transfer-Encoding:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=djq6YqtRJcLTcBR0LU28JvRLCF6HAm93jFzCavW5I1I=; b=RcCBelrPYBwu2ZmGiWZ0eA3sT6 32KZXQlF20IRceCopeN2wpgW/4pDSWhp1SsUoy04UqHNazI2t44XC5jkvlJRtMYgZVWXpWlNTTIHe Hnz9gTH365ctuyc1xhKNWLa1zm76WABPJWemXCqKKt4uVTZYIbNTQd+anZ9hK1F5BDgsrWQncfi9G BnF3I6kO5vMP3MtM25kYAkuKAC2r1S19Y3mCXFDJ7bk8diqEYEOkOyCq8e5KlWXY0E0fc/2L6h1W6 Ha6PoLjdd1z7ybI1Ms1wT2ConNv7+2px3qBhLZqK0FiF+yuJRpjsmpHg54pRwMugoSehpiEmsDO9F qpd/wfFQ==; Received: by zero.zsh.org with local id 1p51wF-0006ZS-IN; Tue, 13 Dec 2022 09:51:03 +0000 Authentication-Results: zsh.org; iprev=pass (snd21012-bg.im.kddi.ne.jp) smtp.remote-ip=222.227.84.28; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd21012-bg.im.kddi.ne.jp ([222.227.84.28]:35843 helo=dfmta1008.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1p51vM-0005so-4t; Tue, 13 Dec 2022 09:50:09 +0000 Received: from mail.biglobe.ne.jp by omta1008.biglobe.ne.jp with ESMTP id <20221213095003760.VIPP.4048.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Tue, 13 Dec 2022 18:50:03 +0900 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: [bug] busyloop upon $=var with NULs when $IFS contains both NUL and a byte > 0x7f From: Jun T X-Priority: 3 In-Reply-To: <119794721.6200059.1669800119336@mail.virginmedia.com> Date: Tue, 13 Dec 2022 18:50:03 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20221118142717.t4elzrigjeizjm6w@chazelas.org> <351204342.6213761.1669732685914@mail.virginmedia.com> <119794721.6200059.1669800119336@mail.virginmedia.com> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.3445.104.21) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 51204 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: > 2022/11/30 18:21, Peter Stephenson = wrote: >=20 >> On 30/11/2022 04:20 Bart Schaefer wrote >> On Tue, Nov 29, 2022 at 6:41 AM Peter Stephenson >> wrote: >>>=20 >>> I guess the obvious thing to do here is any time s doesn't move >>> give up splitting at that point. >>=20 >> I reported the infinite loop back in workers/50472 ("out of memory >> error" thread), although the cause doesn't appear to be exactly the >> same. I hope the problem (workers/50472) has been fixed by workers/50851=E2=81=A9= (commit f8d9388). >> I suppose if s doesn't move we could forcibly advance to see if >> another possible split occurs later. Unless there's clearly a way to >> determine that the lack of movement is due to upstream user error >> (such as invalid IFS value in this case)? That would be better, but: > Engaging finger-in-the-air mode suggests in a case like this just = trying > to be safe is the best we've got, unless we have proof positive we can > do something better in some likely scenario And, if we modify wordcount() then we need to modify sepsplit() and spacesplit() (and others?). That may be doable, but I want to leave it for future (for someone else?).=