antirez / antirez/kilo

Seg Fault

Ouverte
#76 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C
Étoiles
9.1k
Forks
995
Métriques de merge des PR
Aucune PR mergée en 30 j

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.