You might want to look at this code: https://github.com/stass/libsegfault Which uses this libunwind: (I think) http://www.nongnu.org/libunwind/man/libunwind(3).html Might be just want you wanted. -Kurt