Bug 445011: SIGCHLD is sent when valgrind uses debuginfod-find
commit2ad93350446a49a5b0093548b63d43195d99d4ae
authorAaron Merey <amerey@redhat.com>
Wed, 26 Jan 2022 01:24:18 +0000 (25 20:24 -0500)
committerMark Wielaard <mark@klomp.org>
Thu, 7 Apr 2022 20:09:57 +0000 (7 22:09 +0200)
treebb0c7ad22ff7d30c5228d652c7826d0ef21e4b74
parent7959d0661b2bce47a0f85b219f328b2239c4ffff
Bug 445011: SIGCHLD is sent when valgrind uses debuginfod-find

Valgrind fork+execs debuginfod-find in order to perform debuginfod
queries. Any SIGCHLD debuginfod-find sends upon termination can
mistakenly be delivered to the client running under valgrind.

To prevent this, record in a hash table the PID of each process
valgrind forks for internal use. Do not send SIGCHLD to the client
if it is from a PID in this hash table.

https://bugs.kde.org/show_bug.cgi?id=445011
NEWS
coregrind/m_libcproc.c
coregrind/m_signals.c
coregrind/pub_core_signals.h
include/vki/vki-darwin.h
include/vki/vki-freebsd.h
include/vki/vki-linux.h