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=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13189 invoked from network); 30 Apr 2023 09:52:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 30 Apr 2023 09:52:48 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1682848368; b=dT3SelLVIp3Uov6i5K/rBu/4UxumY5LLTB2bPgI8BHPNehbryCsq1lxkEa3Yq4LPPVaDd3BIiW 8dW7ik+1rVaRvS7XzvpStqLY38JRYITQdx7U7FDd5IJEhp25mtc5lHoqSyfuy+uwqy/zNP+T4l dHaDka4Kaz+a9YqhbBSNVkyW2XpPM6WpCOt6GL50EOumJJwgsKF8n0g6mSXT8Emq2hj2W5LgSu iXYMbReyH5jpdwKSEXCLyAT7ReSeQagmWLeHCDFksRPXDG8vuvVBFrqV92GvKEMR90+z+H3IkE rbaOeOddmgbF6NadEqk6F/aP8qKJDBiWc4Z48DXjTIdAmw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f45.google.com) smtp.remote-ip=209.85.167.45; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1682848368; bh=kaccjqPbmlGyUlL1PVx+EaCRlXp/GshZM9DyYAeN044=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=XSFjMx2p7nVR7Kyo9+7l/nJ57xGAnLAnR8sda0SeZSMT3hTpC3l+MFj/DKNXapbjRAIUvOJSx/ JIoGwWyRHS4Kz2SVvwCIEajZb8/O/Xg1wDZzVdpSCGXkNfLzw56y2fpoLQRpl7WAbGiPr0dIuL dXl4B6t4ykZRiaUqSJ0VHTg+Uwet1oFsARcr8nzCWpX/shVbKlu5cySZPqnEgqHyIVCKz/GZZ3 vyoyA6ilRIJiC6gGh2V29Hu4uGahJwoYK2ZIZH3d5bglrsJoIgzuKLUhQrjYuK2TFqRqCNSyRo ZHLwYCZzjpVF9+WBsi25pujnwgIW1/yiGjxfFLxAwDeRtA==; 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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ZlJHI9bZogWGlcgctSMe2MXef1cJw4Rw49ojSw7Cqww=; b=KzE/cmjuFM7IQ1V5+nnnCdEcWi xayuqU9MlgzqxKU+Ljb4tkfGtt1CT3PhYKCj/N8a7aFM7cnhvnQeFIiffZjBdzh9/hGyYvwlo2kGV aCweqLxaATv0Y4raHgyhuGpcVtpEVSQBasM1nPFsip4PKoMHMey3l3EXiXZHgF+1C9BnKElh9gkbW UKxM+4z++36msoHHA7LpUTvUVF3QBs1vJmwQYMZxeoGD7nNq2k0PaP8MRs55RW0c5MTWL0Bueh01O bR/pzudOlVfYguXsjgixFEw9oHcAEKmotu0Qqy4OEsTirjQARMejeSy4eTfpAFn1JPXmVYGnH8T37 cOfa4Yeg==; Received: by zero.zsh.org with local id 1pt3jY-000FRg-T8; Sun, 30 Apr 2023 09:52:44 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f45.google.com) smtp.remote-ip=209.85.167.45; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f45.google.com ([209.85.167.45]:57796) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pt3j0-000F7i-4J; Sun, 30 Apr 2023 09:52:11 +0000 Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-4f004943558so1889513e87.3 for ; Sun, 30 Apr 2023 02:52:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682848329; x=1685440329; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ZlJHI9bZogWGlcgctSMe2MXef1cJw4Rw49ojSw7Cqww=; b=W+53wuAnH1acuHA+Yy/Cx2m7Qq3FNZSgNku50bV9KxGM7y7+NKP96R4XfCleLeY219 D6Eelkp3R87WTWXz/lUjhWNV7f85X2ZvrZ28OXGZoiuvpc+FY8xZSc4ksi0ckZsrgW5t AISbhCoyy2kxcqGzOUMcd3smnbhUKI/u2P5lGXMeu4Ik5u+DzyuZYy2bh4f5ADr2vI5s 6Ap7ROPiVJJmP/kXESmduQU41rssTDlWTMz8byfeGIa4YGo8khAiJ8PsowOWWuKuzX0H oN//h9mwV6g8buwNcfrPopoK0sezHRp6IYkyKRc1bqMYoj/PGrb1Z1Mqb3SBfPrD23Yz d2Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682848329; x=1685440329; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZlJHI9bZogWGlcgctSMe2MXef1cJw4Rw49ojSw7Cqww=; b=Q+d1H3syEIKni1SZgrtsS4b1tFKZknemnVQ5cf0MMDc/FXWSxzLKFN2XOdZAoI4FdV smBoXvlq2YbCwyILmdpbY+9JVNp4455TKx6AozENtxU8fsB+gUMaI5YpFZqRDU/Cb/bN vKyYtKd4+VRXuxFCkt+Q1Lzvy4+wQ3V2vScugP3/iwglBFVsO8GojhOEPImeEVM8Wj9C LxbKLr2kfnLqDSosxZU9eDkSs9d+JwfbJSlxLyg1zJC8PLcd+7097Wpte01fP1Mrg9yN fhz6eMqgUuzGmFLBgUfZD0p+4Iqx2U/aakC0DaepwKJe/6odLJDjv5C3l3mZxt6cTEzg L6pw== X-Gm-Message-State: AC+VfDz/p8DLWtNoboGteJLyZ6ayGkVmJ7QQ/zdaHE5s7ZVv9MSsPr6w arXzdcH7CtNclE63gW/oODVpuov/Bwe2kAX8hkM= X-Google-Smtp-Source: ACHHUZ6VJNXDBjSvdrVWxz+fhE1cLpf6eUjcaPrCfrM1R2nVQdzb7ek3p/ZyWcPwfQiMgF0uP6EDINMJBwgtg3lSQxk= X-Received: by 2002:a05:6512:38cc:b0:4f0:124:b56b with SMTP id p12-20020a05651238cc00b004f00124b56bmr2917751lft.7.1682848328994; Sun, 30 Apr 2023 02:52:08 -0700 (PDT) MIME-Version: 1.0 References: <886115150.3264962.1682430985767@mail.virginmedia.com> <384683842.2892075.1682682065470@mail.virginmedia.com> <1209713483.9390210.1682691745248@mail.virginmedia.com> In-Reply-To: From: Sebastian Gniazdowski Date: Sun, 30 Apr 2023 09:51:42 +0000 Message-ID: Subject: Re: [BUG] sigsegv To: Peter Stephenson Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51687 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: Is the info not sufficient? What else could I check? On Sat, 29 Apr 2023 at 10:52, Sebastian Gniazdowski wrote: > > It says "incomplete sequence \339" although egrep $'\330' ~/.zhistory > doesn't return anything=E2=80=A6 > > (gdb) frame > #1 0x00007ffff7e1f628 in histwgetfn (pm=3D0x508f70) at parameter.c:1241 > 1241 addlinknode(l, dupstring(h)); > (gdb) l > 1236 for (iw =3D he->nwords - 1; iw >=3D 0; iw--) { > 1237 h =3D he->node.nam + he->words[iw * 2]; > 1238 e =3D he->node.nam + he->words[iw * 2 + 1]; > 1239 sav =3D *e; > 1240 *e =3D '\0'; > 1241 addlinknode(l, dupstring(h)); > 1242 *e =3D sav; > 1243 } > 1244 he =3D up_histent(he); > 1245 } > > (gdb) p he->node.nam + he->words[iw*2] > $31 =3D 0x7ffff7ae1370 > (gdb) p he->node.nam + he->words[iw*2+1] > $32 =3D 0x7ffff7ae1371 "" > (gdb) p he->node.nam + he->words[(iw-1)*2] > $33 =3D 0x7ffff7ae134f "" > (gdb) p he->node.nam + he->words[(iw-1)*2+1] > $34 =3D 0x7ffff7ae1370 > > I agree that the resilience to incomplete chars should be strengthened. > > Is iw the event number? > (gdb) p iw > $35 =3D 51475 > > Because history 51474 doesn't return any \330 char either: > 51474 angel open > 51475 angel open > 51476 angel open > > On Fri, 28 Apr 2023 at 14:22, Peter Stephenson > wrote: > > > > > On 28/04/2023 15:13 Sebastian Gniazdowski wr= ote: > > > I'm searching for an empty word, i.e.: I'm just pressing alt-/ right > > > after the shell has started. > > > > The crash is when the shell is putting together what's already in your > > history into a set of words, so it can use them from completing. If > > you look at the string that is being pared in "bufferwords" at the > > point of the crash, which comes from the history entry "he", you should > > see a line from your previous command line history. That's probably > > causing the shell some problems --- although there's always the > > possibility it might be a previous history entry that's messed things > > up, but this is the place to look first. > > > > What you're searching for / completing probably isn't all that importan= t. > > > > Hmm, come to think of it a bit of safety combined with a DPUTS() might > > help with both aspects --- I'll see if I've got time for that over > > the weekend. > > > > pws > > > > > -- > Best regards, > Sebastian Gniazdowski --=20 Best regards, Sebastian Gniazdowski