Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
paulapatience opened this issue May 15, 2022 · 1 comment
Open

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

paulapatience opened this issue May 15, 2022 · 1 comment

Comments

@paulapatience
Copy link

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
Copy link

talas commented Oct 5, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants