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

Non-determinism test panic for seed 5713311881947368974 #279

Open
4 tasks
adamewozniak opened this issue Sep 19, 2023 · 0 comments
Open
4 tasks

Non-determinism test panic for seed 5713311881947368974 #279

adamewozniak opened this issue Sep 19, 2023 · 0 comments

Comments

@adamewozniak
Copy link
Member

Summary of Bug

In this unrelated PR, the nondeterminism test errored out for seed 5713311881947368974: https://github.com/ojo-network/ojo/actions/runs/6230730740/job/16911184006

This can be recreated locally by hard-coding the seed

On block 22/100:

Simulating... block 22/100, operation 0/0.simulation halted due to panic on block 23
Logs to writing to /home/runner/.simapp/simulations/2023-09-19_03:25:43.log
--- FAIL: TestAppStateDeterminism (266.06s)
panic: spendable balance  is smaller than 18437351351iJlbFCuAGG: insufficient funds [recovered]
	panic: spendable balance  is smaller than 18437351351iJlbFCuAGG: insufficient funds [recovered]
	panic: spendable balance  is smaller than 18437351351iJlbFCuAGG: insufficient funds

goroutine 8 [running]:
testing.tRunner.func1.2({0x21b1ec0, 0xc008487060})
	/opt/hostedtoolcache/go/1.20.8/x64/src/testing/testing.go:1526 +0x24e
testing.tRunner.func1()
	/opt/hostedtoolcache/go/1.20.8/x64/src/testing/testing.go:1529 +0x39f
panic({0x21b1ec0, 0xc008487060})
	/opt/hostedtoolcache/go/1.20.8/x64/src/runtime/panic.go:884 +0x213
github.com/cosmos/cosmos-sdk/x/simulation.SimulateFromSeed.func2()
	/home/runner/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.47.3/x/simulation/simulate.go:146 +0xf1
panic({0x21b1ec0, 0xc008487060})
	/opt/hostedtoolcache/go/1.20.8/x64/src/runtime/panic.go:890 +0x263
github.com/cosmos/cosmos-sdk/x/staking/keeper.Keeper.Slash({{0x2eb0f08, 0xc0086e22d0}, {0x2edd710, 0xc0208bfbc0}, {0x2ed1a80, 0xc03082e960}, {0x7f80c8b8ffa0, 0xc030900420}, {0x2ede270, 0xc0308669c0}, ...}, ...)
	/home/runner/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.47.3/x/staking/keeper/slash.go:140 +0x11e8
github.com/cosmos/cosmos-sdk/x/staking/keeper.Keeper.SlashWithInfractionReason(...)
	/home/runner/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.47.3/x/staking/keeper/slash.go:161
github.com/cosmos/cosmos-sdk/x/slashing/keeper.Keeper.SlashWithInfractionReason({{_, _}, {_, _}, _, {_, _}, {_, _}}, {{0x2ecd3d8, ...}, ...}, ...)
	/home/runner/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.47.3/x/slashing/keeper/keeper.go:81 +0xed
github.com/cosmos/cosmos-sdk/x/evidence/keeper.Keeper.HandleEquivocationEvidence({{0x2edd710, 0xc0208bfbc0}, {0x2eb0f08, 0xc0086e2370}, {0x0, 0x0}, {0x2eb1188, 0xc0307bfb60}, {0x2edc240, 0xc03082ee60}}, ...)
	/home/runner/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.47.3/x/evidence/keeper/infraction.go:111 +0xceb
github.com/cosmos/cosmos-sdk/x/evidence.BeginBlocker({{0x2ecd3d8, 0xc000128000}, {0x2ede120, 0xc003b93b80}, {{0x0, 0x0}, {0xc000edc348, 0x17}, 0x17, {0x0, ...}, ...}, ...}, ...)
	/home/runner/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.47.3/x/evidence/abci.go:26 +0x1bb
github.com/cosmos/cosmos-sdk/x/evidence.AppModule.BeginBlock(...)
	/home/runner/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.47.3/x/evidence/module.go:169
github.com/cosmos/cosmos-sdk/types/module.(*Manager).BeginBlock(_, {{0x2ecd3d8, 0xc000128000}, {0x2ede120, 0xc003b93b80}, {{0x0, 0x0}, {0xc000edc348, 0x17}, 0x17, ...}, ...}, ...)
	/home/runner/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.47.3/types/module/module.go:562 +0x1bb
github.com/ojo-network/ojo/app.(*App).BeginBlocker(...)
	/home/runner/work/ojo/ojo/app/app.go:700
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).BeginBlock(_, {{0x0, 0x0, 0x0}, {{0x0, 0x0}, {0xc000edc348, 0x17}, 0x17, {0x0, ...}, ...}, ...})
	/home/runner/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.47.3/baseapp/abci.go:196 +0x835
github.com/cosmos/cosmos-sdk/x/simulation.SimulateFromSeed({0x2ee9930?, 0xc000ea91e0?}, {0x2eacfc0?, _}, _, _, _, {0xc0314b0d80, 0x30, 0x48}, ...)
	/home/runner/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.47.3/x/simulation/simulate.go:165 +0x14a5
github.com/ojo-network/ojo/tests/simulation.TestAppStateDeterminism(0xc000ea91e0)
	/home/runner/work/ojo/ojo/tests/simulation/sim_test.go:152 +0x988
testing.tRunner(0xc000ea91e0, 0x2a80840)
	/opt/hostedtoolcache/go/1.20.8/x64/src/testing/testing.go:1576 +0x10b
created by testing.(*T).Run
	/opt/hostedtoolcache/go/1.20.8/x64/src/testing/testing.go:1629 +0x3ea
FAIL	github.com/ojo-network/ojo/tests/simulation	266.165s
FAIL
make: *** [Makefile:230: test-app-non-determinism] Error 1
Error: Process completed with exit code 2.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant