nosqldev / async_coro

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

Open lag1500 opened 5 years ago

lag1500 commented 5 years ago

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!