Exclude Threadsanitizer instrumentation in exit check
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 31 Jan 2024 21:54:45 +0000 (22:54 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 31 Jan 2024 21:54:45 +0000 (22:54 +0100)
commit936f56988741f17cce8731cfa6150fad96e571e9
treec1648d8293734f8686d3fa4762326f757f53ea19
parent9d1a5354f58cf61d9be6733d5ad0b36936af5af3
Exclude Threadsanitizer instrumentation in exit check

When building libpq there is a check to ensure that we're not
linking against code that calls exit(). This check is using a
heuristic grep with exclusions for known false positives. The
Threadsanitizer library instrumentation for function exits is
named such that it triggers the check, so add an exclusion.

This fix is only applied to the Makefile since the meson build
files don't yet have this check.  Adding the check to meson is
outside the scope of this patch though.

Reported-by: Roman Lozko <lozko.roma@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAEhC_BmNGKgj2wKArH2EAU11BsaHYgLnrRFJGRm5Vs8WJzyiQA@mail.gmail.com
src/interfaces/libpq/Makefile