You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we don't fix this, users can't run their tests/apps in -race mode if they're using godirwalk.
Benchmarks fail for other reasons even without -race:
Benchmark2ReadDirentsGodirwalk
Benchmark2ReadDirentsGodirwalk: benchmark_test.go:24: open /mnt/ram_disk/src/linkedin/dashboards: no such file or directory
--- FAIL: Benchmark2ReadDirentsGodirwalk
Benchmark2ReadDirnamesGodirwalk
Benchmark2ReadDirnamesGodirwalk: benchmark_test.go:38: open /mnt/ram_disk/src/linkedin/dashboards: no such file or directory
--- FAIL: Benchmark2ReadDirnamesGodirwalk
Benchmark2GodirwalkSorted
Benchmark2GodirwalkSorted: benchmark_test.go:60: GOT: lstat /mnt/ram_disk/src: no such file or directory; WANT: nil
--- FAIL: Benchmark2GodirwalkSorted
Benchmark2GodirwalkUnsorted
Benchmark2GodirwalkUnsorted: benchmark_test.go:81: GOT: lstat /mnt/ram_disk/src: no such file or directory; WANT: nil
The text was updated successfully, but these errors were encountered:
Steps to reproduce:
Result:
Since Go 1.14
-d=checkptr
is enabled with-race
.With async preemption that is a recent Go addition, rules for
unsafe
became more strict.1.14 release notes mentions this:
I believe this is a root of panic here.
godirwalk/scandir_unix.go
Lines 147 to 148 in 28c3d94
See golang/go#34964
If we don't fix this, users can't run their tests/apps in
-race
mode if they're usinggodirwalk
.Benchmarks fail for other reasons even without
-race
:The text was updated successfully, but these errors were encountered: