ktye / i

interpret
100 stars 17 forks source link

k+ segfaults on non-file command-line arguments #12

Open paulapatience opened 2 years ago

paulapatience commented 2 years ago

In a shell:

$ k+ @
0
^
Segmentation fault
$ echo >/tmp/a.k
$ k+ /tmp/a.k
ktye/k+
 ^C
$ k+ /tmp/a.k @
0
^
Segmentation fault
talas commented 11 months ago

The segfault might be caused by calling longjump without a prior setjmp. This can happen if a call to trap is made before the main repl loop.