-
Notifications
You must be signed in to change notification settings - Fork 59
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
Memory corruption in type checking from async entrypoint/dispatch #1557
Comments
|
As a start it would be interesting to hear if anyone else can reproduce the bug. As I said, on my machine it happens 100% of the time. |
Sounds like the spooky bug we had with parallel type checking. See here #1162 |
Ah interesting! Yeah that makes sense, blowing the stack, and the dispatch threads having a smaller stack to work with. |
In my Hylo-LSP prototype I have an async main entrypoint and I noticed that I am now getting memory corruption (SIGBUS) when running the type checker in hylo.
I managed to make a minimal application that demonstrates the problem. It is 100% reproducible on my machine. Here is the code:
c60d2dd
Specifically the main entrypoint, which looks like this:
When running this, I get a crash during type checking:
Note that I only get the crash with the two step async dispatch pattern in
MyApp
.If I place the hylo code directly in the async main function the code completes without crashing.
The text was updated successfully, but these errors were encountered: