Skip Menu |
Report information
Id: 128264
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: bartolin [at] gmx.de
Cc:
AdminCc:

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



Subject: [JVM] Failing test for calling .Num on Rat with denominator of zero
Download (untitled) / with headers
text/plain 263b
The following code started to fail on rakudo-j: $ perl6-j -e '(3/0).Num' java.lang.ArithmeticException: BigInteger divide by zero in block <unit> at -e line 1 The test still passed on commit a5c46bb7f4 (2016-05-25) and fails on commit 1ab1fb6f18 (2016-05-26).
Date: Fri, 27 May 2016 13:39:11 +0200
To: "Christian Bartolomaeus (via RT)" <perl6-bugs-followup [...] perl.org>
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
Subject: Re: [perl #128264] [JVM] Failing test for calling .Num on Rat with denominator of zero
Download (untitled) / with headers
text/plain 696b
Show quoted text
> On 27 May 2016, at 06:29, Christian Bartolomaeus (via RT) <perl6-bugs-followup@perl.org> wrote: > > # New Ticket Created by Christian Bartolomaeus > # Please include the string: [perl #128264] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=128264 > > > > The following code started to fail on rakudo-j: > > $ perl6-j -e '(3/0).Num' > java.lang.ArithmeticException: BigInteger divide by zero > in block <unit> at -e line 1 > > The test still passed on commit a5c46bb7f4 (2016-05-25) and fails on commit 1ab1fb6f18 (2016-05-26).
Could you provide me with an —ll-exception trace? Or is there none? Liz
RT-Send-CC: perl6-compiler [...] perl.org
On Fri May 27 04:40:05 2016, elizabeth wrote: Show quoted text
>
> > The following code started to fail on rakudo-j: > > > > $ perl6-j -e '(3/0).Num' > > java.lang.ArithmeticException: BigInteger divide by zero > > in block <unit> at -e line 1 > > > > The test still passed on commit a5c46bb7f4 (2016-05-25) and fails on > > commit 1ab1fb6f18 (2016-05-26).
> > Could you provide me with an —ll-exception trace? Or is there none?
Oh, there is. I was a bit in a hurry this morning. $ ./perl6-j --ll-exception -e '(3/0).Num' java.lang.ArithmeticException: BigInteger divide by zero in Num (gen/jvm/CORE.setting:19733) in <unit> (-e:1) in <unit-outer> (-e:1) in eval (gen/jvm/stage2/NQPHLL.nqp:1198) in eval (src/Perl6/Compiler.nqp:171) in (gen/jvm/stage2/NQPHLL.nqp:1288) in command_eval (gen/jvm/stage2/NQPHLL.nqp:1285) in command_eval (src/Perl6/Compiler.nqp:29) in command_line (gen/jvm/stage2/NQPHLL.nqp:1269) in MAIN (gen/jvm/main.nqp:37) in <mainline> (gen/jvm/main.nqp:33) in (gen/jvm/main.nqp) Actually the code starts to fail with commit 498d0a4ae4. Christian
Download (untitled) / with headers
text/plain 314b
On Fri, 27 May 2016 13:06:31 -0700, bartolin@gmx.de wrote: Show quoted text
> > > The following code started to fail on rakudo-j: > > > > > > $ perl6-j -e '(3/0).Num' > > > java.lang.ArithmeticException: BigInteger divide by zero > > > in block <unit> at -e line 1
This is fixed by https://github.com/perl6/nqp/commit/0b055b9266
RT-Send-CC: perl6-compiler [...] perl.org
Those tests are passing (again). I'm closing this ticket as 'resolved'.


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