Skip to content
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

MoarVM panic from race return #5478

Open
DarthGandalf opened this issue Nov 27, 2023 · 0 comments
Open

MoarVM panic from race return #5478

DarthGandalf opened this issue Nov 27, 2023 · 0 comments
Labels
hyper/race MoarVM Related to Rakudo-MoarVM SEGV Segmentation fault, bus error, etc.

Comments

@DarthGandalf
Copy link

The Problem

sub f() {
        race for ^10 {
                return 2 if 5;
        }
}
f();

Expected Behavior

f() should return 2.

If several iterations had the condition succeed, I'd expect any of them to be returned - in case of hyper it would be the first one instead.

Actual Behavior

MoarVM panic: Internal error: Unwound entire stack and missed handler

Hyper also crashes the same way.

Steps to Reproduce

Just run that code. --ll-exception provides no additional details for me.

Environment

  • Operating system: Gentoo Linux, amd64
  • Compiler version (rakudo -v or raku -v): v2023.10.
@ab5tract ab5tract added hyper/race concurrency MoarVM Related to Rakudo-MoarVM ASYNC SEGV Segmentation fault, bus error, etc. and removed concurrency ASYNC labels Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hyper/race MoarVM Related to Rakudo-MoarVM SEGV Segmentation fault, bus error, etc.
Projects
None yet
Development

No branches or pull requests

2 participants