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,NICE_REPLY_A,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12005 invoked from network); 24 Mar 2022 10:12:22 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Mar 2022 10:12:22 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1648116742; b=cwRMZOu9gRN859XHIux/CBjglveVlYtSXMld5yxMAB0WaDLwXDGTxxkCyYjH1C4M2WHA76u1a9 CKqW7n4ZA6DXVbGQT/4y7z9ri6sbDmVUgj1QwxjicctCWcIr1f+AxQu6v4toJz8aZ4rTkzZXxD eztnsdLHebQ53FtmI9b94wgOrfSfBXAVMldMFJz0nn77sF5rHXPmjUD56CKxzNIzci+6WQfEzL 3A6S6K+sJSwpTccxLJz1h1WxCuePmsCxFAZbYyWTskKpO4kT33Fmekk2w1xEq0rmIBvSe/+BqV aXtoqiL6fOHD/89LI8sD8CiSAD/IJ+SaEXRzN6YUl1i6Sg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (s0.stromnet.se) smtp.remote-ip=109.74.15.210; dkim=pass header.d=stromnet.se header.s=default header.a=rsa-sha256; dmarc=none header.from=stromnet.se; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1648116742; bh=OThIZue3y50ZDbSPwFHTiJ0YGhncBKiT7l4nl2sBUsk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=DKM0NhaMtDCpdDngMHd1Q2bwl06JopzVXPwm31tb93SIxTYEVKik2glADhclmiXfAOSTujY+am ZY2/Bs7Hxscj0wRgb396DahiUG+yPRqkM7l1Fy4/z3dSC5FUu2xD5zmzjbdqtuMzHJvUF9ME49 eEoo4xvqrZA4JvDQqd9EdU7ePhzMDdIBK2cdYEJpJq3PBIyv0HaFeKtK6tUjudyy1Rf0g6wPrD NWu+ks/93R+KQc+q0ZY5SLUKqDZqdaIPoeFgPvC3l9DxHMVt+kysoGlOtqa+pBSJNBzveeXHrH 1Mq3UYYOjabqXyHRChZZsWub5Egk/0RMsVHqvDQ4+ayGxw==; 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:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=OThIZue3y50ZDbSPwFHTiJ0YGhncBKiT7l4nl2sBUsk=; b=FfYdoXAokdFu+hIFLF8f6cCeyQ jxhvtEhcutC5kiAlK9aVA1sbWNfm2llSqfDUG8xBQrsMkAnf7TFPXKQMcW97zFQJJehAr71HS069b G8aJNCuoemmgSKI5ZilbZuWFwFlI4KrC4SeHvdKUFL0Q5pMvq8Iq55SEyt0xtBjzBEl43cK5IraS0 W3NlMYztTbUN+8YD3e3bh3BFEJ/jQVsyxBuvMKpEMjFKsNuFFjBaH/vVD/K2SyuWFT880PR2FI7Zy 1X5VzONfZ+8drdsWG9YG6B74H4XbFQNBVecyKPApGW1LbMPfH2Gad8KrXsfzvD0Iuxyuv2d5ZYF0B xH2AhyVA==; Received: from authenticated user by zero.zsh.org with local id 1nXKS5-000HA8-TO; Thu, 24 Mar 2022 10:12:21 +0000 Authentication-Results: zsh.org; iprev=pass (s0.stromnet.se) smtp.remote-ip=109.74.15.210; dkim=pass header.d=stromnet.se header.s=default header.a=rsa-sha256; dmarc=none header.from=stromnet.se; arc=none Received: from s0.stromnet.se ([109.74.15.210]:57919 helo=mail.stromnet.se) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nXKRq-000Gr3-RI; Thu, 24 Mar 2022 10:12:07 +0000 Received: from mail (mail.j.stromnet.se [172.28.10.1]) by mail.stromnet.se (Postfix) with ESMTP id B5295D7E5C; Thu, 24 Mar 2022 11:12:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stromnet.se; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:references:content-language:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=default; t=1648116725; bh=OThIZue3y50ZDbSPwFHTiJ0YGhncBKiT7l4 nl2sBUsk=; b=khmc0Me1ydUGQj1UxwOQDrb6xfnrhRS2b5CFDgMOuqJMTmMFFrw 1UD4QqvrW0DxdVb42rRLHlIBB7cExlOnYHYgWliMzEZhdOdEYobZFPpRsR3lFTd1 0XAb2EKIt/zxEp4BJ/kdjP/kcOx7wnTZFlzM9sHcdhzrdlgh2vmqhdPGUbBEmqL9 Gdib8wy3T1NyOL6Ghu5Vzes9w3jvQ+BkSQzJOknoe4PRVf10wV6Prk2leV9AmT3c MiGUloRH53Af3QxdocBY0GcxfaWakPCWFLJaWTEs8bvoqJoLAdk896S3hfJZUkJL 8ZGSd0hxf/swIiId/yuh5zihQXKOdmA8LLg== X-Virus-Scanned: amavisd-new at stromnet.se Received: from mail.stromnet.se ([172.28.10.1]) by mail (mail.stromnet.se [172.28.10.1]) (amavisd-new, port 10026) with ESMTP id 7bSpbB3uLIhV; Thu, 24 Mar 2022 11:12:05 +0100 (CET) Received: from [172.28.1.100] (78-69-138-217-no129.tbcn.telia.com [78.69.138.217]) by mail.stromnet.se (Postfix) with ESMTPSA id 63B70D7E54; Thu, 24 Mar 2022 11:12:05 +0100 (CET) Message-ID: <87c0f1d5-84cb-e459-7009-aff69da3bdb8@stromnet.se> Date: Thu, 24 Mar 2022 11:12:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: "crash: free invalid next size (fast)" on completion Content-Language: en-US To: Peter Stephenson , zsh-workers@zsh.org References: <96788bd2-783a-920e-1b6b-ea20ae2683f4@stromnet.se> <785894966.624349.1648115917719@mail2.virginmedia.com> From: =?UTF-8?Q?Johan_Str=c3=b6m?= In-Reply-To: <785894966.624349.1648115917719@mail2.virginmedia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Seq: 49889 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 2022-03-24 10:58, Peter Stephenson wrote: >> On 24 March 2022 at 07:31 Johan Str=C3=B6m wrote: >>> Do other completions crash, or only completions that involve file nam= es? >> Not sure, will check with some known completion if I see it again >> (typically have a bunch of terminal open, and at least previously >> multiple of them seemed to break) > Could you leave something running with "valgrind zsh" and see if that c= rashes > and gives a bit more information? > > Like Bart I'm hard pressed to work out what might be going on while it'= s > idle, but it does look like the corruption has already happened when yo= u > come back to it. > > pws Launched one now. Quickly noticed this: 1. Execute ls 2. Use up-arrow, triggers warning: =C2=A0=3D=3D2157023=3D=3D Invalid read of size 32 =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 at 0x4B7709D: __wmemcmp_avx2_movbe = (in /usr/lib/libc.so.6) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x5863FDC: mkundoent (in /usr/li= b/zsh/5.8.1/zsh/zle.so) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x5865555: handleundo (in /usr/l= ib/zsh/5.8.1/zsh/zle.so) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x58516F1: zlecore (in /usr/lib/= zsh/5.8.1/zsh/zle.so) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x5852586: zleread (in /usr/lib/= zsh/5.8.1/zsh/zle.so) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x1738A2: zleentry (in /usr/bin/= zsh) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x1741AC: ingetc (in /usr/bin/zs= h) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x166A93: ??? (in /usr/bin/zsh) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x1824CE: ??? (in /usr/bin/zsh) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x1A6F87: parse_event (in /usr/b= in/zsh) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x16CC4D: loop (in /usr/bin/zsh) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x175A34: zsh_main (in /usr/bin/= zsh) =3D=3D2157023=3D=3D=C2=A0 Address 0x5c2de50 is 0 bytes inside a block of = size 8 alloc'd =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 at 0x484ACD3: realloc (in=20 /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x586404F: setlastline (in /usr/= lib/zsh/5.8.1/zsh/zle.so) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x5849799: zle_setline (in /usr/= lib/zsh/5.8.1/zsh/zle.so) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x5849F10: zle_goto_hist (in=20 /usr/lib/zsh/5.8.1/zsh/zle.so) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x5849F5A: uphistory (in /usr/li= b/zsh/5.8.1/zsh/zle.so) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x5849FDC: uplineorhistory (in=20 /usr/lib/zsh/5.8.1/zsh/zle.so) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x584F265: execzlefunc (in /usr/= lib/zsh/5.8.1/zsh/zle.so) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x585183B: zlecore (in /usr/lib/= zsh/5.8.1/zsh/zle.so) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x5852586: zleread (in /usr/lib/= zsh/5.8.1/zsh/zle.so) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x1738A2: zleentry (in /usr/bin/= zsh) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x1741AC: ingetc (in /usr/bin/zs= h) =3D=3D2157023=3D=3D=C2=A0=C2=A0=C2=A0 by 0x166A93: ??? (in /usr/bin/zsh) =3D=3D2157023=3D=3D Using up/down arrows a bit triggers the same thing again, but after a=20 few ups/downs it stops. Can reproduce 100% it seems. Will leave valgrinds running.