Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Bigrat segfaults on irrational numbers #10229
Created by firstname.lastname@example.org
$ perl -Mbigrat -e 'sqrt(2)'
This happens on 64 bit linux (debian) and Mac OS X (Snow Leopard). Both are
email@example.com (via RT) wrote:
Here's what 5.11.5 says:
$ perl5.11.5 -Mbigrat -e 'sqrt(2)'
And the backtrace.
#0 0x92a30732 in kill$UNIX2003 ()
On Fri, Mar 12, 2010 at 09:05:59AM -0800, Michael G Schwern wrote:
The problem seems to be that a Math::BigInt object (from the value 2)
Line 2097 of Math::BigFloat then attempts to copy the mantissa (_m)
So x at Math::BigInt::FastCalc line 117 is an undef SV, the SvRV()