issue-644: fix possible out-of-bounds access in GetenvBeforeMain

As suggested by user Ivan L.
issue-641: Added --show_addresses option

This applies patch by user yurivict.
Cope with new addr2line outputs for DWARF4

Copes with ? for line number (converts to 0).
Copes with (discriminator <num>) suffixes to file/linenum (removes).

Change-Id: I96207165e4852c71d3512157864f12d101cdf44a
Added remaining memory allocated info to 'Exiting' dump message

This applies patch by user yurivict.