{"action":"opened","issue":{"url":"https://api.github.com/repos/coreos/flannel/issues/381","labels_url":"https://api.github.com/repos/coreos/flannel/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/coreos/flannel/issues/381/comments","events_url":"https://api.github.com/repos/coreos/flannel/issues/381/events","html_url":"https://github.com/coreos/flannel/issues/381","id":120052317,"number":381,"title":"Race in tests","user":{"login":"eyakubovich","id":3586053,"avatar_url":"https://avatars.githubusercontent.com/u/3586053?v=3","gravatar_id":"","url":"https://api.github.com/users/eyakubovich","html_url":"https://github.com/eyakubovich","followers_url":"https://api.github.com/users/eyakubovich/followers","following_url":"https://api.github.com/users/eyakubovich/following{/other_user}","gists_url":"https://api.github.com/users/eyakubovich/gists{/gist_id}","starred_url":"https://api.github.com/users/eyakubovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyakubovich/subscriptions","organizations_url":"https://api.github.com/users/eyakubovich/orgs","repos_url":"https://api.github.com/users/eyakubovich/repos","events_url":"https://api.github.com/users/eyakubovich/events{/privacy}","received_events_url":"https://api.github.com/users/eyakubovich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-02T22:40:58Z","updated_at":"2015-12-02T22:40:58Z","closed_at":null,"body":"There seems to be a race in tests that causes it to sometimes hang. Not sure if it's Go 1.5 specific or not:\r\n\r\n```\r\nRunning tests...\r\nok  \tgithub.com/coreos/flannel/pkg/ip\t0.004s\tcoverage: 25.2% of statements\r\nSIGQUIT: quit\r\nPC=0x45ffb1 m=0\r\ngoroutine 0 [idle]:\r\nruntime.futex(0x99e110, 0x0, 0x0, 0x0, 0x0, 0x99d720, 0x0, 0x0, 0x40f064, 0x99e110, ...)\r\n\t/usr/local/go/src/runtime/sys_linux_amd64.s:288 +0x21\r\nruntime.futexsleep(0x99e110, 0x0, 0xffffffffffffffff)\r\n\t/usr/local/go/src/runtime/os1_linux.go:39 +0x53\r\nruntime.notesleep(0x99e110)\r\n\t/usr/local/go/src/runtime/lock_futex.go:142 +0xa4\r\nruntime.stopm()\r\n\t/usr/local/go/src/runtime/proc1.go:1128 +0x112\r\nruntime.findrunnable(0xc820022000, 0x0)\r\n\t/usr/local/go/src/runtime/proc1.go:1530 +0x69e\r\nruntime.schedule()\r\n\t/usr/local/go/src/runtime/proc1.go:1639 +0x267\r\nruntime.park_m(0xc820001500)\r\n\t/usr/local/go/src/runtime/proc1.go:1698 +0x18b\r\nruntime.mcall(0x7fff20ab4200)\r\n\t/usr/local/go/src/runtime/asm_amd64.s:204 +0x5b\r\ngoroutine 1 [chan receive]:\r\ntesting.RunTests(0x86ff70, 0x999920, 0xe, 0xe, 0xc8200aa401)\r\n\t/usr/local/go/src/testing/testing.go:562 +0x8ad\r\ntesting.(*M).Run(0xc82004fef8, 0x99d340)\r\n\t/usr/local/go/src/testing/testing.go:494 +0x70\r\nmain.main()\r\n\tgithub.com/coreos/flannel/subnet/_test/_testmain.go:142 +0x252\r\ngoroutine 17 [syscall, locked to thread]:\r\nruntime.goexit()\r\n\t/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1\r\ngoroutine 5 [runnable]:\r\ngithub.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog.(*loggingT).flushDaemon(0x99d660)\r\n\t/home/travis/gopath/src/github.com/coreos/flannel/gopath/src/github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog/glog.go:839 +0x67\r\ncreated by github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog.init.1\r\n\t/home/travis/gopath/src/github.com/coreos/flannel/gopath/src/github.com/coreos/flannel/Godeps/_workspace/src/github.com/golang/glog/glog.go:406 +0x297\r\ngoroutine 10 [chan receive]:\r\ngithub.com/coreos/flannel/subnet.TestWatchLeaseAdded(0xc82001c480)\r\n\t/home/travis/gopath/src/github.com/coreos/flannel/gopath/src/github.com/coreos/flannel/subnet/subnet_test.go:162 +0x61e\r\ntesting.tRunner(0xc82001c480, 0x999980)\r\n\t/usr/local/go/src/testing/testing.go:456 +0x98\r\ncreated by testing.RunTests\r\n\t/usr/local/go/src/testing/testing.go:561 +0x86d\r\ngoroutine 11 [select]:\r\ngithub.com/coreos/flannel/subnet.(*MockSubnetRegistry).watchSubnets(0xc820014ee0, 0x7fbb8b95deb8, 0xc820010ec0, 0x7d0718, 0x1, 0x3e9, 0x0, 0x0, 0x0, 0x0, ...)\r\n\tgithub.com/coreos/flannel/subnet/_test/_obj_test/mock_registry.go:289 +0x584\r\ngithub.com/coreos/flannel/subnet.(*LocalManager).WatchLeases(0xc820188200, 0x7fbb8b95deb8, 0xc820010ec0, 0x7d0718, 0x1, 0x770400, 0xc8201883b0, 0x0, 0x0, 0x0, ...)\r\n\tgithub.com/coreos/flannel/subnet/_test/_obj_test/local_manager.go:365 +0x38e\r\ngithub.com/coreos/flannel/subnet.WatchLeases(0x7fbb8b95deb8, 0xc820010ec0, 0x7fbb8b95db20, 0xc820188200, 0x7d0718, 0x1, 0xc82001ad20, 0xc82001ad80)\r\n\tgithub.com/coreos/flannel/subnet/_test/_obj_test/watch.go:39 +0x110\r\ncreated by github.com/coreos/flannel/subnet.TestWatchLeaseAdded\r\n\t/home/travis/gopath/src/github.com/coreos/flannel/gopath/src/github.com/coreos/flannel/subnet/subnet_test.go:144 +0x2fc\r\nrax    0xca\r\nrbx    0x0\r\nrcx    0xffffffffffffffff\r\nrdx    0x0\r\nrdi    0x99e110\r\nrsi    0x0\r\nrbp    0x1\r\nrsp    0x7fff20ab4058\r\nr8     0x0\r\nr9     0x0\r\nr10    0x0\r\nr11    0x286\r\nr12    0x1\r\nr13    0x86d331\r\nr14    0xa\r\nr15    0x8\r\nrip    0x45ffb1\r\nrflags 0x286\r\ncs     0x33\r\nfs     0x0\r\ngs     0x0\r\n*** Test killed with quit: ran too long (10m0s).\r\nFAIL\tgithub.com/coreos/flannel/subnet\t600.006s\r\n?   \tgithub.com/coreos/flannel/network\t[no test files]\r\nok  \tgithub.com/coreos/flannel/remote\t1.520s\tcoverage: 58.7% of statements\r\nThe command \"./test\" exited with 1.\r\nDone. Your build exited with 1.\r\nNo output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.\r\nThe build has been terminated\r\n```"}}