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

--- Comment #4 from Paul Floyd <pjfl...@wanadoo.fr> ---
Thanks for adding me to the CC Philippe.

If I do this:
export GLIBC_TUNABLES="glibc.pthread.stack_cache_size=0"

Then helgrind/tests/tls_threads fails with just
+--21937:0:   sched WARNING: pthread stack cache cannot be disabled!

Without the env var there are a load of 

+Possible data race during write of size 8 at 0x........ by thread #x

errors

Do we have a way of knowing that GLIBC_TUNABLES did something so that we don't
need to twiddle with stack_cache_actsize?
Also --sim-hints=no-nptl-pthread-stackcache isn't turned on by default. Do we
want to check for it in setup_client_env ()  and only put GLIBC_TUNABLES in the
environment if it is used? Or perhaps add a new simhint.

Bonus points for handling GLIBC_TUNABLES already set by the tuner, and add or
replace glibc.pthread.stack_cache_size

This doesn't seem to help the example being discussed in the valgrind-users
list.

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

Reply via email to