hep icon indicating copy to clipboard operation
hep copied to clipboard

rootio/cmd/root-fuse: data race in File.Read+File.Flush

Open sbinet opened this issue 6 years ago • 1 comments

2018/07/24 10:41:55 Unimplemented opcode POLL
2018/07/24 10:41:55 Unimplemented opcode POLL
==================
WARNING: DATA RACE
Write at 0x00c000074be8 by goroutine 28:
  go-hep.org/x/hep/rootio/cmd/root-fuse.(*File).Flush()
      /home/travis/gopath/src/go-hep.org/x/hep/rootio/cmd/root-fuse/fuse.go:163 +0x5f
  github.com/hanwen/go-fuse/fuse/nodefs.(*rawBridge).Flush()
      /home/travis/gopath/src/github.com/hanwen/go-fuse/fuse/nodefs/fsops.go:491 +0xe6
  github.com/hanwen/go-fuse/fuse.doFlush()
      /home/travis/gopath/src/github.com/hanwen/go-fuse/fuse/opcode.go:329 +0x8f
  github.com/hanwen/go-fuse/fuse.(*Server).handleRequest()
      /home/travis/gopath/src/github.com/hanwen/go-fuse/fuse/server.go:404 +0x484
  github.com/hanwen/go-fuse/fuse.(*Server).loop()
      /home/travis/gopath/src/github.com/hanwen/go-fuse/fuse/server.go:376 +0x18a
  github.com/hanwen/go-fuse/fuse.(*Server).Serve()
      /home/travis/gopath/src/github.com/hanwen/go-fuse/fuse/server.go:324 +0x66
Previous read at 0x00c000074be8 by goroutine 29:
  go-hep.org/x/hep/rootio/cmd/root-fuse.(*File).Read()
      /home/travis/gopath/src/go-hep.org/x/hep/rootio/cmd/root-fuse/fuse.go:190 +0x5a
  github.com/hanwen/go-fuse/fuse/pathfs.(*pathInode).Read()
      /home/travis/gopath/src/github.com/hanwen/go-fuse/fuse/pathfs/pathfs.go:744 +0x7f
  github.com/hanwen/go-fuse/fuse/nodefs.(*rawBridge).Read()
      /home/travis/gopath/src/github.com/hanwen/go-fuse/fuse/nodefs/fsops.go:452 +0x1b1
  github.com/hanwen/go-fuse/fuse.doRead()
      /home/travis/gopath/src/github.com/hanwen/go-fuse/fuse/opcode.go:319 +0x123
  github.com/hanwen/go-fuse/fuse.(*Server).handleRequest()
      /home/travis/gopath/src/github.com/hanwen/go-fuse/fuse/server.go:404 +0x484
  github.com/hanwen/go-fuse/fuse.(*Server).loop()
      /home/travis/gopath/src/github.com/hanwen/go-fuse/fuse/server.go:376 +0x18a
Goroutine 28 (running) created at:
  go-hep.org/x/hep/rootio/cmd/root-fuse.run()
      /home/travis/gopath/src/go-hep.org/x/hep/rootio/cmd/root-fuse/main.go:113 +0x52f
Goroutine 29 (running) created at:
  github.com/hanwen/go-fuse/fuse.(*Server).readRequest()
      /home/travis/gopath/src/github.com/hanwen/go-fuse/fuse/server.go:284 +0x440
  github.com/hanwen/go-fuse/fuse.(*Server).loop()
      /home/travis/gopath/src/github.com/hanwen/go-fuse/fuse/server.go:357 +0x78
  github.com/hanwen/go-fuse/fuse.(*Server).Serve()
      /home/travis/gopath/src/github.com/hanwen/go-fuse/fuse/server.go:324 +0x66
==================
--- FAIL: TestFUSEDirs (0.03s)
    testing.go:771: race detected during execution of test
FAIL

sbinet avatar Jul 24 '18 13:07 sbinet

another one (probably the same):

=== RUN   TestFUSEDirs
2018/12/13 18:10:25 Unimplemented opcode POLL
==================
WARNING: DATA RACE
Write at 0x00c000360c68 by goroutine 17:
  go-hep.org/x/hep/groot/cmd/root-fuse.(*File).Flush()
      /home/travis/gopath/src/go-hep.org/x/hep/groot/cmd/root-fuse/fuse.go:167 +0x47
  github.com/hanwen/go-fuse/fuse/nodefs.(*rawBridge).Flush()
      /home/travis/gopath/pkg/mod/github.com/hanwen/[email protected]/fuse/nodefs/fsops.go:490 +0xf5
  github.com/hanwen/go-fuse/fuse.doFlush()
      /home/travis/gopath/pkg/mod/github.com/hanwen/[email protected]/fuse/opcode.go:334 +0x8f
  github.com/hanwen/go-fuse/fuse.(*Server).handleRequest()
      /home/travis/gopath/pkg/mod/github.com/hanwen/[email protected]/fuse/server.go:405 +0x48a
  github.com/hanwen/go-fuse/fuse.(*Server).loop()
      /home/travis/gopath/pkg/mod/github.com/hanwen/[email protected]/fuse/server.go:377 +0x16d
  github.com/hanwen/go-fuse/fuse.(*Server).Serve()
      /home/travis/gopath/pkg/mod/github.com/hanwen/[email protected]/fuse/server.go:325 +0x66
Previous read at 0x00c000360c68 by goroutine 18:
  go-hep.org/x/hep/groot/cmd/root-fuse.(*File).Read()
      /home/travis/gopath/src/go-hep.org/x/hep/groot/cmd/root-fuse/fuse.go:194 +0x42
  github.com/hanwen/go-fuse/fuse/pathfs.(*pathInode).Read()
      /home/travis/gopath/pkg/mod/github.com/hanwen/[email protected]/fuse/pathfs/pathfs.go:749 +0x6d
  github.com/hanwen/go-fuse/fuse.doRead()
      /home/travis/gopath/pkg/mod/github.com/hanwen/[email protected]/fuse/opcode.go:324 +0x123
  github.com/hanwen/go-fuse/fuse.(*Server).handleRequest()
      /home/travis/gopath/pkg/mod/github.com/hanwen/[email protected]/fuse/server.go:405 +0x48a
  github.com/hanwen/go-fuse/fuse.(*Server).loop()
      /home/travis/gopath/pkg/mod/github.com/hanwen/[email protected]/fuse/server.go:377 +0x16d
Goroutine 17 (running) created at:
  go-hep.org/x/hep/groot/cmd/root-fuse.run()
      /home/travis/gopath/src/go-hep.org/x/hep/groot/cmd/root-fuse/main.go:114 +0x532
Goroutine 18 (running) created at:
  github.com/hanwen/go-fuse/fuse.(*Server).readRequest()
      /home/travis/gopath/pkg/mod/github.com/hanwen/[email protected]/fuse/server.go:285 +0x443
  github.com/hanwen/go-fuse/fuse.(*Server).loop()
      /home/travis/gopath/pkg/mod/github.com/hanwen/[email protected]/fuse/server.go:358 +0x78
  github.com/hanwen/go-fuse/fuse.(*Server).Serve()
      /home/travis/gopath/pkg/mod/github.com/hanwen/[email protected]/fuse/server.go:325 +0x66
==================
--- FAIL: TestFUSEDirs (0.03s)
    testing.go:806: race detected during execution of test

sbinet avatar Dec 13 '18 18:12 sbinet