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

[Bug]: v2 simd panic on restart #22652

Closed
1 task done
alpe opened this issue Nov 26, 2024 · 3 comments · Fixed by #22683
Closed
1 task done

[Bug]: v2 simd panic on restart #22652

alpe opened this issue Nov 26, 2024 · 3 comments · Fixed by #22683
Assignees
Labels
C:server/v2 Issues related to server/v2 T:Bug

Comments

@alpe
Copy link
Contributor

alpe commented Nov 26, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

12:48PM INF service start connection=consensus impl=localClient module=abci-client msg="Starting localClient service"
12:48PM INF service start impl=EventBus module=events msg="Starting EventBus service"
12:48PM INF service start impl=PubSub module=pubsub msg="Starting PubSub service"
12:48PM INF service start impl=IndexerService module=txindex msg="Starting IndexerService service"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x105ed80e8]

goroutine 131 [running]:
database/sql.(*DB).conn(0x41?, {0x1085420b8?, 0x10a4fa440?}, 0xac?)
        database/sql/sql.go:1309 +0x28
database/sql.(*DB).prepare(0x0, {0x1085420b8, 0x10a4fa440}, {0x107679b39, 0x46}, 0x0?)
        database/sql/sql.go:1617 +0x34
database/sql.(*DB).PrepareContext.func1(0x10?)
        database/sql/sql.go:1591 +0x48
database/sql.(*DB).retry(0x14001f93360?, 0x1400208a968)
        database/sql/sql.go:1568 +0x4c
database/sql.(*DB).PrepareContext(0x10a4fa440?, {0x1085420b8?, 0x10a4fa440?}, {0x107679b39?, 0x1400088d420?})
        database/sql/sql.go:1590 +0x64
database/sql.(*DB).Prepare(...)
        database/sql/sql.go:1607
cosmossdk.io/store/v2/storage/sqlite.(*Database).GetLatestVersion(0x1400208aab8?)
        cosmossdk.io/store/[email protected]/storage/sqlite/db.go:106 +0x50
cosmossdk.io/store/v2/storage/sqlite.(*Database).VersionExists(0x140018a83c0, 0x0)
        cosmossdk.io/store/[email protected]/storage/sqlite/db.go:131 +0x24
cosmossdk.io/store/v2/storage.(*StorageStore).VersionExists(0x1400208ab08?, 0x104e61ad4?)
        cosmossdk.io/store/[email protected]/storage/store.go:89 +0x28
cosmossdk.io/store/v2/root.(*Store).getVersionedReader(0x140008c0300, 0x0)
        cosmossdk.io/store/[email protected]/root/store.go:116 +0x34
cosmossdk.io/store/v2/root.(*Store).StateLatest(0x140008c0300)
        cosmossdk.io/store/[email protected]/root/store.go:143 +0x3c
cosmossdk.io/server/v2/cometbft.(*consensus[...]).Info(0x1085a1e20, {0x108542010, 0x14002021540}, 0x1400208ac28)
        cosmossdk.io/server/v2/[email protected]/abci.go:128 +0x3c
github.com/cometbft/cometbft/abci/client.(*unsyncLocalClient).Info(0x0?, {0x108542010?, 0x14002021540?}, 0x1055afc70?)
        github.com/cometbft/[email protected]/abci/client/unsync_local_client.go:81 +0x30
github.com/cometbft/cometbft/proxy.(*appConnQuery).Info(0x14002baaa80, {0x108542010, 0x14002021540}, 0x10a30cb40)
        github.com/cometbft/[email protected]/proxy/app_conn.go:178 +0x120
github.com/cometbft/cometbft/internal/consensus.(*Handshaker).Handshake(0x1400208b1c8, {0x108542010, 0x14002021540}, {0x108569e18, 0x140005cdc00})
        github.com/cometbft/[email protected]/internal/consensus/replay.go:244 +0x60
github.com/cometbft/cometbft/node.doHandshake({_, _}, {_, _}, {{{0xb, 0x0}, {0x1075852f4, 0x9}}, {0x14002d0a8c0, 0x7}, ...}, ...)
        github.com/cometbft/[email protected]/node/setup.go:236 +0x118
github.com/cometbft/cometbft/node.NewNodeWithCliParams({0x108542010, 0x14002021540}, 0x14000606780, {0x108541d90, 0x14002008000}, 0x14000e1c000, {0x108542258, 0x14000e1c150}, 0x1400208bf18, 0x1084ebb68, ...)
        github.com/cometbft/[email protected]/node/node.go:405 +0x87c
github.com/cometbft/cometbft/node.NewNode(...)
        github.com/cometbft/[email protected]/node/node.go:286
cosmossdk.io/server/v2/cometbft.(*CometBFTServer[...]).Start(0x616c62223d726f6c, {0x108542010?, 0x14002021540})
        cosmossdk.io/server/v2/[email protected]/server.go:238 +0x338
cosmossdk.io/server/v2.(*Server[...]).Start.func1()
        cosmossdk.io/server/[email protected]/server.go:96 +0x38
created by cosmossdk.io/server/v2.(*Server[...]).Start in goroutine 1
        cosmossdk.io/server/[email protected]/server.go:95 +0x13c

Cosmos SDK Version

main

How to reproduce?

export COSMOS_BUILD_OPTIONS=v2
make test

@alpe alpe added the T:Bug label Nov 26, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Cosmos-SDK Nov 26, 2024
@tac0turtle tac0turtle added the C:server/v2 Issues related to server/v2 label Nov 27, 2024
@tac0turtle
Copy link
Member

i was unable to reproduce this locally. can you do it consistently?

@julienrbrt
Copy link
Member

Been able to reproduce by running COSMOS_BUILD_OPTIONS=v2 make test-system

@tac0turtle
Copy link
Member

ah i was following the how to reproduce but got it with system-test

@julienrbrt julienrbrt moved this from 📋 Backlog to 🤸‍♂️ In Progress in Cosmos-SDK Nov 29, 2024
@julienrbrt julienrbrt linked a pull request Nov 29, 2024 that will close this issue
12 tasks
@tac0turtle tac0turtle self-assigned this Dec 3, 2024
@tac0turtle tac0turtle moved this from 🤸‍♂️ In Progress to 👀 Waiting / In review in Cosmos-SDK Dec 3, 2024
@github-project-automation github-project-automation bot moved this from 👀 Waiting / In review to 🥳 Done in Cosmos-SDK Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:server/v2 Issues related to server/v2 T:Bug
Projects
Status: 🥳 Done
Development

Successfully merging a pull request may close this issue.

3 participants