title: valgrind - Find memory leak in a shared library
body: <p>I need to know ways to find out the memory leaks in a shared library which will be loaded to a release binary. I mean shared library I built with -g option but the binary that loads the shared library is not built with -g option.</p>
  
  <p>I get the leak report as follows.</p>
  
  <pre><code>==739==    at 0x4A05809: malloc (vg_replace_malloc.c:149)
  ==739==    by 0x84781B1: ???
  ==739==    by 0x87507F5: ???
  ==739==    by 0x874CF47: ???
  ==739==    by 0x874E657: ???
  ==739==    by 0x874F7C2: ???
  ==739==    by 0x8779C0C: ???
  </code></pre>
  
  <p>Please let me know how to get the stack trace of the leak from the shared library?</p>