History log of /external/valgrind/helgrind/tests/stackteardown.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3858abd33e8ffd77d6781014a03516e71a79db92 07-Mar-2015 rhyskidd <rhyskidd@a5019735-40e9-0310-863c-91ae7b9d1cf9> n-i-bz: Small fixes to r14976 (bz#343173) to add stackteardown to svn:ignore and fix compilation on OS X

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14984 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/tests/stackteardown.c
3a75d2e7a6b8e8d28024b7444228097ae1504ca2 03-Mar-2015 philippe <philippe@a5019735-40e9-0310-863c-91ae7b9d1cf9> Fix 343173 - helgrind crash during stack unwind

This fixes a helgrind crash detected on android.
Android bionic pthread lib unmaps the stack for detached threads
before exiting.
Helgrind tries to unwind the stack to record a 'read' after
the stack unmap, just before the exit syscall.
The unwind then causes a SEGV.

The solution consists in tightening the calculation of
the stack limits, so as to stop unwinding when no valid stack
can be found.
Regression test reproduces the same problem by simulating the
bionic behaviour on linux, using asm similar to bionic lib.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14976 a5019735-40e9-0310-863c-91ae7b9d1cf9
/external/valgrind/helgrind/tests/stackteardown.c