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,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4218 invoked from network); 31 Mar 2022 17:18:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 Mar 2022 17:18:20 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1648747100; b=oBIlpaPq9DZdkVDpkX4YYdQXHGb/f3kzTfgJvWEf2NO6ASnlvOI7ydWHrJDfbm+2EHSipwrDyb 72Zt+n7XZkMyNGiYRpnXqCdWQsFBNb10tZBv8Yl9khJin6v9L3BeFeP1hiNAoXyKSBvoxVTeht 09yWI+PElCRFXuy+q3jq/IoeIo7CQbg3wivrmxgrOwuoFZ1Nm2Rv9FFDePXFMe2MDYeWXtmQCZ 5dzp4IQQxELZ3ronhY9T9LIxTarHsPmMUib4vZ3RYzVNbdKJWrfTev3/Wfzwv+YjjR8liL36UL JEvVap+dJ9h98TzlxX2Ip/jZs5FEGtYIgmYBuw/vRiLKQQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd01005-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.21; 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=1648747100; bh=H7E5LCptqHeW1oT0uxPmKEfds6qaTeXRSh62UpT3JIo=; 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=GU5GAE318VFHdVmGe9RtGlPVgT/b/ngo9zruThqHw6JvFV6Up0wtoA6YKk3I6Mh4DT+0Hbn9hk InpCXrAjI25dbubAvJVroLWWgcicnS+E7wGj8tVv6rvWI36nIqb1xaVAIGIm/51HyU97wivbNw TL37ovdl7PsbCSMzPfQfgOjsPo3Gpqu5Z1YhCYeDcxuACqfyQw9+V7ga9Hqx/SyrndUF54D1KQ Qjn8CKJgOxcKVcxuGZuAHORIxhNBhDPfkRyCW5zW11L65WGR3ud59D71YHdMy+qc+U1LxP8rRj 9t6LuC2utulDYe0XjTv2WP6gs3EvkIXOv9paCuq9ZZujrQ==; 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=DJVSZvPI8zEwEehyYai3g02R9kn+QK70qLjN1GLTNcc=; b=jDF4Hbd9/QYUtzGyDo2KmmuhFR 40VNA1zvvoeeQfZbVlWl+zT+fhi+ufCkmPX8qTAEBeZXfWXx/8D59Ubaz5h8IO546BynGbZQFbBwL Bgm023FpjGUD2kVpLq1/1lHIflRki+MtL3oAi7Tzh/y4GYjhL8Wyv/v7TbSb66I9gdcNS7VaaknjI 1ACUtsb6+T1s0Umaw11KVWWm3nxjk+Q922jbB9fjyi9zRWos50QsxiTVsuenArRlFd69oBX43C5Nj vVmBe4DqqiXVMT6H8q3n/T0efkhe3u34ZqOgV0xNRFg2l0qXVGhzleP+yceV89WBKPpI5uZEPLliF bkYKY2MQ==; Received: from authenticated user by zero.zsh.org with local id 1nZyR8-0001eS-5I; Thu, 31 Mar 2022 17:18:18 +0000 Authentication-Results: zsh.org; iprev=pass (snd01005-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.21; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd01005-bg.im.kddi.ne.jp ([27.86.113.21]:38881 helo=dfmta1010.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nZyQb-0001Ij-TC; Thu, 31 Mar 2022 17:17:47 +0000 Received: from mail.biglobe.ne.jp by omta1010.biglobe.ne.jp with ESMTP id <20220331171739865.LIUO.19373.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Fri, 1 Apr 2022 02:17:39 +0900 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\)) Subject: Re: "crash: free invalid next size (fast)" on completion From: "Jun. T" X-Priority: 3 In-Reply-To: <1950010726.626226.1648118876781@mail2.virginmedia.com> Date: Fri, 1 Apr 2022 02:17:38 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <6DC4B058-93E4-433F-AD8B-C2C8EB06E4DA@kba.biglobe.ne.jp> References: <96788bd2-783a-920e-1b6b-ea20ae2683f4@stromnet.se> <785894966.624349.1648115917719@mail2.virginmedia.com> <87c0f1d5-84cb-e459-7009-aff69da3bdb8@stromnet.se> <1950010726.626226.1648118876781@mail2.virginmedia.com> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.3693.60.0.1.1) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 49944 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/03/24 19:47, Peter Stephenson = wrote: >=20 >> On 24 March 2022 at 10:12 Johan Str=C3=B6m wrote: >>=20 >> 1. Execute ls >> 2. Use up-arrow, triggers warning: >> =3D=3D2157023=3D=3D Invalid read of size 32 >> =3D=3D2157023=3D=3D at 0x4B7709D: __wmemcmp_avx2_movbe (in = /usr/lib/libc.so.6) >> =3D=3D2157023=3D=3D by 0x5863FDC: mkundoent (in = /usr/lib/zsh/5.8.1/zsh/zle.so) >> ... >> =3D=3D2157023=3D=3D Address 0x5c2de50 is 0 bytes inside a block of = size 8 alloc'd >> =3D=3D2157023=3D=3D at 0x484ACD3: realloc (in=20 >> /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) >> =3D=3D2157023=3D=3D by 0x586404F: setlastline (in = /usr/lib/zsh/5.8.1/zsh/zle.so) I can reproduce this on the latest Arch (glibc-2.35) and Fedora-35 = (glibc-2.34), but not on Fedora-34 (glibc-2.33) or Ubuntu-20.04 (glibc-2.31). > =46rom circumstantial evidence, I'm guessing that might go away with = the following? No, valgrind still reports it on Arch and Fedora-35. But I think this is a false positive and we can ignore it. If I run the following program under valgrind (on Arch/Fedora-35), I get the same 'Invalid read of size 32' error. I've sent a bug report to = valgrind bug tracker, but haven't got any response yet. #include #include int main() { wchar_t *a, *b; int ret; a =3D (wchar_t*)calloc(3, sizeof(wchar_t)); b =3D (wchar_t*)calloc(3, sizeof(wchar_t)); ret =3D wmemcmp(a, b, 2); free(a); free(b); return ret; }=