Skip to content

nil *StateSyncData calls panic #686

@xdfdm

Description

@xdfdm

Our support team has aggregated some common issues and their solutions from past which are faced while running or interacting with a bor client. In order to prevent redundant efforts, we would encourage you to have a look at the FAQ's section of our documentation mentioning the same, before filing an issue here. In case of additional support, you can also join our discord server

System information

Bor client version: [e.g. v0.3.3]

OS & Version: Windows / Linux / OSX

Environment: Polygon Mainnet

Type of node: Validator / Sentry / Archive

Additional Information:

Overview of the problem

Please describe the issue you experiencing.

In some cases, nil values are received from stateSyncData chan. That calls panic.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xdaa44f]

goroutine 896837 [running]:
github.com/ethereum/go-ethereum/eth/filters.(*PublicFilterAPI).NewDeposits.func1()
	/go/src/github.com/maticnetwork/bor/eth/filters/bor_api.go:70 +0x16f
created by github.com/ethereum/go-ethereum/eth/filters.(*PublicFilterAPI).NewDeposits
	/go/src/github.com/maticnetwork/bor/eth/filters/bor_api.go:63 +0xea

Reproduction Steps

Case, when eventRecords in CommitStates func (consensus/bor/bor.go) is not zero-length slice

Logs / Traces / Output / Error Messages

Please post any logs/traces/output/error messages (as text and not screenshots) which you believe may have caused the issue. If the log is longer than a few dozen lines, please include the URL to the gist of the log instead of posting it in the issue.

Additional Information

In order to debug the issue faster, we would stongly encourage if you can provide some of the details mentioned below (whichever seems relevant to your issue)

  1. Your start.sh file or bor.service, if you're facing some peering issue or unable to use some service (like http endpoint) as expected. Moreover, if possible mention the chain configuration printed while starting the node which looks something like Initialised chain configuration config="{ChainID: 137, ..., Engine: bor}"
  1. The result of eth.syncing, admin.peers.length, admin.nodeInfo, value of the maxpeers flag in start.sh, and bootnodes/static nodes (if any) is you're facing some syncing issue.
  1. Your heimdall-config.toml parameters for checking the ETH and BOR RPC url's, incase of issue with bor heimdall communication.
  1. The CURL request (for that specific error) if you're facing any issues or identify a bug while making RPC request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions