What is a segmentation fault on Linux?

后端 未结 2 1586
一个人的身影
一个人的身影 2020-12-13 13:26

In Linux:

What is a segmentation fault? I know it crashes programs, but is that some sort of memory leak problem, or something completely unrelated? Also, how do you

2条回答
  •  萌比男神i
    2020-12-13 14:09

    A 'segfault' is when a program accesses protected or invalid memory; usually due to poor memory management or buggy pointer manipulation.

    The OS detects invalid memory access and crashes the app.

提交回复
热议问题