Skip to content

nil-pointer in TestReactorConcurrency mempool test #7481

@williambanfield

Description

@williambanfield
--- FAIL: TestReactorConcurrency (0.02s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xda1e6a]

goroutine 3091 [running]:
testing.tRunner.func1.2({0xf43040, 0x180f150})
	/opt/hostedtoolcache/go/1.17.5/x64/src/testing/testing.go:1209 +0x36c
testing.tRunner.func1()
	/opt/hostedtoolcache/go/1.17.5/x64/src/testing/testing.go:1212 +0x3b6
panic({0xf43040, 0x180f150})
	/opt/hostedtoolcache/go/1.17.5/x64/src/runtime/panic.go:1047 +0x266
github.com/tendermint/tendermint/internal/libs/clist.(*CElement).Prev(0x0)
	/home/runner/work/tendermint/tendermint/internal/libs/clist/clist.go:125 +0x2a
github.com/tendermint/tendermint/internal/libs/clist.(*CList).Remove(0xc0024175e0, 0x0)
	/home/runner/work/tendermint/tendermint/internal/libs/clist/clist.go:356 +0x52
github.com/tendermint/tendermint/internal/mempool.(*TxMempool).removeTx(0xc0000149c0, 0xc0024a7a40, 0x0)
	/home/runner/work/tendermint/tendermint/internal/mempool/mempool.go:795 +0x1fe
github.com/tendermint/tendermint/internal/mempool.(*TxMempool).Flush(0xc0000149c0)
	/home/runner/work/tendermint/tendermint/internal/mempool/mempool.go:331 +0x1a9
github.com/tendermint/tendermint/internal/mempool.TestReactorConcurrency(0xc0024504e0)
	/home/runner/work/tendermint/tendermint/internal/mempool/reactor_test.go:274 +0x22f
testing.tRunner(0xc0024504e0, 0x1177430)
	/opt/hostedtoolcache/go/1.17.5/x64/src/testing/testing.go:1259 +0x230
created by testing.(*T).Run
	/opt/hostedtoolcache/go/1.17.5/x64/src/testing/testing.go:1306 +0x727

Observed here

Metadata

Metadata

Assignees

No one assigned

    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