Seg Fault
- Dominant language
- C
- Stars
- 9.1k
- Forks
- 995
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.