pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: vlovich+github@gmail.com
Subject: BUG #17095: ./configure fails thread_test.c when run under TSAN
Date: Thu, 08 Jul 2021 20:01:21 +0000
Message-ID: <17095-374e65bfa8737607@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17095
Logged by:          Vitali Lovich
Email address:      vlovich+github@gmail.com
PostgreSQL version: 14beta2
Operating system:   Arch Linux
Description:        

When I run configure with -fsanitize=address (using clang 13 at revision
d3676d4b666ead794fc58bbc7e07aa406dcf487a), it errors out because
`thread_test.c` is violating thread safety.

Specifically it complains about the access of errno2_set, errno1_set,
thread1_done, & thread2_done being read/modified from multiple threads
without any kind of synchronization. AFAICT these TSAN errors are correct.



view thread (3+ messages)  latest in thread

Message-ID: <17095-374e65bfa8737607@postgresql.org>
Permalink:  ../17095-374e65bfa8737607@postgresql.org/
Also on:    postgresql.org/message-id/17095-374e65bfa8737607@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, vlovich+github@gmail.com
  Subject: Re: BUG #17095: ./configure fails thread_test.c when run under TSAN
  In-Reply-To: <17095-374e65bfa8737607@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox