, ?
, ( ) , APP :
- TCP , . (TCP , AFAIK. , , )
- UDP- - UDP
- , ( , ).
- TCP/UDP , .
, , . , . , . - " " - , ( ) .
:
. Windows _ set_se_handlers backtrace ++.
In linux, I think you should create a SIGSEGV signal handler.
While segfault capture sounds like a decent idea, instead of trying to deal with it from within the program, it makes sense to generate a kernel dump and a guarantee. In windows, you can use MiniDumpWriteDump from within the program, and on linux you can configure the creation of core dumps in the shell ( ulimit -c, I think?).
source
share