Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- pip
- cs224n
- seq2seq
- paper_review
- linux
- Ai
- Standford
- cs231n
- language_model
- computer_setting
- Vim
- github
- nlp
- terminal
- computer
- tab
- json
- gensim
- machinelearning
- natural_language_processing
- install
- review
- Statistics
- Stanford
- text
- code
- slideshare
- deeplearning
- git
- error
Archives
- Today
- Total
목록debugging (1)
NLP/AI/Statistics
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/nR7K0/btq6FuIHjSK/eHGHEZo73KJwqWTXE3Das0/img.png)
python에서 작업하는 도중에 segmentation fault (core dumped) 문제가 발생했다. 이는 대부분 C에서 발생하는 문제라고 하는데, python에서도 종종 발생한다고 한다. segmentation fault는 스크립트에서 어디가 문제인지조차 알려주지 않기 때문에 debug를 통해 어디가 문제인지 확인하는 것이 중요하다. gdb라는 것을 사용하여 segmentation fault의 오류 발생 시점이 어디인지 알 수 있다. #. 실행시키고자 하는 python파일 이름을 text.py라고 가정한다. $ mkdir -p ~/.config/gdb $ cd ~/.config/gdb $ wget https://hg.python.org/cpython/rawfile/3.6/Tools/gdb/lib..