public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Is there any mechanism in GDB to print memory allocation pattern in a core dump file
@ 2012-05-23 12:33 santoshp
  2012-05-23 15:13 ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: santoshp @ 2012-05-23 12:33 UTC (permalink / raw)
  To: gdb


Hi All,
I got a crash for which the size of the core file is little bigger i.e.
~9GB. Initial impression is that there might be some memory leaks in the
process as the size is bugger than the usual size. Is there any mechanism in
GDB/Linux I can find out the memory allocation pattern in the core file?
e.g. There is a tool debug diag in Windows which can do this nicely from
dump file.

Any pointers will be appreciated.

Thanks,
Santosh
-- 
View this message in context: http://old.nabble.com/Is-there-any-mechanism-in-GDB-to-print-memory-allocation-pattern-in-a-core-dump-file-tp33895291p33895291.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there any mechanism in GDB to print memory allocation pattern in a core dump file
  2012-05-23 12:33 Is there any mechanism in GDB to print memory allocation pattern in a core dump file santoshp
@ 2012-05-23 15:13 ` Tom Tromey
  2012-05-23 17:18   ` santoshp
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2012-05-23 15:13 UTC (permalink / raw)
  To: santoshp; +Cc: gdb

>>>>> "Santosh" == santoshp  <santosh.pradhan@gmail.com> writes:

Santosh> I got a crash for which the size of the core file is little
Santosh> bigger i.e.  ~9GB. Initial impression is that there might be
Santosh> some memory leaks in the process as the size is bugger than the
Santosh> usual size. Is there any mechanism in GDB/Linux I can find out
Santosh> the memory allocation pattern in the core file?  e.g. There is
Santosh> a tool debug diag in Windows which can do this nicely from dump
Santosh> file.

Nothing built in, but there is gdb-heap, if you're on a system using
glibc.

https://fedorahosted.org/gdb-heap/

Tom

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there any mechanism in GDB to print memory allocation pattern in a core dump file
  2012-05-23 15:13 ` Tom Tromey
@ 2012-05-23 17:18   ` santoshp
  2012-05-25 14:27     ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: santoshp @ 2012-05-23 17:18 UTC (permalink / raw)
  To: gdb


The application is a C++ application running on Linux (RHEL 5.7 x86_64). It
uses a private memory allocator (variation of ptmalloc). The gdb-heap link
says it works for python objects and work for c++ is under process. Can I
use the gdb-heap ?

Thanks,
Santosh

Nothing built in, but there is gdb-heap, if you're on a system using
glibc.

https://fedorahosted.org/gdb-heap/

Tom



-- 
View this message in context: http://old.nabble.com/Is-there-any-mechanism-in-GDB-to-print-memory-allocation-pattern-in-a-core-dump-file-tp33895291p33897108.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is there any mechanism in GDB to print memory allocation pattern in a core dump file
  2012-05-23 17:18   ` santoshp
@ 2012-05-25 14:27     ` Tom Tromey
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Tromey @ 2012-05-25 14:27 UTC (permalink / raw)
  To: santoshp; +Cc: gdb

>>>>> "Santosh" == santoshp  <santosh.pradhan@gmail.com> writes:

Santosh> The application is a C++ application running on Linux (RHEL 5.7
Santosh> x86_64). It uses a private memory allocator (variation of
Santosh> ptmalloc). The gdb-heap link says it works for python objects
Santosh> and work for c++ is under process. Can I use the gdb-heap ?

Probably not as-is.  gdb-heap relies on glibc.

You could probably port it to your allocator, though.

Tom

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-25 14:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-23 12:33 Is there any mechanism in GDB to print memory allocation pattern in a core dump file santoshp
2012-05-23 15:13 ` Tom Tromey
2012-05-23 17:18   ` santoshp
2012-05-25 14:27     ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).