-
Notifications
You must be signed in to change notification settings - Fork 18k
syscall: checkptr failures relating to Dirent on darwin and freebsd #35092
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
It does not happen for me under 10.15:
|
It seems that:
trigger the error. |
So it's not
The test is always false. |
Same happens in https://build.golang.org/log/79e02a85654067a443293a96844a33710e123c27 |
I'm probably not going to have time to look into this for another week or so. If someone wants to fix this, please go for it. Otherwise, it's probably worth at least adding some |
@mdempsky I'm investigating darwin one. Still not clearly understand the issue. If I add go/src/syscall/getdirentries_test.go Line 58 in 758eb02
Then the test pass. But it does fails again with |
Change https://golang.org/cl/203077 mentions this issue: |
Fixes Darwin. Updates #35092 Change-Id: I045f070c8549d00610b459e3a82cac870d9ddb54 Reviewed-on: https://go-review.googlesource.com/c/go/+/203077 Run-TryBot: Brad Fitzpatrick <[email protected]> Reviewed-by: Cuong Manh Le <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
Change https://golang.org/cl/202878 mentions this issue: |
Change https://golang.org/cl/202959 mentions this issue: |
Change https://golang.org/cl/202880 mentions this issue: |
Correct comment about allocating big enough slice to copy result of Getdirentries. While at it, also convert from Dirent directly to slice of byte. Updates #35092 Change-Id: I892de7953120622882e1561728e1e56b009a2351 Reviewed-on: https://go-review.googlesource.com/c/go/+/202880 Run-TryBot: Cuong Manh Le <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
Change https://golang.org/cl/203238 mentions this issue: |
Follow CL 202878 which did the same for package syscall. Updates golang/go#35092 Change-Id: Id53d2cde0333581c98d13b096a48f2a602b2425f Reviewed-on: https://go-review.googlesource.com/c/sys/+/202959 Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Cuong Manh Le <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
The freebsd and darwin -race builders are currently failing:
Both of these appear to be failing due to use of syscall.Dirent.
The text was updated successfully, but these errors were encountered: