-
-
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
"v run" unexpectedly terminates #19412
Comments
It's definitely going to terminate, when you run out of stack. I'm just surprised you're not getting a message from the system about this. |
For me, |
I think the main problem is that |
This is when |
PR #19471 should fix this. With it:
|
…`, exits by a signal (fix vlang#19412) (vlang#19471)
Describe the bug
The following program has an infinite loop, and should not terminate. However
v run main.v
terminates without printing anything. This behaviour seems a bit suspicious, and differs from the behaviour if the program is compiled and ran (which segfaults, due to stack overflow).Reproduction Steps
Run
v run main.v
Expected Behavior
v run
to never terminate, or crashCurrent Behavior
v run
terminates, despite the program having an infinite loop.Possible Solution
Imo the main thing is that the behaviour should be consistent. Ideally
v run
prints an error saying a stack overflow has occurred.Additional Information/Context
No response
V version
Current V version: V 0.4.1 ed42341
Environment details (OS name and version, etc.)
Arch Linux, kernel 6.5.3
Important
You can vote for this issue using the 👍 reaction. More votes increase the issue's priority
for developers.
Take into account that only the 👍 reaction counts as a vote.
Only reactions to the issue itself will be counted as votes, not comments.
The text was updated successfully, but these errors were encountered: