From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 766803858D39; Fri, 1 Jul 2022 08:16:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 766803858D39 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/29311] [gdb] ThreadSanitizer: data race (/lib64/libtsan.so.2+0x4c5e2) in free Date: Fri, 01 Jul 2022 08:16:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2022 08:16:06 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29311 --- Comment #2 from Tom de Vries --- Created attachment 14188 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14188&action=3Ded= it LOG.txt When trying to reproduce from the command line: ... $ bash -x ./gdb.sh ./outputs/gdb.ada/char_enum_unicode/foo -batch -ex "break foo.adb:26" 2>&1 | tee LOG.txt^C ... I run into a different problem: ... WARNING: ThreadSanitizer: data race (pid=3D30917) Write of size 8 at 0x7b0400004070 by main thread: #0 free (libtsan.so.2+0x4c5e2) #1 xfree /data/vries/gdb_versions/devel/src/gdb/../gdbsupport/gdb= -x\ free.h:37 (gdb+0x650f17) #2 charset_vector::clear() /data/vries/gdb_versions/devel/src/gdb/chars= et\ .c:703 (gdb+0x651354) #3 charset_vector::~charset_vector() /data/vries/gdb_versions/devel/src= /g\ db/charset.c:697 (gdb+0x6512d3) #4 (libtsan.so.2+0x32643) #5 captured_main_1 /data/vries/gdb_versions/devel/src/gdb/main.c:1310 (= gd\ b+0xa3975a) Previous read of size 1 at 0x7b0400004072 by thread T1: [failed to restore the stack] ... Same thing if I remove -batch and type quit instead. So, is this a problem with --=20 You are receiving this mail because: You are on the CC list for the bug.=