detecting leaks with purify in shared libraries

  • Follow


Hello.

On my solaris 10 box, I have a propriety application (no source code),
which dynamically links my shared library (I have the source).
How can I use purify to detect leaks in the plug-in (shared library)?

when tried, purify says something like (cant paste the exact snipped
at the moment):
"appName appears to be complete executable, cannot be instrumented."


Thanks in advance, Julian
0
Reply julian 11/16/2009 9:16:40 PM

julian.kania@gmail.com wrote:
> Hello.
> 
> On my solaris 10 box, I have a propriety application (no source code),
> which dynamically links my shared library (I have the source).
> How can I use purify to detect leaks in the plug-in (shared library)?
> 
> when tried, purify says something like (cant paste the exact snipped
> at the moment):
> "appName appears to be complete executable, cannot be instrumented."

     I don't know how to do it with Purify, or whether it's
even possible -- maybe an IBM/Rational forum would have an
answer.  But since you're on Solaris, you might be able to
use the built-in libumem.so to detect leaks.  There are a
couple of blogs describing how to substitute libumem.so for
the default allocator at run-time, and how to specify how
much and what kind of debugging information you want.

-- 
Eric Sosman
esosman@ieee-dot-org.invalid
0
Reply Eric 11/17/2009 5:17:44 AM


> > How can I use purify to detect leaks in the plug-in (shared library)?
> But since you're on Solaris, you might be able to
> use the built-in libumem.so to detect leaks. =A0

Hi Eric.
Thanks for the answer, I already tried libumem and mdb. Its useful
indeed, but Purify has different approach (instrumenting the code),
thus some scenarios looks easier to deal with when levaraging Purify.

Any other hints?

Regards, Julian.


0
Reply julian 11/17/2009 8:10:39 AM

julian.kania@gmail.com wrote:
>>> How can I use purify to detect leaks in the plug-in (shared library)?
>> But since you're on Solaris, you might be able to
>> use the built-in libumem.so to detect leaks.  
> 
> Hi Eric.
> Thanks for the answer, I already tried libumem and mdb. Its useful
> indeed, but Purify has different approach (instrumenting the code),
> thus some scenarios looks easier to deal with when levaraging Purify.
> 
> Any other hints?

     Just the one I already offered: Try an IBM/Rational forum
(or support channel).

-- 
Eric Sosman
esosman@ieee-dot-org.invalid
0
Reply Eric 11/17/2009 1:56:39 PM

"julian.kania@gmail.com" <julian.kania@gmail.com> writes:
>Hello.
>
>On my solaris 10 box, I have a propriety application (no source code),
>which dynamically links my shared library (I have the source).
>How can I use purify to detect leaks in the plug-in (shared library)?
>
>when tried, purify says something like (cant paste the exact snipped
>at the moment):
>"appName appears to be complete executable, cannot be instrumented."
>
>
>Thanks in advance, Julian

Write your own application that uses the library and purify them both together.

scott
0
Reply scott 11/21/2009 1:19:24 AM

4 Replies
668 Views

(page loaded in 0.09 seconds)

Similiar Articles:













7/22/2012 1:52:14 AM


Reply: