[erlang-questions] Edump: a new crashdump analysis library for the holidays.

Geoff Cant nem@REDACTED
Fri Dec 25 02:42:51 CET 2015

Hi all, merry holiday of your choice. This year, I got a nice block of time in New Zealand and wrote a new Erlang Crashdump analysis library that I’ve been meaning to get around to for ages.

https://github.com/archaelus/edump is a library for building indexes of crashdump files so that you can have efficient random access to information in arbitrarily large dump files. The index step is a one time cost that saves significant time for subsequent analyses.

Edump also provides parsers for most segment types, and analysis code that can reconstruct most process information (process dictionary terms, messages in message queues, values on the call stack and so on). Edump has a few high level analyses - process trees (in graphviz .dot format), process list summaries, system memory summaries and so on. There’s also an escript tool that provides a rudimentary CLI to poking around in crashdumps.

It should be useful right now - I’d love github issue reports of dump files it can’t analyse and other bugs.

Issues I know about (and would like help with):
* edump info is pretty basic. How do you even write CLI tools in Erlang? (escript with getopt seems OK, but I was hoping for a CLI tool framework that would be a bit more comprehensive (how do I have high level tasks that have lots of different options per task?)) Suggestions for a CLI framework would be welcome (I looked at clique, but it didn’t seem quite like me)
* More analyses, particularly process graphs.
* Better .dot output that draws process trees the way people expect to read them (how do I get the ‘ur process’ “erlang” at the top of the graph?)
* edump doesn’t have a web interface but should.
* The build process is a pain (rebar3 compile, rebar3 rdtl, rebar3 escriptize - I don’t know how to make that a one step process).

Anyway, I hope you find it useful (or you file a bug :)

Happy holidays,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151225/ec6d4118/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: erl_crash.png
Type: image/png
Size: 78639 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151225/ec6d4118/attachment.png>

More information about the erlang-questions mailing list