As suggested by SET:
This make me think about another
interesting feature. May be is possible to add an option to
memorize some portion of the calling stack and dump it.
Then
using addr2line convert the addresses into source
references. In
this way we can know what function called the faulty
function. In
my case I could know where newStr was called.
In DOS this could be done with symify, just writing the
addresses
we want to translate to a file and calling symify to
translate
them. I wrote a small tool for Linux that does such a
conversion
using a pipe to addr2line to make it fast.