ossrs/state-threads

Support valgrind for ST

winlinvip opened this issue · 4 comments

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.

toffaletti already support this feature, we can merge this fork.

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

SRS3 already use state-threads-1.9.1.tar.gz, which is the latest ST, patched to support Valgrind.