algorand / algorand/go-algorand

algorand mainnet node fails with deadlock error

Open
#4,587 1 comment 0 reactions 1 assignee Claimed by @jsgranados View on GitHub
external contribution Team Carbon-11
Dominant language
Go
Stars
1.4k
Forks
537
Avg merge
1d 7h
Merged PRs (30d)
18

Description

### Subject of the issue

algorand mainnet node fails with deadlock error

### Environment

* Software version: `algod -v`

$ algod -v
12885491716
3.9.4.stable [rel/stable] (commit #921e8f6f)
go-algorand is licensed with AGPLv3.0
source code available at https://github.com/algorand/go-algorand

* Operating System details.

$ uname -a
Linux 5.15.0-48-generic #54~20.04.1-Ubuntu SMP x86_64 GNU/Linux

* log file

algorand-mainnet-algod.stderr.0 :

github.com/algorand/go-algorand/daemon/algod.captureCallstack()
github.com/algorand/go-algorand/daemon/algod/deadlockLogger.go:59 +0x4f
github.com/algorand/go-algorand/daemon/algod.(*deadlockLogger).onPotentialDeadlock.func1()
github.com/algorand/go-algorand/daemon/algod/deadlockLogger.go:74 +0x26
sync.(*Once).doSlow(0xc01ab5e600, 0x1)
sync/once.go:68 +0xd2
sync.(*Once).Do(...)
sync/once.go:59
github.com/algorand/go-algorand/daemon/algod.(*deadlockLogger).onPotentialDeadlock(0x0)
github.com/algorand/go-algorand/daemon/algod/deadlockLogger.go:72 +0x45

* config file

config.json :

"DeadlockDetection": 1,
"DeadlockDetectionThreshold": 30,

### Steps to reproduce

1.
start algorand mainnet node with deadlock detection enabled

2.
let the node run and sync

### Expected behaviour

deadlock logger detects there is no deadlock ( unless there is actually a deadlock but not otherwise , not if its a normal run and sync )

### Actual behaviour

deadlock logger detects there is a deadlock and fails the node

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.