Skip to content
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

syscall: C strings can be garbage collected out from under the system call #8681

Closed
rsc opened this issue Sep 8, 2014 · 1 comment
Closed

Comments

@rsc
Copy link
Contributor

rsc commented Sep 8, 2014

CL https://golang.org/cl/139360044/ should be included in Go 1.3.2 if there is
one.
See discussion there.

To date, we know of no one encountering this in the wild, so this alone is not worth
issuing 1.3.2.
@rsc
Copy link
Contributor Author

rsc commented Sep 12, 2014

Comment 1:

This cannot happen in Go 1.3. The syscall.Syscall assembly wrappers have no argument
types, so the garbage collector scans those words conservatively.
Solaris does not use assembly to make system calls, which is why they alone have this
problem.

Status changed to Retracted.

@rsc rsc added this to the Go1.3.2 milestone Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants