mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
This fixes bug 136154. Background: The function stack - CLG_(current_fn_stack) - is a stack of pointers to the fn_node structs of the currently active functions. This stack is used for determining current context from call chain to current function, and modified on entering (via push_cxt) and leaving a function. Entering a signal handler will push a 0 to the function stack to make the context only dependend on the call chain inside of the signal handler. Thus, delivering two signals in a row should push two times a 0 value onto the function stack. However, the second 0-push was incorrectly suppressed, leading to a failed assertion when returning from the 2nd signal handler. This also fixes a bug with incorrectly zeroing global cost counters when changing the execution context, introduced with r10386. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10399