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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24350 invoked from network); 28 Apr 2023 11:41:23 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 28 Apr 2023 11:41:23 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1682682083; b=BrBuEIeMBp7mbzkBISKr2RLZfHpePSISpA+kjtZwVSQq+FQgmNdjZug8wo5FQ7nwk8UCjZKCqY 7fknySmOUHc2hfLOBOn2VyltKJtgUYMEfeZOQQ7h8rp2VTgctVfOezLC0mCQB6pn71B+sjZRTx q1XH6oUhPF374NwmrHRMKaY/mQrrhQXpa5odJxikAbpfuKtq0Xq+MRSWjgxABUwkFpQmM64UNR goXog20iVfh355jClH8q2u1k8RjVN3wfdUQKoevrXoqPpvHalCM8lltful118sqCx+jrLNG0ct O/HXijsnGBmG34Gi6LjAdqMI8AI/Wl7/jVGnwaEd5Hu/iA==; 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=1682682083; bh=FNrgUATy7Mf59yJqKvOlJbdd7DtJ2tjBzXs1z/aeJHk=; 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=qFNVDQasgnTnYin3DptR/g8jSsn0/xZp4BjhYOk6EkX6rqY8RPeSEy1Q93+Puml1ev084Qqcj2 iPVuaJxViNXxw3knpqQXm5tGQEIJxtJ7uuiRoUC6F+fJxT9H02O8xkAceIyzPceo7av1uFzjxA nqEBfuozBjBBUoKaK+9QEhusGXrlEfCH6Yk8U7lxVy9IMocSqRNpNg9Ax5lZR4pFwLVeggECy4 yvqTd9A47Pn6iWBzJbBnCjC0WnwGVbzpz4eZu+0zMY4n6rIt9BaTx3L0qoPPksXace7Fn/r3dd P6LaE/tzOyRmi+ZLeOoeaUsP7SSTGW7/np/e4X1tGiroEg==; 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=EituCPyKNMEs9QkF4cv4fYqq7WCdkz/p41vWSgS6nlY=; b=bhqfHzPG3QdoK5GpWx5cC98duu FN0n18A7xUfQP/l0r9y243WR1P+UE/SRd6HE+5vECqjKxqDkzrO8dP3tBaZ87K0yWiozqa9H+eoXa 3bBFnTccxZQN5DoIgB+ZjAmwoSgJaXS1UVqSEMk6poQbIfP4J4BZQkbL83bEX+5bl52jpgDUS3Sfl c+htAvKZ0wlHKaQXZo/hg4wowQ72u7SMX1sFBac7UK4dBmZO214BnBPYol44MQoAgFLGTFPHqN9Ml k+mD6ZcTZgQadkvufQ+YVc9wvQ598BEJtcYSHb0FGQvjsVDdUKf/hyEuVkePaBU2eVGokQb/uPhfO mWhWLlOg==; Received: by zero.zsh.org with local id 1psMTa-000For-Vk; Fri, 28 Apr 2023 11:41:23 +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]:36592) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1psMTK-000FUn-5W; Fri, 28 Apr 2023 11:41:08 +0000 Received: from [212.54.57.82] (helo=smtp3.tb.ukmail.iss.as9143.net) by smtpq1.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1) (envelope-from ) id 1psMTJ-0004QH-O1 for zsh-workers@zsh.org; Fri, 28 Apr 2023 13:41:05 +0200 Received: from oxbe12.tb.ukmail.iss.as9143.net ([172.25.160.143]) by smtp3.tb.ukmail.iss.as9143.net with ESMTP id sMTJpCW3WvML8sMTJppXG8; Fri, 28 Apr 2023 13:41:05 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 172.25.160.143 X-CNFS-Analysis: v=2.4 cv=NuYXMeRJ c=1 sm=1 tr=0 ts=644bb0d1 cx=a_exe a=pVlFXI3Q25jgZXAaIqG4JA==:117 a=1DWFKdCB1IcA:10 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=B5K6QF4O5FP-w0bbfaAA:9 a=QEXdDO2ut3YA:10 a=zZCYzV9kfG8A:10 a=75Kt_H3ikK-EkTT1woid: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=1682682065; bh=FNrgUATy7Mf59yJqKvOlJbdd7DtJ2tjBzXs1z/aeJHk=; h=Date:From:To:In-Reply-To:References:Subject; b=DU6q/4CtGeFSyag4jh8CxqVpnlmR3OMZ5JigyBz6/Hm3VGBVhGbQwlkCPztmmmv4Z lpH9J0Qlsp7kbhEJmC6Zq9Hj5CxiD4Nsb2a8aJ3aV7sXiNXJ6YrPsmrf69gW7k8785 HmH1CdtrFCRx1LD1hIIXzLQrUF2s23R/5wiCb9nRR3Z9YC7Yl3Hg02HvTZh2M3s/28 Ym1tfNZCc39vqQ1PsCv5g+KM1P7oYWdIf7S2zE03MuV6O14eqKrbxOo+h3Pw4Qff9n o596x12CBecV6m4GnNSA6jhGhtDmq2vTy7WPX22/44MiN4FfSosv9hbA6yUooaWda4 iDyTOVYYnu8Ww== Date: Fri, 28 Apr 2023 12:41:05 +0100 (BST) From: Peter Stephenson To: Zsh hackers list Message-ID: <384683842.2892075.1682682065470@mail.virginmedia.com> In-Reply-To: References: <886115150.3264962.1682430985767@mail.virginmedia.com> Subject: Re: [BUG] sigsegv 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.224.167 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfJVAXNDHXPyx2mQGlMkE5VQRDrQywVaCCxyZKv/rZk3dMBJ6cfTovoc34ee2i8LP5+Mt350Spn7ttDbynP/SfuxpQoGI4FcLFS3wc3i12G2u82xdrNck Z4709w8OXpSIfwkVuF4LlrcJx06JeNxUVi8aaBn+4ZOECZRhb6yqse7TImjzWYM7/YwqlAOaRJN8SESKDiFcqJMuJ4OwE4a8IqiydKi4G3QqMAsET2LQwp1e X-Seq: 51676 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 28/04/2023 12:25 Sebastian Gniazdowski wrote: > It looks like the last field is incorrect: > > (gdb) up > #1 0x00007ffff7e1f628 in histwgetfn (pm=0x508e10) > at parameter.c:1241 > 1241 addlinknode(l, dupstring(h)); > (gdb) p *l->list->last > Cannot access memory at address 0x7ffff5350068 You'll probably find this is tied to something in your history which bufferwords() is processing incorrectly, as that's something of a hack into the lexical analyser. If you can find what that is we ought to be able to fix it at source. However, making this code (taking out history words from a string given the start and end) more robust seems like a good plan anyway. pws