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
[5.19.6] Failing M::BI tests, ppc, -Duselongdouble #13464
Comments
From @sisyphusReply-To: sisyphus1@optusnet.com.au This is a bug report for perl from sisyphus1@optusnet.com.au, I get the following test failures on a ppc machine running debian wheezy, dist/Math-BigInt/t/bare_mbi.t: not ok 3467 dist/Math-BigInt/t/bigintpm.t: not ok 3461 There's another test script in the same directory that fails with The failure arises because perl sets the value 1e+129 incorrectly. Unpacking 5ab7151b377c247e5707b80b00474380 In the correct representation, I think the trailing 6 bits are discarded In base 2, correct form is: whereas, perl assigns: If perl assigned correctly then these tests would pass, as is. The same failures on this platform occurred during 'make test' for 5.18.1. I've seen mention of using POSIX::strtod to assign to NVs correctly. Flags: Site configuration information for perl 5.19.6: Configured by sisyphus-sis at Wed Dec 4 00:45:28 EST 2013. Summary of my perl5 (revision 5 version 19 subversion 6) configuration: Platform: @INC for perl 5.19.6: Environment for perl 5.19.6: |
From @jkeenanOn Wed, 11 Dec 2013 10:19:03 GMT, sisyphus wrote:
1. Does this problem still exist? 2. Am I correct in thinking that it's specific to the ppc64 architecture? (I can't reproduce it on x86_64-linux-ld.) Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @sisyphus-----Original Message-----
Yes, I think it's still there with 5.25.8. I see occurrences of 1e+129 in cpan/Math-BigInt/t/bare_mbi ....................................
Yes, I think so. $ perl -V:longdblkind It's hard to find a value of the form "1e+X" (where X is in the vicinity of $ perl -le '$x = 1e+129;print $x' I haven't seen anyone confirm the error, though there probably aren't a Cheers, |
From @sisyphusOn Wed, 11 Dec 2013 02:19:03 -0800, sisyphus wrote:
Actually, I don't think 5ab7151b377c247e5707b80b00474440 is correct either. Having spent some time tonight playing around with various ad-hoc values, it seems that strtold() is little more reliable than perl when it comes to assigning these values. Cheers, |
Migrated from rt.perl.org#120758 (status was 'open')
Searchable as RT120758$
The text was updated successfully, but these errors were encountered: