Skip to content

Instantly share code, notes, and snippets.

@zelig
Created May 30, 2016 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zelig/22220c6b09e2609766346a13a6e65878 to your computer and use it in GitHub Desktop.
Save zelig/22220c6b09e2609766346a13a6e65878 to your computer and use it in GitHub Desktop.
swarm deadlock in kademlia
goroutine 137 [semacquire, 4 minutes]:
sync.runtime_Semacquire(0xc83047af64)
/usr/lib/go/src/runtime/sema.go:43 +0x26
sync.(*Mutex).Lock(0xc83047af60)
/usr/lib/go/src/sync/mutex.go:82 +0x1c4
sync.(*RWMutex).Lock(0xc83047af60)
/usr/lib/go/src/sync/rwmutex.go:82 +0x30
github.com/ethereum/go-ethereum/swarm/network/kademlia.(*Kademlia).Count(0xc83047af00, 0x0)
/home/tron/go/src/github.com/ethereum/go-ethereum/swarm/network/kademlia/kademlia.go:94 +0x6f
github.com/ethereum/go-ethereum/swarm/network/kademlia.(*Kademlia).String(0xc83047af00, 0x0, 0x0)
/home/tron/go/src/github.com/ethereum/go-ethereum/swarm/network/kademlia/kademlia.go:415 +0xb4
fmt.(*pp).handleMethods(0xc82021a000, 0xc800000076, 0x0, 0xc820c53101)
/usr/lib/go/src/fmt/print.go:730 +0x633
fmt.(*pp).printArg(0xc82021a000, 0xfc6680, 0xc83047af00, 0x76, 0x0, 0x0)
/usr/lib/go/src/fmt/print.go:806 +0x4a5
fmt.(*pp).doPrintf(0xc82021a000, 0x1012ac0, 0x2, 0xc820c537f0, 0x1, 0x1)
/usr/lib/go/src/fmt/print.go:1219 +0x1dd8
fmt.Fprintf(0x7f4db8306288, 0xc8202dc240, 0x1012ac0, 0x2, 0xc820c537f0, 0x1, 0x1, 0x3c, 0x0, 0x0)
/usr/lib/go/src/fmt/print.go:188 +0x74
github.com/ethereum/go-ethereum/logger/glog.(*loggingT).printfmt(0x19fd800, 0x0, 0x1012ac0, 0x2, 0xc820c537f0, 0x1, 0x1)
/home/tron/go/src/github.com/ethereum/go-ethereum/logger/glog/glog.go:703 +0xe4
github.com/ethereum/go-ethereum/logger/glog.Verbose.Infof(0x1, 0x1012ac0, 0x2, 0xc820c537f0, 0x1, 0x1)
/home/tron/go/src/github.com/ethereum/go-ethereum/logger/glog/glog.go:1091 +0x64
github.com/ethereum/go-ethereum/swarm/network/kademlia.(*Kademlia).setProxLimit(0xc83047af00, 0x5, 0x0)
/home/tron/go/src/github.com/ethereum/go-ethereum/swarm/network/kademlia/kademlia.go:211 +0xbde
github.com/ethereum/go-ethereum/swarm/network/kademlia.(*Kademlia).On(0xc83047af00, 0x7f4db82c2030, 0xc8200340b8, :
/home/tron/go/src/github.com/ethereum/go-ethereum/swarm/network/kademlia/kademlia.go:137 +0xb20
github.com/ethereum/go-ethereum/swarm/network.(*Hive).addPeer(0xc82022a000, 0xc8200340b8)
/home/tron/go/src/github.com/ethereum/go-ethereum/swarm/network/hive.go:196 +0x136
github.com/ethereum/go-ethereum/swarm/network.(*bzz).handleStatus(0xc8200765a0, 0x0, 0x0)
/home/tron/go/src/github.com/ethereum/go-ethereum/swarm/network/protocol.go:369 +0x15b4
github.com/ethereum/go-ethereum/swarm/network.run(0xc82016b3e0, 0x7f4db8344c80, 0xc82008f590, 0x7f4db8344d28, 0xc820092ae0, 0xc82022a000, 0xc8201d6c90, 0xc82016a680, 0xc8203ea070, 0xc8203c2d80, ...)
/home/tron/go/src/github.com/ethereum/go-ethereum/swarm/network/protocol.go:163 +0x25a
github.com/ethereum/go-ethereum/swarm/network.Bzz.func1(0xc8203c2d80, 0x7f4db82c1e70, 0xc82040eaf0, 0x0, 0x0)
/home/tron/go/src/github.com/ethereum/go-ethereum/swarm/network/protocol.go:125 +0xcd
github.com/ethereum/go-ethereum/p2p.(*Peer).startProtocols.func1(0xc82040eaf0, 0xc8203c2d80)
/home/tron/go/src/github.com/ethereum/go-ethereum/p2p/peer.go:303 +0x8c
created by github.com/ethereum/go-ethereum/p2p.(*Peer).startProtocols
/home/tron/go/src/github.com/ethereum/go-ethereum/p2p/peer.go:312 +0x304
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment