]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix 324227 memcheck false positive leak when a thread calls exit+block
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Mon, 21 Oct 2013 19:57:08 +0000 (19:57 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Mon, 21 Oct 2013 19:57:08 +0000 (19:57 +0000)
commit81d7bfdddec1c32a702aff4a461368aa9844098f
tree835c6b79012664f8fc3a3e1aa786851f4e54e281
parentfbe834ff1ab8f4660c81020ef315f871e0b3c00f
Fix 324227  memcheck false positive leak when a thread calls exit+block
only reachable via other thread live register

The exiting thread will have its registers considered as not reachable
anymore, registers of other threads will be considered reachable.

This is ensured by using a different exit reason for the
exiting thread and for the other threads.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13670
NEWS
coregrind/m_machine.c
coregrind/m_syswrap/syswrap-linux.c
coregrind/m_threadstate.c
coregrind/pub_core_threadstate.h
include/pub_tool_machine.h
memcheck/tests/Makefile.am
memcheck/tests/reach_thread_register.c [new file with mode: 0644]
memcheck/tests/reach_thread_register.stderr.exp [new file with mode: 0644]
memcheck/tests/reach_thread_register.vgtest [new file with mode: 0644]