https://bugs.kde.org/show_bug.cgi?id=522533

--- Comment #4 from Sam James <[email protected]> ---
(In reply to Sam James from comment #3)
> Jan rightly points out [0] that it may not make sense to build Valgrind
> itself w/ -Wa,-O2 but similar issues happen when Valgrind itself wasn't but
> it is executing a binary that was (sorry, should've said this earlier, I'd
> said it on IRC last night):

Oh, interesting.. the function in systemd has this:

#if HAVE_VALGRIND_VALGRIND_H
_destructor_ static void cleanup_pools(void) {
        /* Be nice to valgrind */
        if (RUNNING_ON_VALGRIND)
                hashmap_trim_pools();
}
#endif

so maybe we need to do something in valgrind.h instead (note that it is
unfortunately vendored in many projects..).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to