Debugging a memory leak that doesn't show on heap profiling

前端 未结 1 444
南笙
南笙 2021-01-01 09:03

I\'m working on a Haskell daemon that receives and processes JSON requests. While the operations of the daemon are complex, the main structure is intentionally kept simple:

相关标签:
1条回答
  • 2021-01-01 09:36

    While I am not familiar with Haskell daemon itself, answering your question "how it'd be possible to more effectively pinpoint such a leak", it might be possible to use

    valgrind --leak-check=yes haskelldaemon (better if you compile it with debug info),

    OR, if the leak happens in shared library, try

    LD_PRELOAD="yourlibrary.so" valgrind your-executable.

    0 讨论(0)
提交回复
热议问题