-
Notifications
You must be signed in to change notification settings - Fork 18k
x/sys/unix: Gettimeofday broken on Darwin: doesn't set the time. #38925
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
Comments
I imagine that this was broken when the Darwin support was converted to use libc. Someone probably needs to drop the various |
https://golang.org/src/cmd/vendor/golang.org/x/sys/unix/syscall_darwin_386.go#L27 These type conversion are wrong in |
Change https://golang.org/cl/232803 mentions this issue: |
@wbl thanks for the report. I've sent a fix at https://golang.org/cl/232803 and this works on |
I might need some step by step instructions on how to check out the tree and run the newly built tool against my example: not that experienced with gerrit. @Lekensteyn was the original discoverer of this issue: I just passed it on. |
@wbl you should be able to get the CL into your local clone of |
It worked for me! Thanks for your instructions and quick fix to this issue. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
The current time
What did you see instead?
All zeros
The text was updated successfully, but these errors were encountered: