How do I tell valgrind to memcheck forked processes?

前端 未结 1 975
孤城傲影
孤城傲影 2020-12-16 09:27

I have a process x that I want to check for leaks with valgrind. The problem is that x is run by y, and y i

相关标签:
1条回答
  • 2020-12-16 09:57
    1. Valgrind follows forked processes when given the --trace-children=yes option.
    2. You should be able to achieve this by using suitable filters.
    3. No. Valgrind hooks into the module loading code using LD_PRELOAD, so attaching to a running process is not possible.
    0 讨论(0)
提交回复
热议问题