Any parsers exist for go 1.5 heap dumps?

714 views
Skip to first unread message

Jack

unread,
Sep 16, 2015, 8:35:49 AM9/16/15
to golang-nuts
Hi,

I'm trying to debug a memory leak.  While pprof can tell me where the memory was allocated, it cannot tell me who owns the pointer to the memory.  I think I will need to parse a heap dump.  Searching found https://groups.google.com/d/msg/golang-nuts/a9fzypWTtcE/ZJrZEMhUDWMJ where someone else had a similar problem with no help.  I'm hoping to see if I can volunteer to write a solution to this problem, but want to know if one exists first or any resources that currently exist.


I found https://github.com/randall77 but randall77's repository panics on WriteHeapDump data (I'm using go 1.5 and just changing the header isn't enough) and others have reported github issues without response.  A github search didn't turn up anything else promising.  Is there other code that can get me started?

Ian Lance Taylor

unread,
Sep 16, 2015, 10:00:38 AM9/16/15
to Jack, Keith Randall, golang-nuts
[ + khr ]
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Keith Randall

unread,
Sep 17, 2015, 1:45:36 AM9/17/15
to Ian Lance Taylor, Jack, Keith Randall, golang-nuts
Sorry, the heap viewer has not received the love it needs of late.  I don't think anything significant has changed from 1.4 to 1.5, so the viewer should still work.  Just a change from 1.4 to 1.5 in the header.

The heap dump viewer should work on pure Go dumps.  I've received problem reports on Go/cgo mixed applications due to unparseable (by the simple dwarf reader in the code) dwarf entries.  I'd appreciate patches if you have the time to look into the failures.

Jack L

unread,
Sep 17, 2015, 8:23:33 PM9/17/15
to Keith Randall, Ian Lance Taylor, Keith Randall, golang-nuts
I'm unable to get a hello world program to work.  I've filed a but report at https://github.com/randall77/heapdump14/issues/3 

happyf...@gmail.com

unread,
Jan 9, 2017, 12:32:09 PM1/9/17
to golang-nuts
I am also in same position. Did you find or wrote anything?
Reply all
Reply to author
Forward
0 new messages