What causes a SIGABRT fault?

前端 未结 3 881
半阙折子戏
半阙折子戏 2020-12-10 00:48

Could you please tell me what could possibly cause a SIGABRT fault in C++?

3条回答
  •  青春惊慌失措
    2020-12-10 01:21

    This usually happens when libraries encounter internal error, so they call abort(), because they cant continue. This might happen when you overwrite one of it's data structures (the one which belongs to the function from libc for example). So this might be e.g. libc calling because you did overwrite something. And the application must then terminate because it's impossible to continue or handle it, which is called failed assertion.

提交回复
热议问题