helgrind reports false races for printfs using mempcpy on FILE* state
commit7b5867b1fda1dbadc1291988828f6d6ad9438144
authorMark Wielaard <mark@klomp.org>
Fri, 8 Apr 2022 12:58:38 +0000 (8 14:58 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 8 Apr 2022 12:58:38 +0000 (8 14:58 +0200)
tree302fa734097bd2c129c9abfa93e3213103683a90
parenta1bb40171ab2289043856c6893522449ccc9fdff
helgrind reports false races for printfs using mempcpy on FILE* state

We already have a suppression for helgrind which is for when glibc
uses __GI_mempcpy to manipulate internal FILE state (this was bug
352130). But since glibc-2.26 mempcpy is used instead __GI_mempcpy,
making the suppresion from the original bug obsolete.

This patch adds a new suppression using mempcpy but doesn't replace
the original suppression for older systems.

Patch adding suppression + testcase by Jesus Checa <jcheca@redhat.com>

https://bugs.kde.org/show_bug.cgi?id=450962
.gitignore
glibc-2.X-helgrind.supp.in
helgrind/tests/Makefile.am
helgrind/tests/pth_mempcpy_false_races.c [new file with mode: 0644]
helgrind/tests/pth_mempcpy_false_races.stderr.exp [new file with mode: 0644]
helgrind/tests/pth_mempcpy_false_races.vgtest [new file with mode: 0644]