From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3D4A5385740C; Thu, 14 Jul 2022 07:07:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D4A5385740C 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: Thu, 14 Jul 2022 07:07:55 +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: 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: Thu, 14 Jul 2022 07:07:55 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29311 --- Comment #7 from Tom de Vries --- (In reply to Tom de Vries from comment #0) > I build gdb with gcc 12.1.0 (system gcc) and -fsanitize=3Dthread on openS= USE > (with system glibc 2.35) Tumbleweed, and ran the testsuite, and ran into > issues with gdb.ada/char_enum_unicode.exp: > ... > WARNING: ThreadSanitizer: data race (pid=3D21301)^M > Write of size 8 at 0x7b2000008080 by main thread:^M > #0 free (libtsan.so.2+0x4c5e2)^M > #1 _dl_close_worker (ld-linux-x86-64.so.2+0x4b7b)^M > #2 convert_between_encodings(char const*, char const*, unsigned char > const*, unsigned int, int, obstack*, transliterations) > /data/vries/gdb_versions/devel/src/gdb/charset.c:584 (gdb+0x64fc37)^M > ... > ^M > Previous write of size 8 at 0x7b2000008080 by thread T1:^M > [failed to restore the stack]^M > ... https://sourceware.org/pipermail/gdb-patches/2022-July/190743.html --=20 You are receiving this mail because: You are on the CC list for the bug.=