Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support valgrind for ST #2

Closed
winlinvip opened this issue Sep 3, 2016 · 4 comments
Closed

Support valgrind for ST #2

winlinvip opened this issue Sep 3, 2016 · 4 comments
Labels

Comments

@winlinvip
Copy link
Member

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
Copy link
Member Author

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

@winlinvip
Copy link
Member Author

winlinvip commented Sep 4, 2016

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
Copy link
Member Author

winlinvip commented Sep 4, 2016

@winlinvip
Copy link
Member Author

winlinvip commented Feb 28, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant