BUG #17095: ./configure fails thread_test.c when run under TSAN

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: vlovich+github(at)gmail(dot)com
Subject: BUG #17095: ./configure fails thread_test.c when run under TSAN
Date: 2021-07-08 20:01:21
Message-ID: 17095-374e65bfa8737607@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 17095
Logged by: Vitali Lovich
Email address: vlovich+github(at)gmail(dot)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.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Daniel Gustafsson 2021-07-08 20:02:30 Re: BUG #17083: [PATCH] PostgreSQL fails to build with OpenLDAP 2.5.x
Previous Message Tom Lane 2021-07-08 19:55:27 Re: BUG #17083: [PATCH] PostgreSQL fails to build with OpenLDAP 2.5.x