Asynchronous IO + coroutine, a high performance solution for networking server. You can write code as synchronous model, rather than control state machine by yourself.
12
stars
3
forks
source link
how to check stack overflow for the stack of context #3
Recently my program crash occasionally. Gdb and valgrind don't tell anything really useful. After hard debugging, we finally found the reason is that the stack of context overflow ( like define a big local array).
We tried to do something to make the program crash as soon as stack overflow or the core file contains much more useful information, but we failed.
GCC flag -fstack-protector-all doesn't help, neither exp-sgcheck of valgrind.
Thank u for any advice!
Recently my program crash occasionally. Gdb and valgrind don't tell anything really useful. After hard debugging, we finally found the reason is that the stack of context overflow ( like define a big local array). We tried to do something to make the program crash as soon as stack overflow or the core file contains much more useful information, but we failed. GCC flag -fstack-protector-all doesn't help, neither exp-sgcheck of valgrind. Thank u for any advice!