Created
January 15, 2015 01:21
-
-
Save tylertreat/c0f3dd4cf266f9f42a0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go test -race github.com/gdamore/mangos/test | |
--- FAIL: TestBusTLS (1.00s) | |
common_test.go:500: Address tls+tcp://127.0.0.1:43934, 5 Cases | |
common_test.go:149: Jan 14 19:17:27.210: Id 0: Got dup START from 1 | |
common_test.go:149: Jan 14 19:17:27.382: Id 0: Got dup START from 1 | |
common_test.go:149: Jan 14 19:17:27.382: Id 0: Got dup START from 2 | |
common_test.go:149: Jan 14 19:17:27.473: Id 0: Sent all 7 messages | |
common_test.go:149: Jan 14 19:17:27.477: Id 4: Got all 7 messages | |
common_test.go:149: Jan 14 19:17:27.477: Id 3: Got all 7 messages | |
common_test.go:149: Jan 14 19:17:27.478: Id 2: Got all 7 messages | |
common_test.go:149: Jan 14 19:17:27.478: Id 1: Got all 7 messages | |
common_test.go:154: Jan 14 19:17:27.479: Id 0: Got dup message #5 from 2 | |
common_test.go:154: Jan 14 19:17:27.479: Id 0: RecvHook failed | |
common_test.go:149: Jan 14 19:17:27.479: Id 0: Testing complete | |
common_test.go:149: Jan 14 19:17:27.479: Id 2: Sent all 7 messages | |
common_test.go:149: Jan 14 19:17:27.479: Id 3: Sent all 7 messages | |
common_test.go:149: Jan 14 19:17:27.480: Id 1: Sent all 7 messages | |
common_test.go:149: Jan 14 19:17:27.480: Id 1: Testing complete | |
common_test.go:149: Jan 14 19:17:27.480: Id 2: Testing complete | |
common_test.go:149: Jan 14 19:17:27.480: Id 3: Testing complete | |
common_test.go:149: Jan 14 19:17:27.482: Id 4: Sent all 7 messages | |
common_test.go:149: Jan 14 19:17:27.482: Id 4: Testing complete | |
================== | |
WARNING: DATA RACE | |
Write by goroutine 52: | |
github.com/gdamore/mangos.NewMessage() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/message.go:104 +0x217 | |
github.com/gdamore/mangos.(*connipc).Recv() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/conn.go:210 +0x385 | |
github.com/gdamore/mangos.(*pipe).RecvMsg() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/pipe.go:100 +0x5b | |
github.com/gdamore/mangos/protocol/pair.(*pair).receiver() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:55 +0x4c | |
Previous write by goroutine 109: | |
sync/atomic.AddInt32() | |
/usr/local/go/src/runtime/race_amd64.s:254 +0xc | |
github.com/gdamore/mangos.(*Message).Free() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/message.go:56 +0x56 | |
github.com/gdamore/mangos/protocol/bus.(*busEp).sender() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/bus/bus.go:57 +0x196 | |
Goroutine 52 (running) created at: | |
github.com/gdamore/mangos/protocol/pair.(*pair).AddEndpoint() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:76 +0x10d | |
github.com/gdamore/mangos.(*socket).addPipe() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:58 +0x307 | |
github.com/gdamore/mangos.(*socket).dialer() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:271 +0x99 | |
Goroutine 109 (finished) created at: | |
github.com/gdamore/mangos/protocol/bus.(*bus).AddEndpoint() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/bus/bus.go:127 +0x1d6 | |
github.com/gdamore/mangos.(*socket).addPipe() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:58 +0x307 | |
github.com/gdamore/mangos.(*socket).dialer() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:271 +0x99 | |
================== | |
================== | |
WARNING: DATA RACE | |
Write by goroutine 147: | |
syscall.raceWriteRange() | |
/usr/local/go/src/syscall/race.go:29 +0x40 | |
syscall.Read() | |
/usr/local/go/src/syscall/syscall_unix.go:139 +0xa4 | |
net.(*netFD).Read() | |
/usr/local/go/src/net/fd_unix.go:238 +0x3b7 [150/1976] | |
net.(*conn).Read() | |
/usr/local/go/src/net/net.go:121 +0x124 | |
net.(*TCPConn).Read() | |
<autogenerated>:36 +0x85 | |
io.ReadAtLeast() | |
/usr/local/go/src/io/io.go:298 +0x128 | |
io.ReadFull() | |
/usr/local/go/src/io/io.go:316 +0x7d | |
github.com/gdamore/mangos.(*conn).Recv() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/conn.go:71 +0x3b8 | |
github.com/gdamore/mangos.(*pipe).RecvMsg() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/pipe.go:100 +0x5b | |
github.com/gdamore/mangos/protocol/pair.(*pair).receiver() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:55 +0x4c | |
Previous read by goroutine 23: | |
syscall.raceReadRange() | |
/usr/local/go/src/syscall/race.go:25 +0x40 | |
syscall.Write() | |
/usr/local/go/src/syscall/syscall_unix.go:154 +0xb4 | |
net.(*netFD).Write() | |
/usr/local/go/src/net/fd_unix.go:327 +0x416 | |
net.(*conn).Write() | |
/usr/local/go/src/net/net.go:129 +0x124 | |
net.(*TCPConn).Write() | |
<autogenerated>:37 +0x85 | |
github.com/gdamore/mangos.(*conn).Send() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/conn.go:97 +0x39a | |
github.com/gdamore/mangos.(*pipe).SendMsg() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/pipe.go:91 +0x7b | |
github.com/gdamore/mangos/protocol/pair.(*pair).sender() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:46 +0x14b | |
runtime.goexit() | |
/usr/local/go/src/runtime/asm_amd64.s:2232 +0x0 | |
math/big.nat.expNN() | |
/usr/local/go/src/math/big/nat.go:1260 +0x4f0 | |
math/big.nat.probablyPrime() | |
/usr/local/go/src/math/big/nat.go:1445 +0x9d3 | |
math/big.(*Int).ProbablyPrime() | |
/usr/local/go/src/math/big/int.go:741 +0x7b | |
crypto/rsa.(*PrivateKey).Validate() | |
/usr/local/go/src/crypto/rsa/rsa.go:110 +0x184 | |
crypto/x509.ParsePKCS1PrivateKey() | |
/usr/local/go/src/crypto/x509/pkcs1.go:77 +0xb51 | |
crypto/tls.parsePrivateKey() | |
/usr/local/go/src/crypto/tls/tls.go:259 +0x90 | |
crypto/tls.X509KeyPair() | |
/usr/local/go/src/crypto/tls/tls.go:213 +0x449 | |
github.com/gdamore/mangos/test.SetTLSTest() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/tls_test.go:108 +0x120 [100/1976] | |
github.com/gdamore/mangos/test.(*T).Init() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/common_test.go:106 +0x4e7 | |
github.com/gdamore/mangos/test.(*busTest).Init() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/bus_test.go:43 +0x33a | |
github.com/gdamore/mangos/test.RunTests() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/common_test.go:502 +0x35b | |
github.com/gdamore/mangos/test.RunTestsIPC() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/common_test.go:549 +0x7b | |
github.com/gdamore/mangos/test.TestBusIPC() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/bus_test.go:147 +0x66 | |
testing.tRunner() | |
/usr/local/go/src/testing/testing.go:447 +0x133 | |
Goroutine 24 (running) created at: | |
github.com/gdamore/mangos/protocol/pair.(*pair).AddEndpoint() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:76 +0x10d | |
github.com/gdamore/mangos.(*socket).addPipe() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:58 +0x307 | |
github.com/gdamore/mangos.(*socket).serve() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:300 +0xd3 | |
Goroutine 23 (running) created at: | |
github.com/gdamore/mangos/protocol/pair.(*pair).AddEndpoint() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:77 +0x13b | |
github.com/gdamore/mangos.(*socket).addPipe() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:58 +0x307 | |
github.com/gdamore/mangos.(*socket).dialer() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:271 +0x99 | |
================== | |
================== | |
WARNING: DATA RACE | |
Read by goroutine 23: | |
github.com/gdamore/mangos.(*conn).Send() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/conn.go:82 +0x5c | |
github.com/gdamore/mangos.(*pipe).SendMsg() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/pipe.go:91 +0x7b | |
github.com/gdamore/mangos/protocol/pair.(*pair).sender() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:46 +0x14b | |
Previous write by goroutine 22: | |
github.com/gdamore/mangos.NewMessage() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/message.go:106 +0x28f | |
github.com/gdamore/mangos/test.(*T).NewMessage() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/common_test.go:113 +0x4c | |
github.com/gdamore/mangos/test.(*devTest).NewMessage() | |
<autogenerated>:65 +0x52 | |
github.com/gdamore/mangos/test.sendTester() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/common_test.go:331 +0x104 | |
Goroutine 23 (running) created at: [50/1976] | |
github.com/gdamore/mangos/protocol/pair.(*pair).AddEndpoint() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:77 +0x13b | |
github.com/gdamore/mangos.(*socket).addPipe() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:58 +0x307 | |
github.com/gdamore/mangos.(*socket).dialer() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:271 +0x99 | |
Goroutine 22 (running) created at: | |
github.com/gdamore/mangos/test.startSendRecv() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/common_test.go:406 +0x6e | |
github.com/gdamore/mangos/test.RunTests() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/common_test.go:521 +0x61e | |
github.com/gdamore/mangos/test.testDevLoop() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/device_test.go:214 +0x890 | |
github.com/gdamore/mangos/test.TestDeviceLoopTCP() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/device_test.go:275 +0x5d | |
testing.tRunner() | |
/usr/local/go/src/testing/testing.go:447 +0x133 | |
================== | |
================== | |
WARNING: DATA RACE | |
Read by goroutine 23: | |
github.com/gdamore/mangos.(*conn).Send() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/conn.go:82 +0x7b | |
github.com/gdamore/mangos.(*pipe).SendMsg() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/pipe.go:91 +0x7b | |
github.com/gdamore/mangos/protocol/pair.(*pair).sender() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:46 +0x14b | |
Previous write by goroutine 22: | |
github.com/gdamore/mangos/test.(*devTest).SendHook() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/device_test.go:165 +0x153 | |
github.com/gdamore/mangos/test.sendTester() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/common_test.go:332 +0x130 | |
Goroutine 23 (running) created at: | |
github.com/gdamore/mangos/protocol/pair.(*pair).AddEndpoint() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:77 +0x13b | |
github.com/gdamore/mangos.(*socket).addPipe() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:58 +0x307 | |
github.com/gdamore/mangos.(*socket).dialer() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:271 +0x99 | |
Goroutine 22 (running) created at: | |
github.com/gdamore/mangos/test.startSendRecv() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/common_test.go:406 +0x6e | |
github.com/gdamore/mangos/test.RunTests() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/common_test.go:521 +0x61e | |
github.com/gdamore/mangos/test.testDevLoop() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/device_test.go:214 +0x890 | |
github.com/gdamore/mangos/test.TestDeviceLoopTCP() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/test/device_test.go:275 +0x5d | |
testing.tRunner() | |
/usr/local/go/src/testing/testing.go:447 +0x133 | |
================== | |
--- FAIL: TestDeviceLoopTCP (0.35s) | |
common_test.go:500: Address tcp://127.0.0.1:39093, 1 Cases | |
common_test.go:154: Jan 14 19:17:28.550: Id 0: Wrong message: 1 != 0 | |
common_test.go:154: Jan 14 19:17:28.551: Id 0: RecvHook failed | |
common_test.go:149: Jan 14 19:17:28.567: Id 0: Sent all 50 messages | |
common_test.go:149: Jan 14 19:17:28.567: Id 0: Testing complete | |
================== | |
WARNING: DATA RACE | |
Write by goroutine 155: | |
github.com/gdamore/mangos.NewMessage() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/message.go:104 +0x217 | |
github.com/gdamore/mangos/transport/inproc.(*inproc).Send() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/transport/inproc/inproc.go:75 +0xfe | |
github.com/gdamore/mangos.(*pipe).SendMsg() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/pipe.go:91 +0x7b | |
github.com/gdamore/mangos/protocol/pair.(*pair).sender() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:46 +0x14b | |
Previous write by goroutine 16: | |
sync/atomic.AddInt32() | |
/usr/local/go/src/runtime/race_amd64.s:254 +0xc | |
github.com/gdamore/mangos.(*Message).Free() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/message.go:56 +0x56 | |
github.com/gdamore/mangos/protocol/pair.(*pair).sender() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:47 +0x169 | |
Goroutine 155 (running) created at: | |
github.com/gdamore/mangos/protocol/pair.(*pair).AddEndpoint() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:77 +0x13b | |
github.com/gdamore/mangos.(*socket).addPipe() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:58 +0x307 | |
github.com/gdamore/mangos.(*socket).dialer() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:271 +0x99 | |
Goroutine 16 (finished) created at: | |
github.com/gdamore/mangos/protocol/pair.(*pair).AddEndpoint() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/protocol/pair/pair.go:77 +0x13b | |
github.com/gdamore/mangos.(*socket).addPipe() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:58 +0x307 | |
github.com/gdamore/mangos.(*socket).serve() | |
/Users/Tyler/Go/src/github.com/gdamore/mangos/core.go:300 +0xd3 | |
================== | |
FAIL | |
FAIL github.com/gdamore/mangos/test 16.969s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment