Skip to content

sigsev when tracing with light client #23766

Closed
@saman-pasha

Description

@saman-pasha

System information

Geth version: Version: 1.10.10-stable
OS & Version: Linux
Commit hash : (if develop)

Expected behaviour

debug internall calls with json rpc

Actual behaviour

geth crashes

Steps to reproduce the behaviour

I was searching for a way to get trace internal calls that I found this link. I did that and make clean, make geth and run an ethereum light. after I send the subscription, {"jsonrpc":"2.0","id":1,"result":"0xce32469e47c132d480cdff54f21ae2b3"} I gave this result but a second after geth crashes with below error

Backtrace

INFO [10-18|15:06:01.997] Imported new block headers               count=1  elapsed=6.040ms  number=13,441,578 hash=555638..d4667a
INFO [10-18|15:06:05.375] Imported new block headers               count=1  elapsed=6.269ms  number=13,441,579 hash=b3ed34..d9d1e4
INFO [10-18|15:06:06.102] Tracing chain segment                    start=0 end=65535 current=0 transactions=0 elapsed="49.105µs"
WARN [10-18|15:06:06.108] Chain tracing aborted                    start=0 end=65535 abort=2 transactions=0 elapsed=5.699454ms
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x777a1f]

goroutine 270 [running]:
github.com/ethereum/go-ethereum/trie.(*Database).Dereference(0x0, {0xd7, 0xf8, 0x97, 0x4f, 0xb5, 0xac, 0x78, 0xd9, 0xac, ...})
	github.com/ethereum/go-ethereum/trie/database.go:519 +0x9f
github.com/ethereum/go-ethereum/eth/tracers.(*API).traceChain.func2()
	github.com/ethereum/go-ethereum/eth/tracers/api.go:334 +0xafb
created by github.com/ethereum/go-ethereum/eth/tracers.(*API).traceChain
	github.com/ethereum/go-ethereum/eth/tracers/api.go:299 +0x4d8

When submitting logs: please submit them as text and not screenshots.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions