-
Notifications
You must be signed in to change notification settings - Fork 18k
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
runtime: freedefer with d._panic != nil (regression in 1.13) #33841
Comments
I can't reproduce that error. Instead I get a different one:
|
Does it function correctly for you with 1.12.x? |
Yes. |
Excellent; glad you can at least reproduce something. :) Let me know if/how I can be of help. |
I have a theory. The code does this:
The The ioctl manpage says this is the structure:
I think it's writing something to those two additional fields. Adding 4 bytes of padding to the end of that structure fixes the bug. |
CC @mattn |
I'm going to close this as not a bug in Go. |
Thanks, Keith, and sorry for the fire drill. |
This is a regression from 1.12 to 1.13rc1. I'm on darwin/amd64.
main.go (this is just the demo code from https://github.com/awesome-gocui/gocui):
go.mod:
go.sum (just in case):
With 1.12, this runs, says "hello world", and exits with ctl-c.
With 1.13rc1, I get:
Note that this will shred your terminal window, so don't reproduce this in a window in which you have history you care about.
Tentatively marking as release blocker. I don't plan to investigate further at the moment, unless others cannot reproduce.
cc @randall77 @aclements @ianlancetaylor
The text was updated successfully, but these errors were encountered: