snarkVM icon indicating copy to clipboard operation
snarkVM copied to clipboard

[Bug] !! Stack overflow when there are too many transactions

Open HarukaMa opened this issue 2 years ago • 2 comments

🐛 Bug Report

When there are too many transactions in a block, snarkVM could overflow the stack.

Two gdb bt:

https://gist.github.com/HarukaMa/db081f7a1cb84831daedadeb4cbaf77b

The first one is captured on my pool server, and the second one is captured on snarkOS.

While it's possible that this is only on my machine, my explorer shows there are fewer nodes than several days before (~70 vs ~130), so maybe other people are having this issue as well.

Steps to Reproduce

Not sure, but having many transactions in a block should help.

Expected Behavior

snarkVM should not stack overflow.

Your Environment

  • 0.8.0 on my branch but I didn't touch anything in algorithm
  • rustc 1.63.0-nightly (c3b7d7b49 2022-06-17)
  • Debian

Now looking at it, I should have tested it on stable rust but it's difficult for me to reproduce it.

I'm also not sure if this could be fixed by updating dependencies.

HarukaMa avatar Jun 27 '22 09:06 HarukaMa

Same problem, I also found that memory didn't seem to be freed after serialization or deserialization

SatoKentaNayoro avatar Jul 01 '22 09:07 SatoKentaNayoro

Same problem. Can't find the problem, don't know how to deal with it

beck-8 avatar Jul 05 '22 02:07 beck-8