Skip to content

Instantly share code, notes, and snippets.

@bonedaddy
Created March 11, 2020 06:17
Show Gist options
  • Save bonedaddy/139945bc9e190ff43674944f7877eb4c to your computer and use it in GitHub Desktop.
Save bonedaddy/139945bc9e190ff43674944f7877eb4c to your computer and use it in GitHub Desktop.
==================
WARNING: DATA RACE
Write at 0x000003b8d092 by goroutine 611:
github.com/RTradeLtd/TemporalX/v3/server.(*testEnvironment).close()
/home/travis/gopath/src/github.com/RTradeLtd/TemporalX/server/server_testenv_test.go:149 +0x1b0
github.com/RTradeLtd/TemporalX/v3/server.TestNodeAPI.func1()
/home/travis/gopath/src/github.com/RTradeLtd/TemporalX/server/node_test.go:685 +0x5a6
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:114 +0x192
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x2c4
fmt.Fscanf()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:143 +0xcf
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:114 +0x192
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x2c4
github.com/syndtr/goleveldb/leveldb.(*DB).checkAndCleanFiles()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_util.go:52 +0x2f8
github.com/syndtr/goleveldb/leveldb.openDB()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:130 +0x9f0
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x2c4
fmt.Fscanf()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:143 +0xcf
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:114 +0x284
fmt.(*ss).doScanf()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:1217 +0x382
fmt.Fscanf()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:143 +0xcf
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:114 +0x192
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x2c4
fmt.Fscanf()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:143 +0xcf
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:114 +0x192
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x2c4
fmt.Fscanf()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:143 +0xcf
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:114 +0x192
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x2c4
github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournal()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:476 +0xc5
github.com/syndtr/goleveldb/leveldb.openDB()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:125 +0x9cc
github.com/syndtr/goleveldb/leveldb.Open()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:197 +0x1d3
fmt.Fscanf()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:143 +0xcf
github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/fmt/scan.go:114 +0x192
github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:458 +0x2c4
github.com/syndtr/goleveldb/leveldb.(*session).recover.func1()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/session.go:113 +0xf4
github.com/syndtr/goleveldb/leveldb.(*session).recover()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/session.go:121 +0x1929
github.com/syndtr/goleveldb/leveldb.Open()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:183 +0xf8
github.com/syndtr/goleveldb/leveldb.OpenFile()
/home/travis/gopath/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:219 +0xa5
github.com/ipfs/go-ds-leveldb.NewDatastore()
/home/travis/gopath/pkg/mod/github.com/ipfs/[email protected]/datastore.go:45 +0x3ba
github.com/RTradeLtd/node/v2.NewCountedBlockstore()
/home/travis/gopath/pkg/mod/github.com/!r!trade!ltd/node/[email protected]/blockstore.go:86 +0x4c9
github.com/RTradeLtd/node/v2.NewNode()
/home/travis/gopath/pkg/mod/github.com/!r!trade!ltd/node/[email protected]/node.go:234 +0x1999
github.com/RTradeLtd/TemporalX/v3/testutils.NewGCNode()
/home/travis/gopath/src/github.com/RTradeLtd/TemporalX/testutils/node.go:218 +0xf6a
github.com/RTradeLtd/TemporalX/v3/server.newTestEnvironment()
/home/travis/gopath/src/github.com/RTradeLtd/TemporalX/server/server_testenv_test.go:53 +0x183
github.com/RTradeLtd/TemporalX/v3/server.TestNodeAPI.func1()
/home/travis/gopath/src/github.com/RTradeLtd/TemporalX/server/node_test.go:34 +0xa8
testing.tRunner()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/testing/testing.go:909 +0x199
Previous read at 0x000003b8d092 by goroutine 151:
github.com/libp2p/go-libp2p-transport-upgrader.(*Upgrader).upgrade()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/upgrader.go:82 +0xc41
github.com/libp2p/go-libp2p-transport-upgrader.(*Upgrader).UpgradeOutbound()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/upgrader.go:58 +0x125
github.com/libp2p/go-tcp-transport.(*TcpTransport).Dial()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/tcp.go:107 +0x1b2
github.com/libp2p/go-libp2p-swarm.(*Swarm).dialAddr()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/swarm_dial.go:462 +0x270
github.com/libp2p/go-libp2p-swarm.(*Swarm).dialAddr-fm()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/swarm_dial.go:450 +0x96
github.com/libp2p/go-libp2p-swarm.(*dialLimiter).executeDial()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/limiter.go:218 +0x29f
Goroutine 611 (running) created at:
testing.(*T).Run()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/testing/testing.go:960 +0x651
github.com/RTradeLtd/TemporalX/v3/server.TestNodeAPI()
/home/travis/gopath/src/github.com/RTradeLtd/TemporalX/server/node_test.go:30 +0x1f7
testing.tRunner()
/home/travis/.gimme/versions/go1.13.8.linux.amd64/src/testing/testing.go:909 +0x199
Goroutine 151 (finished) created at:
github.com/libp2p/go-libp2p-swarm.(*dialLimiter).addCheckFdLimit()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/limiter.go:168 +0x2dc
github.com/libp2p/go-libp2p-swarm.(*dialLimiter).addCheckPeerLimit()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/limiter.go:182 +0x791
github.com/libp2p/go-libp2p-swarm.(*dialLimiter).AddDialJob()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/limiter.go:193 +0x169
github.com/libp2p/go-libp2p-swarm.(*Swarm).dialAddrs()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/swarm_dial.go:442 +0xac5
github.com/libp2p/go-libp2p-swarm.(*Swarm).dial()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/swarm_dial.go:317 +0x6a6
github.com/libp2p/go-libp2p-swarm.(*Swarm).doDial()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/swarm_dial.go:249 +0x219
github.com/libp2p/go-libp2p-swarm.(*Swarm).doDial-fm()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/swarm_dial.go:234 +0x70
github.com/libp2p/go-libp2p-swarm.(*activeDial).start()
/home/travis/gopath/pkg/mod/github.com/libp2p/[email protected]/dial_sync.go:80 +0xb4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment