Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
解决方法
static void
sigend_handler(int sig)
{
test_got_sigend(you code);
if (sig = SIGINT)
{
//这样就不会有会退地址,esp不会野指针返回
exit(0);
}
}
signal(SIGTERM, sigend_handler)