]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Ensure host stack trace has better chance to work when valgrind is exiting
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 8 Aug 2017 21:15:45 +0000 (21:15 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Tue, 8 Aug 2017 21:15:45 +0000 (21:15 +0000)
commit90dbfce36bd096692264bbfc7d1651ced8f140b3
tree99b35650aedca579f4827872f6d5391f62a2cdb6
parent7d84a435a84fc195392054acec075c2caf000fe2
Ensure host stack trace has better chance to work when valgrind is exiting

When investigating bug 383275, the host stacktrace was containing
only one IP. This is because the tid corresponding to the lwpid
is dead, and so no valid thread state was returned.
This then gave a rubbish stacktop of 0, which means unwinding
stops at first frame.

So, try harder to find a valid thread state when reporting the
host stacktrace.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16470
coregrind/m_libcassert.c
coregrind/m_threadstate.c
coregrind/pub_core_threadstate.h