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 23712 invoked from network); 24 Mar 2022 07:32:31 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Mar 2022 07:32:31 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1648107152; b=C9SuRd3nEF+nMjS2xAhdKjo7ggMpk2NpoH48RbHJEkidFBnXYx7j+iRPX9Fe8eGhIk6PgqxPyI JhZR4Jty/CfAbOne6I73SunSZNjXgPmEa24aaCFz7qynv9tYSn8kwYnGrW/HCzcZDFKlfNtGaT 2oAcRUpLccnQLIt3hRzmHf/xt85X1cX+S03uKihJQbe6ZtHNNlJNbyOKo+KPHxM9CEIhyGQ4Q9 1ay/06C7zsJg3DzYUBbEFZgHtwxzgfFoynTg4JTUZ1fJxW+zWndJYQCB4K7Q0T3vEtzfK33gTx V3qov8pxsddC/LW70l3cE0u5CliHfbrtCXN7hteYFtQFdg==; 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=1648107152; bh=orn9u8I+0XC7IL1F7gbUNi+Lp+SYTmqbVFU7jLJUE3s=; 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:Cc:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=awpbRIAontouu1VtXeR7Xj4moezcwKSGCeY9DvHejONypkIt08MmxQQJf9U2pBdQ+l4e+sc+5b FFiUDXg4vGpHDOP1akrGddalExaIbFCHaTnecFbKkoKRfVrGQ3Uos3pKnYWgig4/MkXtjAchJM le6ey8jToytPeaCYuBTmpCYhjhCfAel31CqrO+hcwcada+9HKCuF9pyoeMqajgQosYIAhxFnc9 bay13ObLz7mEsw1OYdN9LfctvLR5zc6/74DOoQEtoqv3iOAPviG0P3rSrAt6xQ4wCJ1461Kc9T PCkr5RMLVF9y9XUZAx7KniEdVnRRJpNsNe74prYaeUBPRw==; 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:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=0tn/R3a/Q8dSM0PycKIexk7WdAGWKY/9U0WNP93VUiI=; b=M3FVsvlcThOt6an8ybjbWmCqVR YlwDBXqXvY1lTJs6PNTwlvMV3ng6n1dpFA0gfJExcrROTJJB5DO2JdhdUhhjUewr5w1KfwocM/ZbM O2R3cy9Kvns2dTUWeOcgjnmbiT+yuDLyynEaJwxiIZNZLB09btYjJqt9YLOpZeMYZ3/CYeNoZgdbF EhlvB76Ao7CRestsauop7hJHcAzmIFjlz4VoPPLagZiJJJ4+KfgcoiADad3Z/FUgE9KDvy6zXlEuX gcbp/MSf9c7o89ytQKdqoNuCuJ4ZDegxOeymUQ3bl3sw9/KdCJRpzdpZimqIQctWeEQ8c7wEjFOPA 83F5ODkQ==; Received: from authenticated user by zero.zsh.org with local id 1nXHxO-000BjG-KJ; Thu, 24 Mar 2022 07:32:30 +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]:54758 helo=mail.stromnet.se) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nXHwq-000BO3-EJ; Thu, 24 Mar 2022 07:31:56 +0000 Received: from mail (mail.j.stromnet.se [172.28.10.1]) by mail.stromnet.se (Postfix) with ESMTP id 8DBA3D8082; Thu, 24 Mar 2022 08:31:54 +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=1648107113; bh=orn9u8I+0XC7IL1F7gbUNi+Lp+SYTmqbVFU 7jLJUE3s=; b=npz0upMU+mlnmV3R/TtaiD+dAy3r/riEV3sISJ+NvdwIDaNTZcb FFnNaYnv1tn2a9MXCESxNNaZKGX/vSa5aTSGI+td2W2qMB0RRCxXSwgAgkE9K30W 3X4NbWQRGLBQHDjQc5K4RUM7Q7VvDlbxSGHSg2WsurfRR92RGBvsLm6lXq0UZWF+ xpq00QGs05XOdlD2zceNhZu1jMnOwsHQ0LT8D+2ZyisyR8YYGKjyb35vw3EhDSNq TLc7rcg9lqod+febT0Ofu50hbSzIYMOMxYvPR/PyXJaEMVmX9Aal4GvSUpZScWbx vA96Vu1540hVjz1QNSRjhsJyUKnf3rAhjxw== 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 7debV2aVW51o; Thu, 24 Mar 2022 08:31:53 +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 8679BD8069; Thu, 24 Mar 2022 08:31:53 +0100 (CET) Message-ID: <96788bd2-783a-920e-1b6b-ea20ae2683f4@stromnet.se> Date: Thu, 24 Mar 2022 08:31:53 +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: Bart Schaefer Cc: zsh-workers@zsh.org References: From: =?UTF-8?Q?Johan_Str=c3=b6m?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Seq: 49887 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: Hi, On 2022-03-23 18:14, Bart Schaefer wrote: > (Following up to zsh-users so this thread doesn't appear abandoned; > further discussion should probably be directed to > zsh-workers@zsh.org.) Continuing on zsh-worker > > On Tue, Mar 22, 2022 at 12:41 AM Johan Str=C3=B6m w= rote: >> last week (and now today again, on several terminals after being idle = since Friday) I noticed that several of my terminals crashed and closed w= hen writing `git ` or `ls `. Managed to capture one such crash = on video before terminal closed, and it printed "free invalid next size (= fast)". > ... >> Stack trace of thread 843836: >> #5 0x00007f36842f104d _int_free (libc.so.6 + 0x9b04d= ) >> #6 0x00007f36842f3be3 free (libc.so.6 + 0x9dbe3) >> #7 0x00007f36839ffa7f unmetafy_line (zle.so + 0x33a7= f) >> #8 0x00007f3683a0427a n/a (zle.so + 0x3827a) >> #9 0x00007f36839fcc34 completecall (zle.so + 0x30c34= ) >> >> These terminals have been running for ~5 days. >> On newly opened terminals, tab completion works fine. >> >> Have had 5.8-1 on this machine since July, never had any issues. 5.8.1= -1 installed on 16 Feb. > Hm. There's nothing in the zsh code changes I see that would cause > this effect; an actually idle shell should have been sitting blocked > on read. Is there any sort of periodic event that might be sending a > signal to those shells? There is nothing in my .zsh config that I'm aware of that would do=20 anything periodic. PS1 is simple: "%m %~$". The terminal is foot=20 (https://codeberg.org/dnkl/foot) and window manager is sway=20 (wlroots-based), not sure if they'd do anything.. The terminal was=20 seemingly identical to how I left it at least. A bunch of other packages have been updated at the same time, so could=20 of course be something external. But I have not experienced any crashes=20 or issues in any other programs. Took a quick look on the 5.8..5.8.1 diff and there seems to be some=20 buffer juggling going on, didn't look too close but perhaps there is=20 some overflow or double free or something? > > Do other completions crash, or only completions that involve file names= ? Not sure, will check with some known completion if I see it again=20 (typically have a bunch of terminal open, and at least previously=20 multiple of them seemed to break)