-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
-prod affects WaitingGroup #2874
Comments
It happens on linux too. |
Passing -O1 (or -O2 or -O3) to the C backend induces this bug. Not sure what the cause is yet. |
Found the bug.. the compiler is optimizing this empty loop. imho V should forbid empty loops.
if you uncomment this time.sleep(1) line then the bug appears actually you can add any other statement inside the for loop and the bug disapears. |
not to mention this infinite loop should be using a mutex |
@medvednikov wanted to completely reimplement go routines (see e.g. #1868 ), so I wouldn't expect the current implementation to behave nicely (but just correctly). |
Fixed. |
thank you <3
… On 3 Dec 2019, at 14:42, Alexander Medvednikov ***@***.***> wrote:
Fixed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#2874?email_source=notifications&email_token=AAG75FVCYKQ6IRWKB2YEGWTQWZO4ZA5CNFSM4JQ76CSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFZNFCA#issuecomment-561173128>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAG75FRA74CHLP2BECYWYKDQWZO4ZANCNFSM4JQ76CSA>.
|
V version: V 0.1.22 19b4cf6
OS: macOS 10.15
What did you do?
What did you expect to see?
What did you see instead?
when using -prod i get undefined behaviour (sometimes ends quickly, sometimes never ends) related to WaitingGroup. it seems to be more consistent without release builds
The text was updated successfully, but these errors were encountered: