noway / sha256-var-circom

Variable length sha256 hash function in Circom
MIT License
6 stars 2 forks source link

Larger block space met Segmentation fault #6

Open jimmyli-421 opened 2 years ago

jimmyli-421 commented 2 years ago

Thanks for your contribution! This function is very useful to me. But i met Segmentation fault, when I set block space as 8. Below is the error message. Error: Command failed: circom --wasm --sym --r1cs --output /tmp/circom_-15849-4lBfKEKyj3rZ /home/user/tmp/sha256-var-circom/circuits/sha256VarSpace8_test.circom thread 'main' panicked at 'index out of bounds: the len is 55587651 but the index is 10037632455167976532', constraint_list/src/constraint_simplification.rs:80:24 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace Segmentation fault (core dumped) Have you ever encountered a problem like this?

noway commented 2 years ago

@jimmyli-421

Interesting. I haven't encountered this myself - this is weird and the tests should run really... Worked on circom compiler 2.0.3 i'm pretty sure.

Maybe try to disable optimisation?

image