BUG #17095: ./configure fails thread_test.c when run under TSAN - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #17095: ./configure fails thread_test.c when run under TSAN
Date
Msg-id 17095-374e65bfa8737607@postgresql.org
Whole thread Raw
Responses Re: BUG #17095: ./configure fails thread_test.c when run under TSAN
List pgsql-bugs
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.


pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #17083: [PATCH] PostgreSQL fails to build with OpenLDAP 2.5.x
Next
From: Daniel Gustafsson
Date:
Subject: Re: BUG #17083: [PATCH] PostgreSQL fails to build with OpenLDAP 2.5.x