Skip to content

Instantly share code, notes, and snippets.

@rjl493456442
Created September 12, 2018 02:03
Show Gist options
  • Save rjl493456442/77192ed19f8ad33185bfcde467358da4 to your computer and use it in GitHub Desktop.
Save rjl493456442/77192ed19f8ad33185bfcde467358da4 to your computer and use it in GitHub Desktop.
Light client syncing panic

INFO [09-05|19:46:37.378] Imported new block headers count=2048 elapsed=843.440ms number=2865968 hash=a8200d…b1995b paused=0 INFO [09-05|19:46:38.429] Imported new block headers count=2048 elapsed=987.899ms number=2868016 hash=203c4a…10a30d paused=0 INFO [09-05|19:46:39.731] Imported new block headers count=2048 elapsed=1.200s number=2870064 hash=534235…393bd2 paused=0 INFO [09-05|19:46:40.658] Imported new block headers count=2048 elapsed=862.367ms number=2872112 hash=8cc4cc…1fe7ab paused=0 INFO [09-05|19:46:41.470] Imported new block headers count=1984 elapsed=749.669ms number=2874096 hash=831834…8eb2b0 paused=0 WARN [09-05|19:47:04.344] Rolled back headers count=2048 header=2874096->2872048 fast=0->0 block=0->0 WARN [09-05|19:47:04.344] Synchronisation failed, retrying err="receipt download canceled (requested)" panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x1c0 pc=0x474595d] goroutine 5102 [running]: github.com/ethereum/go-ethereum/les.(*ProtocolManager).handle(0xc0187030a0, 0xc000252780, 0x0, 0x0) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/les/handler.go:256 +0x1cd github.com/ethereum/go-ethereum/les.(*ProtocolManager).runPeer(0xc0187030a0, 0x2, 0xc018ee8120, 0x4e739a0, 0xc0000d41c0, 0x0, 0x0) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/les/handler.go:223 +0x224 github.com/ethereum/go-ethereum/les.(*lesCommons).makeProtocols.func1(0xc018ee8120, 0x4e739a0, 0xc0000d41c0, 0xc0002845a0, 0x9) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/les/commons.go:64 +0x55 github.com/ethereum/go-ethereum/p2p.(*Peer).startProtocols.func1(0xc0000d41c0, 0xc018ee8120, 0x4e739a0, 0xc0000d41c0) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/p2p/peer.go:353 +0x66 created by github.com/ethereum/go-ethereum/p2p.(*Peer).startProtocols /Users/gary/gopath/src/github.com/ethereum/go-ethereum/p2p/peer.go:352 +0x1fb

INFO [09-05|03:43:35.371] Upgrading chain index type=cht percentage=0 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xbba310] goroutine 179 [running]: github.com/ethereum/go-ethereum/les.(*checkpointRegistrar).checkpointLoop(0xc42009e300, 0x0, 0x0, 0x0) /home/hyperchain/go/src/github.com/ethereum/go-ethereum/les/registrar.go:204 +0x7c0 created by github.com/ethereum/go-ethereum/les.(*checkpointRegistrar).start /home/hyperchain/go/src/github.com/ethereum/go-ethereum/les/registrar.go:150 +0x16a

INFO [09-06|20:39:57.539] Stored checkpoint snapshot to disk number=2790000 hash=f28854…e567ea INFO [09-06|20:39:57.673] Imported new block headers count=384 elapsed=137.617ms number=2790384 hash=da90e1…962f2d ignored=0 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x1c0 pc=0x472d734] goroutine 45 [running]: github.com/ethereum/go-ethereum/light.(*TxPool).reorgOnNewHead(0xc000414580, 0x4e7d200, 0xc00ce8ac60, 0xc027112fc0, 0xc00ce8ac60, 0xc000300e10, 0xc017a66ff0) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/light/txpool.go:228 +0x164 github.com/ethereum/go-ethereum/light.(*TxPool).setNewHead(0xc000414580, 0xc027112fc0) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/light/txpool.go:309 +0xf4 github.com/ethereum/go-ethereum/light.(*TxPool).eventLoop(0xc000414580) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/light/txpool.go:290 +0x50 created by github.com/ethereum/go-ethereum/light.NewTxPool /Users/gary/gopath/src/github.com/ethereum/go-ethereum/light/txpool.go:107 +0x3c2

WARN [09-06|20:50:14.332] Rolled back headers count=127 header=2730000->2730000 fast=0->0 block=0->0 WARN [09-06|20:50:14.332] Synchronisation failed, dropping peer peer=93a892e47f033269 err="retrieved hash chain is invalid

HANDSHAKE SUCCESS ce574c77b8e29e68 FETCHER REGISTER PEER ce574c77b8e29e68 LIGHT FETCHER PEER ce574c77b8e29e68 ANNOUNCE HEAD 2941331 NEW ANNOUNCE Invalid header encountered number 2730512 hash [13 31 77 216 241 174 205 29 203 66 10 148 115 59 189 43 88 203 153 110 120 78 185 202 101 142 154 216 142 87 116 132] err unknown ancestor WARN [09-06|21:01:25.905] Rolled back headers count=319 header=2730000->2730000 fast=0->0 block=0->0 Skeleton chain invalid err block header download canceled (requested) WARN [09-06|21:01:25.905] Synchronisation failed, dropping peer peer=93a892e47f033269 err="retrieved hash chain is invalid" WARN [09-06|21:01:25.905] Rolled back entire header chain count=1 header=2730000->2730000 LIGHT FETCHER PEER 9a4e67ab6482ce58 ANNOUNCE HEAD 2941332 NEW ANNOUNCE WARN [09-06|21:01:34.264] Sync checkpoint header failed panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x1c0 pc=0x4742d9e] goroutine 78 [running]: github.com/ethereum/go-ethereum/les.(*lightFetcher).checkAnnouncedHeaders(0xc00c624b80, 0xc019820c40, 0xc0000e5c40, 0x1, 0x1, 0xc0000e5c38, 0x1, 0x1, 0x13b41d0df84f1b47) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/les/fetcher.go:589 +0x1ce github.com/ethereum/go-ethereum/les.(*lightFetcher).newHeaders(0xc00c624b80, 0xc0000e5c40, 0x1, 0x1, 0xc0000e5c38, 0x1, 0x1) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/les/fetcher.go:544 +0x121 github.com/ethereum/go-ethereum/les.(*lightFetcher).checkSyncedHeaders(0xc00c624b80, 0xc000332140) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/les/fetcher.go:653 +0x1c0 github.com/ethereum/go-ethereum/les.(*lightFetcher).syncLoop(0xc00c624b80) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/les/fetcher.go:210 +0x279 created by github.com/ethereum/go-ethereum/les.newLightFetcher /Users/gary/gopath/src/github.com/ethereum/go-ethereum/les/fetcher.go:125 +0x1f0

INFO [09-06|21:16:50.803] Updated latest header based on CHT number=2790000 hash=f28854…e567ea =================== RUN PEER =================== HANDSHAKE SUCCESS 93a892e47f033269 FETCHER REGISTER PEER 93a892e47f033269 LIGHT FETCHER PEER 93a892e47f033269 ANNOUNCE HEAD 2941393 NEW ANNOUNCE LIGHT FETCHER PEER 93a892e47f033269 ANNOUNCE HEAD 2941394 NEW ANNOUNCE LIGHT FETCHER PEER 93a892e47f033269 ANNOUNCE HEAD 2941395 NEW ANNOUNCE WARN [09-06|21:17:24.849] Synchronisation failed, retrying err="block body download canceled (requested)" WARN [09-06|21:17:24.849] Rolled back entire header chain count=1 header=2790000->2790000 =================== RUN PEER =================== HANDSHAKE SUCCESS a24ac7c5484ef4ed FETCHER REGISTER PEER a24ac7c5484ef4ed LIGHT FETCHER PEER a24ac7c5484ef4ed ANNOUNCE HEAD 2941395 NEW ANNOUNCE CHECKPOINT SYNCING INFO [09-06|21:17:26.634] Updated latest header based on CHT number=2790000 hash=f28854…e567ea LIGHT FETCHER PEER a24ac7c5484ef4ed ANNOUNCE HEAD 2941396 NEW ANNOUNCE LIGHT FETCHER PEER 93a892e47f033269 ANNOUNCE HEAD 2941396 NEW ANNOUNCE LIGHT FETCHER PEER 93a892e47f033269 ANNOUNCE HEAD 2941397 NEW ANNOUNCE LIGHT FETCHER PEER a24ac7c5484ef4ed ANNOUNCE HEAD 2941397 NEW ANNOUNCE INFO [09-06|21:17:56.667] Stored checkpoint snapshot to disk number=2790000 hash=f28854…e567ea INFO [09-06|21:17:57.717] Imported new block headers count=2048 elapsed=1.061s number=2792048 hash=22a8c1…7d2522 ignored=0 ****************************** BUG1 **************************8 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x1c0 pc=0x472de8b] goroutine 60 [running]: github.com/ethereum/go-ethereum/light.(*TxPool).reorgOnNewHead(0xc0001d18c0, 0x4e7e000, 0xc000190720, 0xc00a5966c0, 0xc000190720, 0xc000194310, 0xc00a5981b0) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/light/txpool.go:234 +0x17b github.com/ethereum/go-ethereum/light.(*TxPool).setNewHead(0xc0001d18c0, 0xc00a5966c0) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/light/txpool.go:315 +0xf4 github.com/ethereum/go-ethereum/light.(*TxPool).eventLoop(0xc0001d18c0) /Users/gary/gopath/src/github.com/ethereum/go-ethereum/light/txpool.go:296 +0x50 created by github.com/ethereum/go-ethereum/light.NewTxPool /Users/gary/gopath/src/github.com/ethereum/go-ethereum/light/txpool.go:107 +0x3c2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment