refactor stacktrace resolve to only make one invocation of addr2line on posix