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

Weird spectest failure in S03-metaops/reduce.t (probably wrong multi sub selected) #5630

Closed
p6rt opened this issue Aug 31, 2016 · 4 comments
Closed
Labels
JVM Related to Rakudo-JVM

Comments

@p6rt
Copy link

p6rt commented Aug 31, 2016

Migrated from rt.perl.org#129153 (status was 'resolved')

Searchable as RT129153$

@p6rt
Copy link
Author

p6rt commented Aug 31, 2016

From @usev6

With rakudo commit b1c444f062 the following test started to fail in S03-metaops/reduce.t​:

is ([&&] 1,|(2,3,4)), 4;

The error message (with --ll-exception) is​:

Type check failed in binding to &b; expected Callable but got Int (2)
  in throw (gen/jvm/CORE.setting​:23969)
  in (gen/jvm/CORE.setting​:26240)
  in infix​:<&&> (gen/jvm/CORE.setting​:10104)
  in infix​:<&&> (gen/jvm/CORE.setting​:10102)
  in (gen/jvm/CORE.setting​:34100)
  in (t/spec/S03-metaops/reduce.rakudo.jvm​:689)
  in <unit> (t/spec/S03-metaops/reduce.rakudo.jvm​:687)
  in <unit-outer> (t/spec/S03-metaops/reduce.rakudo.jvm​:1)
  in eval (gen/jvm/stage2/NQPHLL.nqp​:1201)
  in evalfiles (gen/jvm/stage2/NQPHLL.nqp​:1404)
  in command_eval (gen/jvm/stage2/NQPHLL.nqp​:1298)
  in command_eval (src/Perl6/Compiler.nqp​:27)
  in command_line (gen/jvm/stage2/NQPHLL.nqp​:1272)
  in MAIN (gen/jvm/main.nqp​:47)
  in <mainline> (gen/jvm/main.nqp​:38)
  in (gen/jvm/main.nqp)

The error does not happen when the code (or test) in question is run stand alone​:

$ ./perl6-j -Ilib -e 'use Test; is ([&&] 1,|(2,3,4)), 4'
ok 1 -

It looks like the wrong multi sub infix​:<&&> is selected. The backtrace points to this line (from src/core/Bool.pm)​:

multi sub infix​:<&&>(Mu \a, &b) { a && b() }

Please note​: This is not the first time rakudo-j gets confused about multi sub selection​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=128580

I'm going to fudge (skip) the test in question.

@p6rt
Copy link
Author

p6rt commented Dec 12, 2017

From @usev6

There was something wrong with the multi cache on the JVM backend. Fixed with Raku/nqp@7eaebf5abd

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Dec 12, 2017

From @usev6

There was something wrong with the multi cache on the JVM backend. Fixed with Raku/nqp@7eaebf5abd

I'm closing this ticket as 'resolved'.

@p6rt
Copy link
Author

p6rt commented Dec 12, 2017

@usev6 - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Dec 12, 2017
@p6rt p6rt added the JVM Related to Rakudo-JVM label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JVM Related to Rakudo-JVM
Projects
None yet
Development

No branches or pull requests

1 participant