Skip Menu |
Report information
Id: 124279
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: davidnmfarrell [at] gmail.com
masak <cmasak [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: JVM



To: rakudobug [...] perl.org
Subject: [BUG] Failure on the JVM backend having to do with 'gather' and 'last' and UnwindException in Rakudo
From: Carl Mäsak <cmasak [...] gmail.com>
Date: Fri, 10 Apr 2015 22:03:53 +0200
Download (untitled) / with headers
text/plain 998b
<TimToady> r: gather loop { take my $foo; last; } <camelia> rakudo-moar 5a38b2: ( no output ) <camelia> ..rakudo-jvm 5a38b2: OUTPUT«cannot connect to eval server: Connection refused␤» <TimToady> masak: ^^^ there's a minimal test case to blow up perl6-j <TimToady> masak: (that produces the error at https://gist.github.com/anonymous/9dc73118674e46248155) Exception in thread "main" org.perl6.nqp.runtime.UnwindException at org.perl6.nqp.runtime.ThreadContext.<init>(ThreadContext.java:120) at org.perl6.nqp.runtime.GlobalContext.getCurrentThreadContext(GlobalContext.java:335) at org.perl6.nqp.runtime.GlobalContext.<init>(GlobalContext.java:250) at org.perl6.nqp.runtime.CompilationUnit.enterFromMain(CompilationUnit.java:56) at perl6.main(gen/jvm/main.nqp) * masak submits rakudobug <FROGGS> masak: hold on <FROGGS> might be the same as https://rt.perl.org/Ticket/Display.html?id=122134 <TimToady> it might at that <TimToady> otoh, if I remove the gather, it passes <TimToady> so maybe not
Download (untitled) / with headers
text/plain 827b
I believe that some tests in S32-list/rotor.t (which use method 'rotor' with :partial) are dying for the same reason on rakudo.jvm Method 'rotor' uses a construct like 'gather for @bar { take $foo; last}' internally. $ perl6-j -e '(1..3).rotor(2, :partial)' Exception in thread "main" org.perl6.nqp.runtime.UnwindException at org.perl6.nqp.runtime.ThreadContext.<init>(ThreadContext.java:120) at org.perl6.nqp.runtime.GlobalContext.getCurrentThreadContext(GlobalContext.java:340) at org.perl6.nqp.runtime.GlobalContext.<init>(GlobalContext.java:253) at org.perl6.nqp.runtime.CompilationUnit.enterFromMain(CompilationUnit.java:56) at perl6.main(gen/jvm/main.nqp) The evaluation runs fine when :partial is not needed: $ perl6-j -e 'say (1..2).rotor(2, :partial)' 1 2 $ perl6-j -e 'say (1..4).rotor(2, :partial)' 1 2 3 4
RT-Send-CC: perl6-compiler [...] perl.org
To me this looks like the same problem as https://rt.perl.org/Ticket/Display.html?id=124279


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org