Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

I want to print the call stack in my log when my C/C++ program crash like SIGSEGV and SIGABRT and so on. What should I do?

$
0
0

I tried to use backtrace_symbols in a sianal handler, but now I know the function is not signal-safe.

And there is always the backtrace in android log when the crash happened, I want my program to be convenient like the backtrace in android phone.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>