Skip to content

Instantly share code, notes, and snippets.

@runcom
Created May 24, 2015 20:32
Show Gist options
  • Save runcom/5791bd0befbe8f0c7d3b to your computer and use it in GitHub Desktop.
Save runcom/5791bd0befbe8f0c7d3b to your computer and use it in GitHub Desktop.
race stats native driver 2
==================
WARNING: DATA RACE
Write by goroutine 96:
runtime.mapdelete()
/usr/local/go/src/runtime/hashmap.go:495 +0x0
github.com/docker/libcontainer/cgroups.RemovePaths()
/go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/cgroups/utils.go:230 +0x1f6
github.com/docker/libcontainer/cgroups/fs.(*Manager).Destroy()
/go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/cgroups/fs/apply_raw.go:127 +0x5e
github.com/docker/libcontainer.(*linuxContainer).Destroy()
/go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/container_linux.go:233 +0x398
github.com/docker/docker/daemon/execdriver/native.(*driver).Run()
/go/src/github.com/docker/docker/daemon/execdriver/native/driver.go:178 +0xda8
github.com/docker/docker/daemon.(*Daemon).Run()
/go/src/github.com/docker/docker/daemon/daemon.go:1033 +0xe1
github.com/docker/docker/daemon.(*containerMonitor).Start()
/go/src/github.com/docker/docker/daemon/monitor.go:138 +0x784
github.com/docker/docker/daemon.*containerMonitor.Start·fm()
/go/src/github.com/docker/docker/daemon/container.go:703 +0x46
github.com/docker/docker/pkg/promise.func·001()
/go/src/github.com/docker/docker/pkg/promise/promise.go:8 +0x4f
Previous read by goroutine 27:
runtime.mapiterinit()
/usr/local/go/src/runtime/hashmap.go:543 +0x0
github.com/docker/libcontainer/cgroups/fs.(*Manager).GetStats()
/go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/cgroups/fs/apply_raw.go:136 +0x19e
github.com/docker/libcontainer.(*linuxContainer).Stats()
/go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/container_linux.go:67 +0xf9
github.com/docker/docker/daemon/execdriver/native.(*driver).Stats()
/go/src/github.com/docker/docker/daemon/execdriver/native/driver.go:343 +0x197
github.com/docker/docker/daemon.(*Daemon).Stats()
/go/src/github.com/docker/docker/daemon/daemon.go:1041 +0xaa
github.com/docker/docker/daemon.(*Container).Stats()
/go/src/github.com/docker/docker/daemon/container.go:727 +0x69
github.com/docker/docker/daemon.(*statsCollector).run()
/go/src/github.com/docker/docker/daemon/stats_collector.go:108 +0x534
Goroutine 96 (running) created at:
github.com/docker/docker/pkg/promise.Go()
/go/src/github.com/docker/docker/pkg/promise/promise.go:9 +0x159
github.com/docker/docker/daemon.(*Container).waitForStart()
/go/src/github.com/docker/docker/daemon/container.go:703 +0x3c4
github.com/docker/docker/daemon.(*Container).Start()
/go/src/github.com/docker/docker/daemon/container.go:273 +0x5b2
github.com/docker/docker/daemon.(*Container).initializeNetworking()
/go/src/github.com/docker/docker/daemon/container_linux.go:795 +0x928
github.com/docker/docker/daemon.(*Container).Start()
/go/src/github.com/docker/docker/daemon/container.go:251 +0x2de
github.com/docker/docker/daemon.(*Daemon).ContainerStart()
/go/src/github.com/docker/docker/daemon/start.go:35 +0x2b2
github.com/docker/docker/api/server.(*Server).postContainersStart()
/go/src/github.com/docker/docker/api/server/server.go:1001 +0x207
github.com/docker/docker/api/server.*Server.(github.com/docker/docker/api/server.postContainersStart)·fm()
/go/src/github.com/docker/docker/api/server/server.go:1503 +0x88
github.com/docker/docker/api/server.func·008()
/go/src/github.com/docker/docker/api/server/server.go:1454 +0xb5b
net/http.HandlerFunc.ServeHTTP()
/usr/local/go/src/net/http/server.go:1265 +0x4e
github.com/gorilla/mux.(*Router).ServeHTTP()
/go/src/github.com/docker/docker/vendor/src/github.com/gorilla/mux/mux.go:98 +0x377
net/http.serverHandler.ServeHTTP()
/usr/local/go/src/net/http/server.go:1703 +0x1f6
net/http.(*conn).serve()
/usr/local/go/src/net/http/server.go:1204 +0x1087
Goroutine 27 (running) created at:
github.com/docker/docker/daemon.newStatsCollector()
/go/src/github.com/docker/docker/daemon/stats_collector.go:29 +0x18b
github.com/docker/docker/daemon.NewDaemon()
/go/src/github.com/docker/docker/daemon/daemon.go:863 +0x3390
main.mainDaemon()
/go/src/github.com/docker/docker/docker/daemon.go:143 +0xc7d
main.main()
/go/src/github.com/docker/docker/docker/docker.go:92 +0x94f
==================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment