Skip to content

[Bug]: panic at upgrade height if there is listener #24005

@beer-1

Description

@beer-1

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

A cosmos app is panicking at upgrade height when it has abci listeners.

These lines are executed even the internalFinalizeBlock return the errors and res is nil

cosmos-sdk/baseapp/abci.go

Lines 860 to 862 in 7b9d2ff

if err := streamingListener.ListenFinalizeBlock(app.finalizeBlockState.Context(), *req, *res); err != nil {
app.logger.Error("ListenFinalizeBlock listening hook failed", "height", req.Height, "err", err)
}

so *res make the node panic and it sometimes breaking our upgrade checker logics.

Cosmos SDK Version

0.50

How to reproduce?

register abci listener and create upgrade proposal and wait upgrade height

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🥳 Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions