]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Bug 494327 - Crash when running Helgrind built with #define TRACE_PTH_FNS 1
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 3 Nov 2024 19:42:43 +0000 (20:42 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 3 Nov 2024 19:42:43 +0000 (20:42 +0100)
commita2ef9690458cf472cb8a4da3793657b2c5a8cda6
treeb180a0245a9072ed366cf3c8d6c4d2f9de947cb4
parent4fa368ebb129cd3fbb0406d16a4d4f3d6ffc1fca
Bug 494327 - Crash when running Helgrind built with #define TRACE_PTH_FNS 1

Use write() rather than 'fprintf()' for the TRACE_PTH_FNS blocks for
pthread_mutex_lock and pthread_mutex_lock. Mixing FILE and fd isn't
great, but this is to stderr which gets flushed on every line, and
it is only for developer builds that modify that TRACE_PTH_FNS macro.
NEWS
helgrind/hg_intercepts.c