-
Notifications
You must be signed in to change notification settings - Fork 141
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
Stack overflow on chain fork on macOS with RocksDBStore #2338
Comments
I have same issue.
|
may be relevent to dotnet/runtime#33622 |
It isn't solution but you may be able to bypass this issue with |
The allowed size for call stacks vary depending on OSes and their settings, but it's still true that it's probably your fault if your program overflows its stack, because usually stack size is more or less enough for the most programs. I believe it's rather a signal that we tried to solve a problem that cannot be solved by recursions with recursions. We need to rewrite it using plain loops in order to address the problem instead of configuring stack size on macOS. Even if we gloss over the problem this time by runtime settings, we will eventually face the same problem again and again as the blockchain goes longer. |
Are you still researching this issue, @longfin? If not, can I take this issue? |
On macOS (tested on Intel Macs,) in NineChronicles.Headless, with snapshot supplied, when a chain fork is attempted, MoveNext() in RocksDBStore results in a call stack overflow. This does not affect Windows and Linux, and is present in versions since at least 0.40.
The text was updated successfully, but these errors were encountered: