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]: Crash on batch market instruction #10068

Closed
TomMcL opened this issue Nov 14, 2023 · 0 comments · Fixed by #10070
Closed

[Bug]: Crash on batch market instruction #10068

TomMcL opened this issue Nov 14, 2023 · 0 comments · Fixed by #10070

Comments

@TomMcL
Copy link
Contributor

TomMcL commented Nov 14, 2023

Problem encountered

Market sim fuzzing run is hitting a crashing bug when sending a batch market transaction

Observed behaviour

panic: runtime error: index out of range [9] with length 9

goroutine 38333 [running]:
code.vegaprotocol.io/vega/core/processor.(*BMIProcessor).ProcessBatch(0xc00e8bd8f8, {0x428ba40, 0xc009125e90}, 0xc00226a960, {0xc009264a80, 0x40}, {0xc00af7d980, 0x40}, {0x42d0908, 0xc000d62240})
	/jenkins/workspace/common/vega-market-sim-reinforcement/extern/vega/core/processor/batch_market_instructions_processor.go:245 +0x1675
code.vegaprotocol.io/vega/core/processor.(*App).DeliverBatchMarketInstructions(0xc000238e00, {0x428ba40, 0xc009125e90}, {0x42b5440, 0xc00bf51280}, {0xc00af7d980, 0x40})
	/jenkins/workspace/common/vega-market-sim-reinforcement/extern/vega/core/processor/abci.go:1437 +0x16a
code.vegaprotocol.io/vega/core/processor.addDeterministicID.func1({0x428ba40, 0xc009125e90}, {0x42b5440, 0xc00bf51280})
	/jenkins/workspace/common/vega-market-sim-reinforcement/extern/vega/core/processor/abci.go:508 +0x103
code.vegaprotocol.io/vega/core/processor.(*App).CheckBatchMarketInstructionsW.func1({0x428ba40, 0xc009125e90}, {0x42b5440, 0xc00bf51280})
	/jenkins/workspace/common/vega-market-sim-reinforcement/extern/vega/core/processor/abci.go:530 +0x76
code.vegaprotocol.io/vega/core/processor.(*App).SendTransactionResult.func1({0x428ba40, 0xc009125e90}, {0x42b5440, 0xc00bf51280})
	/jenkins/workspace/common/vega-market-sim-reinforcement/extern/vega/core/processor/abci.go:560 +0x5c

Expected behaviour

Not crashing

replay-5.zip
vegahome.zip

Steps to reproduce

1. In market sim repo run scripts/run-fuzz-test.sh
2. Or Run attached replay file using attached market sim config files

Software version

aa29800

Failing test

No response

Jenkins run

No response

Configuration used

No response

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Status: Deployed to Mainnet
Development

Successfully merging a pull request may close this issue.

3 participants