-
Notifications
You must be signed in to change notification settings - Fork 26
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 management bug probably in tit_lazy, likely related to futures #35
Comments
I get the same kind of behavior, as well as the occasional
Could it have to do with GC of futures? |
I may have found this bug. It seems that under certain circumstances, we are freeing a lazy_tit too eagerly. You could try to remove the |
@TobiasWrigstad Removing the |
Kiko and Albert are rewriting the lightweight threads (not entirely unrelated to futures, but not the same thing either). All |
That’s correct. Moreover, the eager and lazy implementation were broken on Linux. Sometimes the program finish and sometimes it crashes. |
tested the current implementation. working on Mac and Linux |
This program demonstrates a bug, pbly in the futures implementation:
program.enc:
When run in a loop, the program will output:
In the last lines, you see that a
84
did not appear. As far as I can tell, the futureget
did not return, instead the executable returns with a normal (!) exit, as thebreak
does not get triggered.Edit: Also, sometimes I get
The text was updated successfully, but these errors were encountered: