antirez / antirez/kilo

Seg Fault

Đang mở
#76 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
9.1k
Fork
995
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When trying to do `./kilo clip.c` , I get `zsh: segmentation fault kilo clip.c`. [View clip.c](https://github.com/a-p-jo/CLIp/blob/main/clip.c).

macOS 11.2.2, on x86_64 Intel CPU, compiled with clang and gcc (tried both, tried all optimisation levels), using default terminal and zsh.

Will try on linux and update.

**EDIT 1 :**
Possibly due to one/some of the errors posted in #77 .

Most likely:
```
kilo.c:1211:9: warning: 'break' will never be executed [-Wunreachable-code-break]
break;
kilo.c:1307:12: warning: 'return' will never be executed [-Wunreachable-code-return]
return 0;
```
or some other UB / EB ?

**EDIT 2:**
It *does not* instantly seg fault. It takes quite a few seconds. And it seems to use the CPU highly during this.
it is read and writing *Gigabytes* of data during this ! WTF

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.