Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
premature garbage collection on armv7 not respecting runtime.KeepAlive? #28710
What did you do?
Wrote a small program to issue an ioctl system call, passing a pointer to a struct to the syscall via
Here is the full code: https://play.golang.org/p/elPL-IUS989
What did you expect to see?
Expected to see no segmentation fault without the
What did you see instead?
It's not a problem with
The problem seems more likely to be related to the fact that your definition of
Closing since I don't think this is a problem with Go. Please comment if you disagree.
@ianlancetaylor Thank you for taking a look at this. The
Nevertheless, tried adding the additional fields to the Go struct and ran into the same issue:
However, adding an additional