[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-devtools
Subject:    RE: HPUX-DEVTOOLS: Tracing memory leak from core file?
From:       "Lee, Philip" <Philip.Lee () logicacmg ! com>
Date:       2003-09-23 13:51:02
[Download RAW message or body]

I suppose it might have been possible for gdb to scan the stack in a manner
similar to garbage collectors to identify unreferenced memory but I suppose
there's no book keeping in the default heap to identify what's there.

Plan B then :)

Thanks for your help.

	Phil.

> -----Original Message-----
> From: P.M.Srividya [mailto:pmsvidya@india.hp.com]
> Sent: 23 September 2003 14:25
> To: Lee, Philip
> Cc: hpux-devtools@cxx.cup.hp.com
> Subject: Re: HPUX-DEVTOOLS: Tracing memory leak from core file?
> 
> 
> 
> It is not possible to do heap analysis in core file using GDB.
> 
> -Srividhya.P.M.
> 
> 
> Lee, Philip wrote:
> > Alas we are restricted to examining the core file, i.e. we 
> can't run the
> > process under gdb at the customer site :(
> > 
> > Thanks,
> > 
> > 	Phil.
> > 
> > 
> > > -----Original Message-----
> > > From: P.M.Srividya [mailto:pmsvidya@india.hp.com]
> > > Sent: 23 September 2003 10:53
> > > To: Lee, Philip; hpux-dev@cxx.cup.hp.com
> > > Subject: Re: HPUX-DEVTOOLS: Tracing memory leak from core file?
> > > 
> > > 
> > > Hi,
> > > 
> > > 
> > > > Is it possible to get gdb to dump the heap (pref inc object 
> > > 
> > > types) so we can
> > > 
> > > > see if any needles jump out?
> > > 
> > > 
> > > Yes.. It is possible to dump the heap. Do the following in 
> > > gdb to get it.
> > > 
> > > (gdb) file a.out
> > > (gdb) set heap-check on
> > > (gdb) break <function>
> > > (gdb) run
> > > (gdb) info leak            =====> To see the leaks
> > > (gdb) info heap            =====> To see the heap
> > > 
> > > To get the leaks / heap information as a report in a file  
> just give 
> > > filename with info leak.
> > > 
> > > i.e. (gdb) info leak <filename>
> > > 
> > > For additional information go through the following web link:
> > > 
> > > http://devrsrc1.external.hp.com/devresource/Tools/wdb/doc/guid
> > 
> > e/gdb_15.html#IDX568
> > 
> > 
> > Thanks and Regards,
> > Srividhya.P.M.
> > 
> > 
> > 
> > 
> > 
> > This e-mail and any attachment is for authorised use by the 
> intended recipient(s) only. It may contain proprietary 
> material, confidential information and/or be subject to legal 
> privilege. It should not be copied, disclosed to, retained or 
> used by, any other party. If you are not an intended 
> recipient then please promptly delete this e-mail and any 
> attachment and all copies and inform the sender. Thank you.
> > 
> > LogicaCMG global sponsors, Gartner Symposium, Cannes, 4th 
> -7th November 2003
> > 
> > http://symposium.gartner.com/story.php.id.3323.s.5.html
> > 
> > Please note that LogicaCMG does not have control over 
> content from,or availability of, this website
> > _________________________________________________________________
> > To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
> > with the message UNSUBSCRIBE hpux-devtools
> > _________________________________________________________________
> > 
> 
> 

This e-mail and any attachment is for authorised use by the intended recipient(s) \
only. It may contain proprietary material, confidential information and/or be subject \
to legal privilege. It should not be copied, disclosed to, retained or used by, any \
other party. If you are not an intended recipient then please promptly delete this \
e-mail and any attachment and all copies and inform the sender. Thank you.

LogicaCMG global sponsors, Gartner Symposium, Cannes, 4th -7th November 2003

http://symposium.gartner.com/story.php.id.3323.s.5.html

Please note that LogicaCMG does not have control over content from,or availability \
of, this website  _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE hpux-devtools
 _________________________________________________________________


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic