Bug 1459155
| Summary: | perl-Math-Pari-2.010809-5.fc27: FTBFS with Perl 5.26 on 32-bit platforms | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jitka Plesnikova <jplesnik> |
| Component: | perl-Math-Pari | Assignee: | Paul Howarth <paul> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | paul, perl-devel, ppisar, zonexpertconsulting |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Unspecified | ||
| URL: | https://koji.fedoraproject.org/koji/taskinfo?taskID=19846536 | ||
| Whiteboard: | |||
| Fixed In Version: | perl-Math-Pari-2.010809-5.fc27 libpari23-2.3.5-11.fc27 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-06-24 21:12:12 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jitka Plesnikova
2017-06-06 12:30:45 UTC
The failing subtest in t/00_Pari.t is subtest number 12:
$ perl -Iblib/{lib,arch} t/00_Pari.t |less
1..559
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
not ok 12
ok 13
[...]
The test does:
use Math::Pari;
$add = Math::Pari::loadPari("gadd");
test($add); # 8
test("$add" =~ /^CODE/); # 9
$b= &$add (34,67);
test($b); # 10
test(ref $b eq "Math::Pari"); # 11
test(Math::Pari::pari2iv($b)==101); # 12
The failure is the Math::Pari::pari2iv($b) value becomes 33554840 on i686.
The $b object is bless( do{\(my $o = 3067660500)}, 'Math::Pari' );
This code: use Math::Pari; #$b= Math::Pari::gadd (1,1); $b= Math::Pari::gadd (1,1); print "$b\n"; my $r = Math::Pari::pari2iv($b); print "$r\n"; prints: 2 9 If you uncomment the first assignment form gadd() call to $b, it will print correctly: 2 2 Assigning to different variable does not help. Replacing the first assignment with: $b=PARI 3.14; also helps. I rebuilt libpari23 without GMP (which is the same way upstream Math::Pari would build it when bundling it) and that has resolved the problem. |