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

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #17095: ./configure fails thread_test.c when run under TSAN
Дата
Msg-id 17095-374e65bfa8737607@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #17095: ./configure fails thread_test.c when run under TSAN  (Vitali Lovich <vlovich@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #17083: [PATCH] PostgreSQL fails to build with OpenLDAP 2.5.x
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: BUG #17083: [PATCH] PostgreSQL fails to build with OpenLDAP 2.5.x