Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nil pointer and crash in createConversionFunctions #1870

Open
lahabana opened this issue Mar 14, 2022 · 1 comment
Open

nil pointer and crash in createConversionFunctions #1870

lahabana opened this issue Mar 14, 2022 · 1 comment
Labels
triage Issue needs triaging

Comments

@lahabana
Copy link

Description

This happened while rewinding a proxy on mainnet.
It caused the node to crash and restart, it has since passed this block without issue so I guess it's probably a race.

74109936776644,"msg":"Imported new chain segment","number":"11801944","severity":"info","timestamp":"2022-03-14T18:57:25.490722806Z","txs":1371}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xd30899]

goroutine 2514050 [running]:
github.com/celo-org/celo-blockchain/contracts/currency.(*Currency).ToCELO(...)
	github.com/celo-org/celo-blockchain/contracts/currency/currency.go:54
github.com/celo-org/celo-blockchain/miner.createConversionFunctions.func2(0xc086de22c0, 0xc069037b90, 0xc086de22c0)
	github.com/celo-org/celo-blockchain/miner/block.go:368 +0x39
github.com/celo-org/celo-blockchain/core/types.NewTxWithMinerFee(0xc03da49c20, 0xc0a2e57b10, 0xc0a2e57b20, 0x9367b4899f7ab52c, 0xca634464902cefc5, 0x1c1305f3)
	github.com/celo-org/celo-blockchain/core/types/transaction.go:555 +0xa2
github.com/celo-org/celo-blockchain/core/types.NewTransactionsByPriceAndNonce(0x19b8a18, 0xc01c345ac0, 0xc053467080, 0xc0a2e57b10, 0xc0a2e57b20, 0xc0a2e57b20)
	github.com/celo-org/celo-blockchain/core/types/transaction.go:609 +0x207
github.com/celo-org/celo-blockchain/miner.(*worker).constructPendingStateBlock(0xc01455bdc0, 0x19b5378, 0xc05baf1d00, 0xc0142e0b40)
	github.com/celo-org/celo-blockchain/miner/worker.go:344 +0x610
github.com/celo-org/celo-blockchain/miner.(*worker).mainLoop.func1.2(0xc01455bdc0, 0xc000063fa0, 0xc0142e0b40, 0xc01414bd60)
	github.com/celo-org/celo-blockchain/miner/worker.go:391 +0x4b
created by github.com/celo-org/celo-blockchain/miner.(*worker).mainLoop.func1
	github.com/celo-org/celo-blockchain/miner/worker.go:390 +0x196
Connection to compute.8893688920152357861 closed.

Context

  • mainnet
  • celo 1.5.2
@carterqw2 carterqw2 added triage Issue needs triaging and removed blockchain labels Feb 9, 2023
@carterqw2
Copy link
Contributor

Check if related to #1982

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issue needs triaging
Projects
None yet
Development

No branches or pull requests

3 participants
@lahabana @carterqw2 and others