Skip to content

nil pointer when calling ValidatorPerformanceService #11027

@jasonyic

Description

@jasonyic

System information

Erigon version: erigon version 2.60.2-7055c2cb

OS & Version: linux

Commit hash:

Erigon Command (with flags/config):

erigon --datadir=/data --chain=holesky --http --http.port=8545 --http.addr=0.0.0.0 --http.api=admin,eth,web3,net --http.corsdomain=* --http.vhosts=* --nat=extip:$(NAT_IP) --port=$(NAT_PORT) --metrics --metrics.addr=0.0.0.0 --metrics.port=9545 --config=/data/config.toml --db.size.limit=1TB --internalcl=true --maxpeers=300 --caplin.archive=true --beacon.api=beacon,builder,config,debug,node,validator,lighthouse --beacon.api.addr=0.0.0.0 --beacon.api.port=5051

Consensus Layer: internal CL

Chain/Network: holesky

Expected behaviour

Actual behaviour

[15:45:51.551] ERROR (8): Intercepted Axios Error: {"message":"socket hang up","url":"http://erigon-svc:5051/eth/v1/beacon/states/head/finality_checkpoints","method":"get","errorCode":"ECONNRESET"} {"context":"DfValidatorPerformanceService"}
[15:45:51.551] ERROR (8): Intercepted non Axios Error: {"message":"socket hang up","name":"HttpException"} {"context":"OrchestratorValidatorPerformanceService"}

Steps to reproduce the behaviour

Backtrace

2024/07/04 15:26:23 http: panic serving 10.42.65.27:45728: runtime error: invalid memory address or nil pointer dereference
goroutine 4480946 [running]:
net/http.(*conn).serve.func1()
	net/http/server.go:1868 +0xb9
panic({0x24db420?, 0x4634070?})
	runtime/panic.go:920 +0x270
github.com/ledgerwatch/erigon/cl/cltypes/solid.(*ValidatorSet).Range(0x0, 0xc0d5c30ae8)
	github.com/ledgerwatch/erigon/cl/cltypes/solid/validator_set.go:281 +0x34
github.com/ledgerwatch/erigon/cl/beacon/handler.responseValidators({0x3134860, 0xc030a97dc0}, {0x53242c0, 0x0, 0x0}, {0x53242c0, 0x0, 0x0}, 0xf634, {0x0, ...}, ...)
	github.com/ledgerwatch/erigon/cl/beacon/handler/validators.go:532 +0x409
github.com/ledgerwatch/erigon/cl/beacon/handler.(*ApiHandler).GetEthV1BeaconStatesValidators(0xc04e4f5b00, {0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/ledgerwatch/erigon/cl/beacon/handler/validators.go:278 +0x5c5
net/http.HandlerFunc.ServeHTTP(0x24c3a40?, {0x3134860?, 0xc030a97dc0?}, 0xc1960a9430?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc0d57e0480, {0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:459 +0x2b4
net/http.HandlerFunc.ServeHTTP(0xc0c731a150?, {0x3134860?, 0xc030a97dc0?}, 0xc0d5c30eb0?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc0d57e0480, {0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:73 +0x371
github.com/go-chi/chi/v5.(*Mux).Mount.func1({0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:327 +0x1bb
net/http.HandlerFunc.ServeHTTP(0x24c3a40?, {0x3134860?, 0xc030a97dc0?}, 0xc0c0de6690?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc0d57e0420, {0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:459 +0x2b4
net/http.HandlerFunc.ServeHTTP(0xc0c731a150?, {0x3134860?, 0xc030a97dc0?}, 0xc0d5c31070?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc0d57e0420, {0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:73 +0x371
github.com/go-chi/chi/v5.(*Mux).Mount.func1({0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:327 +0x1bb
net/http.HandlerFunc.ServeHTTP(0x24c3a40?, {0x3134860?, 0xc030a97dc0?}, 0xc0d242c900?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc0d57e01e0, {0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:459 +0x2b4
net/http.HandlerFunc.ServeHTTP(0xc0c731a150?, {0x3134860?, 0xc030a97dc0?}, 0xc0d5c31230?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc0d57e01e0, {0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:73 +0x371
github.com/go-chi/chi/v5.(*Mux).Mount.func1({0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:327 +0x1bb
net/http.HandlerFunc.ServeHTTP(0x24c3a40?, {0x3134860?, 0xc030a97dc0?}, 0xc10ca15680?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc0d57e00c0, {0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:459 +0x2b4
net/http.HandlerFunc.ServeHTTP(0xc0c731a150?, {0x3134860?, 0xc030a97dc0?}, 0xc0d5c313f0?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc0d57e00c0, {0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:73 +0x371
github.com/go-chi/chi/v5.(*Mux).Mount.func1({0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:327 +0x1bb
net/http.HandlerFunc.ServeHTTP(0x24c3a40?, {0x3134860?, 0xc030a97dc0?}, 0xc10ca15650?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc0d57e0060, {0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:459 +0x2b4
net/http.HandlerFunc.ServeHTTP(0xc0c731a150?, {0x3134860?, 0xc030a97dc0?}, 0xc0d5c315b0?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc0d57e0060, {0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:73 +0x371
github.com/go-chi/chi/v5.(*Mux).Mount.func1({0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:327 +0x1bb
net/http.HandlerFunc.ServeHTTP(0x24c3a40?, {0x3134860?, 0xc030a97dc0?}, 0xc0c5896744?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc0d5441f80, {0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:459 +0x2b4
net/http.HandlerFunc.ServeHTTP(0xc0c731a150?, {0x3134860?, 0xc030a97dc0?}, 0xc000fb4800?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc0d5441f80, {0x3134860, 0xc030a97dc0}, 0xc000fb4800)
	github.com/go-chi/chi/[email protected]/mux.go:73 +0x371
github.com/ledgerwatch/erigon/cl/beacon/handler.(*ApiHandler).ServeHTTP(0x313c2d0?, {0x3134860?, 0xc030a97dc0?}, 0x463b9c0?)
	github.com/ledgerwatch/erigon/cl/beacon/handler/handler.go:317 +0x72
github.com/ledgerwatch/erigon/cl/beacon.ListenAndServe.func1({0x3134860?, 0xc030a97dc0}, 0xc000fb4700)
	github.com/ledgerwatch/erigon/cl/beacon/router.go:41 +0x1f1
net/http.HandlerFunc.ServeHTTP(0x24c3a40?, {0x3134860?, 0xc030a97dc0?}, 0xc0c5896744?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc0d2d92360, {0x3134860, 0xc030a97dc0}, 0xc000fb4700)
	github.com/go-chi/chi/[email protected]/mux.go:459 +0x2b4
net/http.HandlerFunc.ServeHTTP(0xc0d5751180?, {0x3134860?, 0xc030a97dc0?}, 0xc000fb4700?)
	net/http/server.go:2136 +0x29
github.com/go-chi/cors.(*Cors).Handler-fm.(*Cors).Handler.func1({0x3134860, 0xc030a97dc0}, 0xc000fb4700)
	github.com/go-chi/[email protected]/cors.go:228 +0x17e
net/http.HandlerFunc.ServeHTTP(0x313c308?, {0x3134860?, 0xc030a97dc0?}, 0x463b9c0?)
	net/http/server.go:2136 +0x29
github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc0d2d92360, {0x3134860, 0xc030a97dc0}, 0xc000fb4600)
	github.com/go-chi/chi/[email protected]/mux.go:90 +0x330
net/http.serverHandler.ServeHTTP({0xc125900cf0?}, {0x3134860?, 0xc030a97dc0?}, 0x6?)
	net/http/server.go:2938 +0x8e
net/http.(*conn).serve(0xc1286f5950, {0x313c2d0, 0xc0c83b9d70})
	net/http/server.go:2009 +0x5f4
created by net/http.(*Server).Serve in goroutine 57248
	net/http/server.go:3086 +0x5cb

Metadata

Metadata

Assignees

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