WuBingzheng / libleak

detect memory leak by LD_PRELOAD, without changing the target program
249 stars 52 forks source link

How to use? #13

Closed M-Reimer closed 3 years ago

M-Reimer commented 4 years ago

I want to find a memory leak in a bigger program: http://tvdr.de/

But all that libleak produces is a over 100MB log with cryptic information. How should I find the relevant parts in 1991508 lines of log?

What this (probably very useful) tool really needs is some kind of tutorial on how to use it!

WuBingzheng commented 4 years ago

I add "READ LOG" section in README. Please check it out.

Maybe you could stop the output more early to avoid too big log.

WuBingzheng commented 4 years ago

I add 2 features which both can reduce log size:

  1. LEAK_AFTER, skip initial phase to avoid many logs;
  2. LEAK_LIB_BLACKLIST, to disable some shared libraries.

Please see the README for more detail.