What causes a SIGSEGV

后端 未结 7 969
野性不改
野性不改 2020-11-27 15:52

I need to know the root cause of the segmentation fault (SIGSEGV), and how to handle it.

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-27 16:30

    using an invalid/null pointer? Overrunning the bounds of an array? Kindof hard to be specific without any sample code.

    Essentially, you are attempting to access memory that doesn't belong to your program, so the OS kills it.

提交回复
热议问题