-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
assertion failed errno == EINTR (EBADF) running blinkenlights -rt sectorlisp.bin on WSL #180
Comments
Were you typing something when this happened, or does this happen without any keyboard input? The case below describes a known problem with EAGAIN sometimes being returned for a non-error case, which would need to be handled in addition to EINTR. If EGAIN is not being returned, perhaps just comment out the unassert on line 2351. I see you're running on WSL but there are cases where Linux will return -1 and errno == EGAIN when a function/arrow key has been pressed and only a portion of its ANSI multi-character sequence is read, or has yet been processed by the kernel. So you might try something like the following just before line 2331 of blink/blinkenlights.c:
I have had to add this in the library |
Wasn't typing anything. Just immediately crashes |
Can you comment out the |
doesn't crash if I comment out the unassert. |
Thanks for the continued testing @swolchok. I'm glad to hear this change allows blink to run sectorlisp. I'll fix this, but would like to learn what the errno is that's not EINTR. I'm guessing EAGAIN, but will try to confirm first. |
I built blinkenlights from source using the default Ubuntu that WSL installed (which is focal). I built sectorlisp's friendly branch. When I run
blinkenlights -rt sectorlisp.bin
I see:brainf**k.bin fails similarly but not on the same line:
The text was updated successfully, but these errors were encountered: