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

Failing test for calling .Num on Rat with denominator of zero #5339

Closed
p6rt opened this issue May 27, 2016 · 8 comments
Closed

Failing test for calling .Num on Rat with denominator of zero #5339

p6rt opened this issue May 27, 2016 · 8 comments
Labels
JVM Related to Rakudo-JVM

Comments

@p6rt
Copy link

p6rt commented May 27, 2016

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

Searchable as RT128264$

@p6rt
Copy link
Author

p6rt commented May 27, 2016

From @usev6

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).

@p6rt
Copy link
Author

p6rt commented May 27, 2016

From @lizmat

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-archive.perl.org/perl6/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

@p6rt
Copy link
Author

p6rt commented May 27, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented May 27, 2016

From @usev6

On Fri May 27 04​:40​:05 2016, elizabeth wrote​:

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

@p6rt
Copy link
Author

p6rt commented Jan 3, 2017

From @usev6

On Fri, 27 May 2016 13​:06​:31 -0700, bartolin@​gmx.de wrote​:

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 Raku/nqp@0b055b9266

@p6rt
Copy link
Author

p6rt commented Jan 3, 2017

From @usev6

Those tests are passing (again). I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Jan 3, 2017

From @usev6

Those tests are passing (again). I'm closing this ticket as 'resolved'.

@p6rt
Copy link
Author

p6rt commented Jan 3, 2017

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

@p6rt p6rt closed this as completed Jan 3, 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