Race in github.com/juju/juju/cmd/juju/commands/BootstrapSuite
Bug #1640192 reported by
Curtis Hovey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Unassigned |
Bug Description
As seen in
http://
There is a race involving testing.
Changed in juju: | |
importance: | High → Medium |
To post a comment you must log in.
================== com/juju/ juju/provider/ dummy.( *environProvide r).CredentialSc hemas() autogenerated> :3 +0xa2 com/juju/ juju/cmd/ juju/commands. (*bootstrapComm and).cloud( ) home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/cmd/ juju/commands/ bootstrap. go:645 +0xc23 com/juju/ juju/cmd/ juju/commands. (*bootstrapComm and).Run( ) home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/cmd/ juju/commands/ bootstrap. go:336 +0x252 com/juju/ juju/cmd/ juju/commands. (*bootstrapComm andWrapper) .Run() home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/cmd/ juju/commands/ bootstrap_ test.go: 137 +0x95 com/juju/ juju/cmd/ modelcmd. (*modelCommandW rapper) .Run() home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/cmd/ modelcmd/ modelcommand. go:282 +0x6e com/juju/ juju/cmd/ modelcmd. (*baseCommandWr apper). Run() home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/cmd/ modelcmd/ base.go: 325 +0x10b com/juju/ juju/cmd/ testing. RunCommand. func1() home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/cmd/ testing/ testing. go:86 +0x12c
WARNING: DATA RACE
Read by goroutine 71:
github.
<
github.
/
github.
/
github.
/
github.
/
github.
/
github.
/
Previous write by goroutine 169: atomic. AddInt32( ) usr/lib/ go-1.6/ src/runtime/ race_amd64. s:255 +0xb (*Mutex) .Unlock( ) usr/lib/ go-1.6/ src/sync/ mutex.go: 107 +0x55 com/juju/ juju/provider/ dummy.Listen( ) home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/provider/ dummy/environs. go:467 +0x1ee com/juju/ juju/cmd/ testing. RunCommand. func1.1( ) home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/cmd/ testing/ testing. go:74 +0x2d com/juju/ juju/cmd/ testing. RunCommand. func1() home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/cmd/ testing/ testing. go:87 +0x17c
sync/
/
sync.
/
github.
/
github.
/
github.
/
Goroutine 71 (running) created at: com/juju/ juju/cmd/ testing. RunCommand( ) home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/cmd/ testing/ testing. go:87 +0x21f com/juju/ juju/cmd/ juju/commands. (*BootstrapSuit e).run( ) home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/cmd/ juju/commands/ bootstrap_ test.go: 228 +0xb54 com/juju/ juju/cmd/ juju/commands. (*BootstrapSuit e).TestRunTests () home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/cmd/ juju/commands/ bootstrap_ test.go: 155 +0x2e0 usr/lib/ go-1.6/ src/runtime/ asm_amd64. s:472 +0x3d Value.Call( ) usr/lib/ go-1.6/ src/reflect/ value.go: 303 +0xcd in/check% 2ev1.(* suiteRunner) .forkTest. func1() home/ubuntu/ juju-core_ 2.0.2/src/ gopkg.in/ check.v1/ check.go: 772 +0x5d1 in/check% 2ev1.(* suiteRunner) .forkCall. func1() home/ubuntu/ juju-core_ 2.0.2/src/ gopkg.in/ check.v1/ check.go: 666 +0x80
github.
/
github.
/
github.
/
runtime.call32()
/
reflect.
/
gopkg.
/
gopkg.
/
Goroutine 169 (finished) created at: com/juju/ juju/cmd/ testing. RunCommand( ) home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/cmd/ testing/ testing. go:87 +0x21f com/juju/ juju/cmd/ juju/commands. (*BootstrapSuit e).run( ) home/ubuntu/ juju-core_ 2.0.2/src/ github. com/juju/ juju/cmd/ juju/commands/ bootstrap_ test.go: 228 +0xb54 com/juju/ juju/cmd/ juju/commands. (*BootstrapSuit e).TestRunTests () home/ubuntu/ juju-core_ 2.0.2/src/ github. com...
github.
/
github.
/
github.
/