Support valgrind for ST
winlinvip opened this issue · 4 comments
winlinvip commented
Valgrind is very useful toolkit for memory leak detect and memory corrupt check, but not support ST for the setjmp/longjmp. Maybe we can patch ST to support valgrind.
winlinvip commented
toffaletti already support this feature, we can merge this fork.
winlinvip commented
We just need to tell valgrind the stack we allocate, by macro VALGRIND_STACK_REGISTER and VALGRIND_STACK_DEREGISTER
The usage: https://github.com/ossrs/state-threads/tree/srs#usage
winlinvip commented
For valgrind usage: https://github.com/ossrs/state-threads/tree/srs#valgrind
winlinvip commented
SRS3 already use state-threads-1.9.1.tar.gz, which is the latest ST, patched to support Valgrind.