segfault (1) 썸네일형 리스트형 Segmentation Fault (SIGSEGV) & Bus Error (SIGBUS) Segmentation fault (SIGSEGV) : OS가 프로그램 에러를 발견하고 더 이상 실행할 수 없을 때 생기는 에러 Signal 11 Segmentation Violation의 준말 원인: 수행하는 프로그램이 할당 된 메모리 밖을 참조하려 하거나 read only memory에 값을 쓰려고 할 때 발생 예제: uninitialized pointer를 사용했을 때 Null Pointer를 de- referencing했을 때 해당 프로그램 범위 밖의 memory를 참조하려 할 때 (array의 out of bounds 같은 맥락) de-allocated된 메모리를 참조하려 할 때 Bus Error (SIGBUS): Signal 10 Bus Error 준말 원인: 해당 프로그램이 참조하려는 메모리.. 이전 1 다음