Segmentation error

yoodeit·2022년 11월 19일

튜터링 도중에 러닝페어 프로젝트에서 오류가 난다는 질문을 받았다.
코드를 받아들고 vscode로 돌리니 노란 부분이 있길래 그거 고쳐놓고 이제 실행되겠거니...생각했는데?
segmentation error, bus error가 자꾸 발생한다.
이게 뭐고,,, 하고 구글링을 해 보았다.

Python segmentation error는
코드상의 문제로 발생하거나, 호환되지 않는 패키지 간의 충돌 문제로 발생한다고 했다.

무려 8년 전 Stack overflow에서는
segmentation fault is a very low-level error
it means that the operating system caught your program accessing a range of memory addresses that were not assignmed to any actual memory.
If you were programming in C, this would indicate a bug in your code. But you are programming in Python. It is supposed to be impossible for anything you do in Python to trigger a segmentation fault. The bug is not actually in your code.
The most likely cause of this problem is, a hardware fault.
대충 뭐 요런 답변이 달렸다만,,, 너무 오래 전의 답이라 신뢰가 안가고.

profile
Yoodeit

0개의 댓글