[erlang-questions] Understanding etp-heapdump output in gdb

Roger Lipscombe roger@REDACTED
Mon Dec 18 20:30:32 CET 2017


I'm attempting to figure out what binaries a particular process is
holding onto. I have a core dump; I have a (seemingly) working gdb
installation.

I've found the Process I care about:

    (gdb) set $p = (Process *)0x7f6be3d3f560
    (gdb) etp-heapdump $p

When I run etp-heapdump, I get a boatload of output.

It starts with:

% heapdump (22077):
 0x7f6b93bb8028: | H:   5-tuple | A:0x0003aa4b | B:0x93bb8072 |
A:0x0002abcb | C:0x93bb8090 | A:0x001a09cb | H:   2-tuple |
<0.1805.000>
 0x7f6b93bb8068: | B:0x93bb80a2 | header     3 |   0x93bb8078 |
0x93bb8080 |   0x93bb8088 | B:0x93bb80ba | C:0x93bb80d8 | header     2
 0x7f6b93bb80a8: |   0x93bb80a8 |   0x93bb80b0 | header     3 |
0x93bb80c0 |   0x93bb80c8 |   0x93bb80d0 | B:0x93bb80ea |    [] (NIL)
 0x7f6b93bb80e8: | header     3 |   0x93bb80f0 |   0x93bb80f8 |
0x93bb8100 | H:   2-tuple |           ok | <0.20777.000> | H:
3-tuple

How do I interpret this output?



More information about the erlang-questions mailing list