Skip to content

panic: runtime error: invalid memory address or nil pointer dereference #23

@zl0ypilot

Description

@zl0ypilot

Few days ago started getting this error. Reinstall package. Doesn't help. After several times apearence in log the whole dappnode goes freezing. Only hard reset help.

INFO [07-02|18:21:32.019] Maximum peer count ETH=50 LES=0 total=50
INFO [07-02|18:21:32.020] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
WARN [07-02|18:21:32.020] Option nousb is deprecated and USB is deactivated by default. Use --usb to enable
INFO [07-02|18:21:32.021] Set global gas cap cap=50,000,000
INFO [07-02|18:21:32.035] Configured Ethereum protocol versions capabilities=[66]
INFO [07-02|18:21:32.035] Allocated trie memory caches clean=154.00MiB dirty=256.00MiB
INFO [07-02|18:21:32.035] Allocated cache and file handles database=/root/.ethereum/classic/geth/chaindata cache=512.00MiB handles=524,288
INFO [07-02|18:21:32.227] Opened ancient database database=/root/.ethereum/classic/geth/chaindata/ancient readonly=false
INFO [07-02|18:21:32.545] Persisted trie from memory database nodes=12356 size=1.78MiB time=47.679112ms gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B
INFO [07-02|18:21:32.549] Found stored genesis block config="NetworkID: 1, ChainID: 61 Engine: ethash ECBP1100: 11380000 EIP1014: 9573000 EIP1052: 9573000 EIP1108: 10500839 EIP1344: 10500839 EIP140: 8772000 EIP145: 9573000 EIP150: 2500000 EIP152: 10500839 EIP155: 3000000 EIP160: 3000000 EIP161abc: 8772000 EIP161d: 8772000 EIP170: 8772000 EIP1884: 10500839 EIP198: 8772000 EIP2028: 10500839 EIP211: 8772000 EIP212: 8772000 EIP213: 8772000 EIP214: 8772000 EIP2200: 10500839 EIP2565: 13189133 EIP2718: 13189133 EIP2929: 13189133 EIP2930: 13189133 EIP2: 1150000 EIP3529: 14525000 EIP3541: 14525000 EIP658: 8772000 EIP7: 1150000 EthashECIP1010Continue: 5000000 EthashECIP1010Pause: 3000000 EthashECIP1017: 5000000 EthashECIP1041: 5900000 EthashECIP1099: 11700000 EthashEIP100B: 8772000 EthashHomestead: 1150000 "
INFO [07-02|18:21:32.551] Initialised chain configuration config="NetworkID: 1, ChainID: 61 Engine: ethash ECBP1100: 11380000 EIP1014: 9573000 EIP1052: 9573000 EIP1108: 10500839 EIP1344: 10500839 EIP140: 8772000 EIP145: 9573000 EIP150: 2500000 EIP152: 10500839 EIP155: 3000000 EIP160: 3000000 EIP161abc: 8772000 EIP161d: 8772000 EIP170: 8772000 EIP1884: 10500839 EIP198: 8772000 EIP2028: 10500839 EIP211: 8772000 EIP212: 8772000 EIP213: 8772000 EIP214: 8772000 EIP2200: 10500839 EIP2565: 13189133 EIP2718: 13189133 EIP2929: 13189133 EIP2930: 13189133 EIP2: 1150000 EIP3529: 14525000 EIP3541: 14525000 EIP658: 8772000 EIP7: 1150000 EthashECIP1010Continue: 5000000 EthashECIP1010Pause: 3000000 EthashECIP1017: 5000000 EthashECIP1041: 5900000 EthashECIP1099: 11700000 EthashEIP100B: 8772000 EthashHomestead: 1150000 "
INFO [07-02|18:21:32.636] Disk storage enabled for ethash caches dir=/root/.ethereum/classic/geth/etchash count=3
INFO [07-02|18:21:32.636] Disk storage enabled for ethash DAGs dir=/root/.etchash count=2
INFO [07-02|18:21:32.638] Initialising Ethereum protocol network=1 dbversion=8
INFO [07-02|18:21:32.785] Loaded most recent local header number=17,839,855 hash=3ff1d8..30c9eb td=5,514,244,970,273,565,664,496 age=13h37m35s
INFO [07-02|18:21:32.785] Loaded most recent local full block number=17,834,233 hash=1472d1..ec1e1d td=5,504,087,280,478,976,686,485 age=1d10h11m
INFO [07-02|18:21:32.785] Loaded most recent local fast block number=17,839,855 hash=3ff1d8..30c9eb td=5,514,244,970,273,565,664,496 age=13h37m35s
INFO [07-02|18:21:32.785] Loaded last fast-sync pivot marker number=17,834,233
WARN [07-02|18:21:32.787] Enabling snapshot recovery chainhead=17,834,233 diskbase=17,835,094
WARN [07-02|18:21:32.822] Snapshot is not continuous with chain snaproot=d44077..48ac0b chainroot=6e1288..4e6774
INFO [07-02|18:21:32.822] Loaded local transaction journal transactions=0 dropped=0
INFO [07-02|18:21:32.822] Regenerated local transaction journal transactions=0 accounts=0
WARN [07-02|18:21:32.823] Switch sync mode from fast sync to full sync
INFO [07-02|18:21:32.824] Gasprice oracle is ignoring threshold set threshold=2
WARN [07-02|18:21:32.826] Old unclean shutdowns found count=51
WARN [07-02|18:21:32.827] Unclean shutdown detected booted=2023-07-02T18:09:26+0000 age=12m6s
WARN [07-02|18:21:32.827] Unclean shutdown detected booted=2023-07-02T18:09:44+0000 age=11m48s
WARN [07-02|18:21:32.827] Unclean shutdown detected booted=2023-07-02T18:11:58+0000 age=9m34s
WARN [07-02|18:21:32.827] Unclean shutdown detected booted=2023-07-02T18:12:14+0000 age=9m18s
WARN [07-02|18:21:32.827] Unclean shutdown detected booted=2023-07-02T18:13:06+0000 age=8m26s
WARN [07-02|18:21:32.827] Unclean shutdown detected booted=2023-07-02T18:13:24+0000 age=8m8s
WARN [07-02|18:21:32.827] Unclean shutdown detected booted=2023-07-02T18:13:55+0000 age=7m37s
WARN [07-02|18:21:32.827] Unclean shutdown detected booted=2023-07-02T18:14:27+0000 age=7m5s
WARN [07-02|18:21:32.827] Unclean shutdown detected booted=2023-07-02T18:17:14+0000 age=4m18s
WARN [07-02|18:21:32.827] Unclean shutdown detected booted=2023-07-02T18:19:16+0000 age=2m16s
WARN [07-02|18:21:32.827] Unclean shutdown detected booted=2023-07-02T18:21:05+0000 age=27s
INFO [07-02|18:21:32.827] Starting peer-to-peer node instance=CoreGeth/v1.12.6-stable-20d20d72/linux-amd64/go1.15.15
INFO [07-02|18:21:32.898] New local node record seq=1,688,182,307,481 id=329f9f79855549de ip=127.0.0.1 udp=30303 tcp=30303
INFO [07-02|18:21:32.899] Started P2P networking self=enode://1cd43cb72fcded1ce95c7a0ac4faf765f548f3d586f9c56c7e86224a515856951f75f99442d3adfa0a10e0ba4c7fc2c2dfb92e2f6a2bf9ea644529c1690dfe2f@127.0.0.1:30303
INFO [07-02|18:21:32.901] IPC endpoint opened url=/root/.ethereum/classic/geth.ipc
INFO [07-02|18:21:32.902] HTTP server started endpoint=[::]:8545 prefix= cors=* vhosts=*
INFO [07-02|18:21:32.902] WebSocket enabled url=ws://[::]:8546
INFO [07-02|18:21:41.017] New local node record seq=1,688,182,307,482 id=329f9f79855549de ip=109.205.162.51 udp=30303 tcp=30303
INFO [07-02|18:21:43.227] Looking for peers peercount=0 tried=24 static=0
INFO [07-02|18:21:44.043] Block synchronisation started
INFO [07-02|18:21:53.428] Looking for peers peercount=0 tried=30 static=0
INFO [07-02|18:22:04.226] Looking for peers peercount=1 tried=32 static=0
INFO [07-02|18:22:14.559] Looking for peers peercount=1 tried=28 static=0
INFO [07-02|18:22:24.560] Looking for peers peercount=1 tried=30 static=0
INFO [07-02|18:22:34.561] Looking for peers peercount=1 tried=29 static=0
WARN [07-02|18:22:44.115] Synchronisation failed, dropping peer peer=31ec9368e7b49af5d3e3ac60f6161d09f579332f941c4de1b8836a201940ec6c err=timeout
INFO [07-02|18:22:45.226] Looking for peers peercount=2 tried=35 static=0
INFO [07-02|18:22:55.227] Looking for peers peercount=2 tried=33 static=0
INFO [07-02|18:22:58.453] Downloader queue stats receiptTasks=0 blockTasks=555 itemSize=69.20B throttle=8192
INFO [07-02|18:23:05.228] Looking for peers peercount=2 tried=33 static=0
INFO [07-02|18:23:12.865] Importing sidechain segment start=17,839,663 end=17,840,029
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa80ab2]

goroutine 1890 [running]:
github.com/ethereum/go-ethereum/core/types.(*Block).Number(...)
/go/core-geth/core/types/block.go:286
github.com/ethereum/go-ethereum/core.(*BlockChain).reorg(0xc007fda000, 0xc004058fa0, 0xc007b78480, 0xc004058fa0)
/go/core-geth/core/blockchain.go:2080 +0xfb2
github.com/ethereum/go-ethereum/core.(*BlockChain).writeBlockWithState(0xc007fda000, 0xc007b78480, 0xc0027b9d00, 0x10, 0x10, 0x0, 0x0, 0x0, 0xc012f38000, 0x0, ...)
/go/core-geth/core/blockchain.go:1348 +0x1088
github.com/ethereum/go-ethereum/core.(*BlockChain).insertChain(0xc007fda000, 0xc012be2000, 0x16f, 0x200, 0xc0040c7700, 0x0, 0x0, 0x0)
/go/core-geth/core/blockchain.go:1749 +0x2c9a
github.com/ethereum/go-ethereum/core.(*BlockChain).insertSideChain(0xc007fda000, 0xc003a7d050, 0xc0040c8d08, 0x4, 0xc0040c8c48, 0x4)
/go/core-geth/core/blockchain.go:1932 +0x1d16
github.com/ethereum/go-ethereum/core.(*BlockChain).insertChain(0xc007fda000, 0xc003c3bb38, 0x1, 0x1, 0x7f3ce6b32a01, 0x0, 0x0, 0x0)
/go/core-geth/core/blockchain.go:1588 +0x1425
github.com/ethereum/go-ethereum/core.(*BlockChain).InsertChain(0xc007fda000, 0xc003c3bb38, 0x1, 0x1, 0x0, 0x0, 0x0)
/go/core-geth/core/blockchain.go:1436 +0xcb4
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).importBlockResults(0xc0006c8540, 0xc003c3bb30, 0x1, 0x1, 0x1, 0xc003a71260)
/go/core-geth/eth/downloader/downloader.go:1736 +0x52b
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).processFullSyncContent(0xc0006c8540, 0x0, 0x0)
/go/core-geth/eth/downloader/downloader.go:1710 +0x7d
github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync.func1(0xc0006c8540, 0xc003cf6d80, 0xc0036c55d0)
/go/core-geth/eth/downloader/downloader.go:579 +0x5b
created by github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).spawnSync
/go/core-geth/eth/downloader/downloader.go:579 +0xaf

Expected behavior

Screenshots

DAppNode version:

Core DAppNode Packages versions
bind.dnp.dappnode.eth: 0.2.6
core.dnp.dappnode.eth: 0.2.73
dappmanager.dnp.dappnode.eth: 0.2.68, commit: 4369cbdc
https.dnp.dappnode.eth: 0.2.0
ipfs.dnp.dappnode.eth: 0.2.19
wifi.dnp.dappnode.eth: 0.2.8
wireguard.dnp.dappnode.eth: 0.1.2
System info
dockerComposeVersion: 1.29.2
dockerServerVersion: 24.0.2
dockerCliVersion: 24.0.2
os: ubuntu
versionCodename: jammy
architecture: amd64
kernel: 5.15.0-76-generic
Disk usage: 69%

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions