Seg Fault
Author: a-p-joCreated Feb 28, 2021Updated Jan 14, 2024
When trying to do ./kilo clip.c , I get zsh: segmentation fault kilo clip.c. View 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
Source: antirez/kilo