-
Notifications
You must be signed in to change notification settings - Fork 19
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 for deep expressions in bincode serialization/deserialization #875
Comments
|
@franziskuskiefer You were right, the problem is in the engine. It happens in phase |
It turns out this fix doesn't improve the original problem. The example of deep expressions was only an attempt to minimize that had a different problem. My current understanding is that when we have a rather big (or deep) module hierarchy, the I tested a few serialization libraries and most don't support recursive types. Among those that do it seemed that bincode was one of the most efficient (I found none that seemed to behave better with deep recursive data). |
With rust code containing deep expressions, hax fails with a stack overflow. For example:
The stack trace suggests that this has to do with serialization/deserialization with bincode that was introduced in #743. However this problem cannot be reproduced with the merge commit of #743 itself (but it loops for a long time). The version of bincode hasn't changed since then so there might be an interaction with another later change that triggers the stack overflow.
The text was updated successfully, but these errors were encountered: