zkMIPS / zkm

The universal zkVM empowering Ethereum as the Global Settlement Layer
https://zkm.io
MIT License
92 stars 49 forks source link

thread 'main' panicked at /mnt/data/xander/zkm/src/cpu/bootstrap_kernel.rs:200:13: assertion `left == right` failed #107

Closed xander42280 closed 5 months ago

xander42280 commented 6 months ago

1.Compile the go-ethereum-mips to MIPS(go1.20) GOOS=linux GOARCH=mips GOMIPS=softfloat go build -o /mnt/data/xander/zkm/test-vectors/go-ethereum-mips *.go

2.download block data 13284469 export BASEDIR=/mnt/data/xander/zkm/test-vectors;../../cannon-mips/minigeth/go-ethereum 13284469

3.split go-ethereum-mips with block 13284469 ubuntu@ip-172-31-0-75:/mnt/data/xander/zkm$ BASEDIR=test-vectors RUST_LOG=info ELF_PATH=test-vectors/go-ethereum-mips BLOCK_NO=13284469 SEG_OUTPUT=/mnt/data/xander/zkm/test-vectors/segment SEG_SIZE=262144 ARGS="" \ cargo run --release --example zkmips split Finished release profile [optimized] target(s) in 0.26s Running target/release/examples/zkmips split count 0 items {} on chain starts here processing state: 13284469 -> 13284470 read 5 transactions made block, parent: 0x749094245cc5e9304fc7ede4b37a879fda6dfafb8a6820d61d5a13a6b2880791 .....consensus finalize new Root 0x9e0261efe4509912b8862f3d45a0cb8404b99b239247df9c55871bd3844cebbd receipt count 5 hash 0xa2947195971207f3654f635af06f2ab5d3a57af7a834ac88446afd3e8105e57c process done with hash 0x5c45998dfbf9ce70bcbb80574ed7a622922d2c775e0a2331fe5a8b8dcc99f490 -> 0x9e0261efe4509912b8862f3d45a0cb8404b99b239247df9c55871bd3844cebbd [2024-03-29T05:27:57Z INFO zkmips] Split done

4.prove segment/194 ubuntu@ip-172-31-0-75:/mnt/data/xander/zkm$ BASEDIR=test-vectors RUST_LOG=info BLOCK_NO=13284469 SEG_FILE="/mnt/data/xander/zkm/test-vectors/segment/194" SEG_SIZE=262144 \ cargo run --release --example zkmips prove Finished release profile [optimized] target(s) in 0.27s Running target/release/examples/zkmips prove [2024-03-29T05:29:37Z INFO zkm::cpu::bootstrap_kernel] Bootstrapping took 12903 cycles [2024-03-29T05:29:37Z INFO zkm::generation] CPU halted after 275101 cycles thread 'main' panicked at /mnt/data/xander/zkm/src/cpu/bootstrap_kernel.rs:200:13: assertion left == right failed left: [35, 36, 11, 39, 53, 64, 105, 201, 65, 75, 120, 95, 201, 142, 85, 158, 254, 5, 190, 111, 235, 85, 246, 7, 17, 27, 202, 235, 150, 89, 55, 156] right: [105, 244, 107, 9, 46, 190, 235, 6, 63, 239, 185, 20, 230, 162, 164, 246, 65, 97, 77, 150, 23, 122, 218, 95, 7, 36, 60, 149, 102, 84, 202, 207] note: run with RUST_BACKTRACE=1 environment variable to display a backtrace