You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The good news is that this is not a bug in I/O. The bad news is that this is a bug in the compiler. I've simplified the program you have into this:
fnfoo(_: ~int){}fnmain(){let a = ~2;do spawn {
loop {
foo(a);}}}
This program should not compile because it is repeatedly moving out of the local variable a. Your program should not compile either because you are repeatedly moving out of stream.
When running this code:
https://gist.github.com/TisButMe/74c121d98ef3fe00bfa9
The second time you enter an input to stdin, the program segfaults:
Sample input:
Removing
stops the segfault, but nothing gets written anymore (surprisingly...).
For testing purposes, here is the code to the server used:
https://gist.github.com/TisButMe/16999f80db443dfe4df8
This issue has been discovered on Ubuntu 13.04, using the master downloaded and compiled on 5 Dec.13
The text was updated successfully, but these errors were encountered: