-
Notifications
You must be signed in to change notification settings - Fork 1k
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
RuntimeError: memory access out of bounds #1526
Comments
Could anyone help me? |
This commit updates the drop glue generated for closures to simply ignore null pointers. The drop glue can be called in erroneous situations such as when a closure is invoked after it's been destroyed. In these cases we don't want to segfault and/or corrupt memory but instead let the normal error message from the invoke glue continue to get propagated. Closes rustwasm#1526
Thanks for the report! The bug here is that we're not providing a great error message sooner and we're allowing the runtime to continue in an invalid state. The cause of this is that the destroyed I've opened a #1530 so this'll have a clearer error message and the 'segfault' will be fixed. |
@alexcrichton thx, I will attention to this issue. 😄 |
when i call clearInterval, there is a problem : "memory access out of bounds".
this is the rust code:
this is my typescript code:
the log:
The text was updated successfully, but these errors were encountered: