From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3D2593883F19; Wed, 14 Dec 2022 14:18:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D2593883F19 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671027534; bh=O2ywGouubcF9rIEMbsVhGm8QZA719yAhOVy8ItiW+Y8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=p7OTW4v8MVFxFxxZSkdNXj9IVMnzbhHlJQtFe8JvcpgvWrKoxztaFcpwQpXrtmZrO R2doj6e5PkdPEv6dljWaQOrC4FJVuXaDLg4vYweB47HhW6RF9MVVN+20X9ZcZ4IrTn qC4zatGG/mkV2an7+xmdF3VJsCHlX7hm9LGNarw8= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108097] std::stacktrace AddressSanitizer: new-delete-type-mismatch on 0x615000000080 in thread T0 Date: Wed, 14 Dec 2022 14:18:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108097 --- Comment #11 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:e9d58614b0b8eebd64d568fa22cd31faaa5f8dce commit r12-8985-ge9d58614b0b8eebd64d568fa22cd31faaa5f8dce Author: Jonathan Wakely Date: Wed Dec 14 11:58:05 2022 +0000 libstdc++: Fix size passed to operator delete [PR108097] The number of elements gets stored in _M_capacity so use a separate variable for the number of bytes to allocate. libstdc++-v3/ChangeLog: PR libstdc++/108097 * include/std/stacktrace (basic_stracktrace::_Impl): Do not multiply N by sizeof(value_type) when allocating. (cherry picked from commit 881c6cabce5d0b27285ed41bd6dabdf48848cce7)=