Skip Menu |

This queue is for tickets about the Math-BigInt CPAN distribution.

Report information
The Basics
Id: 110444
Status: open
Priority: 0/
Queue: Math-BigInt

People
Owner: Nobody in particular
Requestors: TRIZEN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.999710
Fixed in: (no value)



Subject: Infinite loop for $x->blog($y) with global precision set
For certain values, when the result is not a whole number, Math::BigFloat gets stuck into an infinite loop and produces the following infinite warning: Use of uninitialized value in numeric le (<=) at /usr/share/perl5/site_perl/Math/BigFloat.pm line 1528. Use of uninitialized value in numeric le (<=) at /usr/share/perl5/site_perl/Math/BigFloat.pm line 1528. Use of uninitialized value in numeric le (<=) at /usr/share/perl5/site_perl/Math/BigFloat.pm line 1528. ... The following code reproduces the bug: ===BEGIN-CODE=== use Math::BigFloat; Math::BigFloat->precision(-4); # commenting this, works OK my $x = Math::BigFloat->new(8); my $y = Math::BigFloat->new(4); CORE::say $x->blog($y); ===END-CODE===
I started digging into this, and the first thing I discovered is a bug now reported as CPAN RT #124790. Fixing that bug does not entirely solve this bug, but fixing CPAN RT #124790 is a part of the solution for this bug.