Skip Menu |

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

Report information
The Basics
Id: 6355
Status: new
Priority: 0/
Queue: Math-Pari

People
Owner: Nobody in particular
Requestors: syseng [...] tradingscreen.com
Cc:
AdminCc:

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



Subject: Math::Pari problem on Fedora 1 (gcc-3.3.2)
We are building Math-Pari-2.010501 on a number of platforms, including Solaris 8, RedHat 9, and Fedora Core 1. On Fedora Core 1, the result of my $I = PARI('34579687721723281952451') is suspicious. After creating $I, I have examined it with print Dumper($I). SOL8: $VAR1 = bless( do{\(my $o = 5972912)}, 'Math::Pari' ); RH9 : $VAR1 = bless( do{\(my $o = 1082636520)}, 'Math::Pari' ); FC1 : $VAR1 = bless( do{\(my $o = '-1086555928')}, 'Math::Pari' ); $I on FC1 (Fedora) looks suspicious. I believe this is what is returned from sv2pari(). I believe this funny object is causing a segfault when creating a new object that contains this object (Crypt::Random). The only significant difference that I can see between RH9 and FC1 is that FC1 is using gcc-3.3.2 and RH9 is using gcc-3.2.2. Both platforms use glibc-2.3.2. An example break in Crypt::Random is: my $I = PARI('34579687721723281952451'); my $l = makerandom_itv(Lower => $I+1, Upper => 2*$I); Distribution: Math-Pari-2.010501 Using: pari-2.1.5 Perl: 5.8.3 Linux tkdli001 2.4.22-1.2115.nptlsmp #1 SMP Wed Oct 29 15:30:09 EST 2003 i686 i686 i386 GNU/Linux
#!/opt/perl-5.8.0/bin/perl -sw # # use Math::Pari qw(PARI); use Data::Dumper; #my $I = PARI('34579687721723281952451'); #print Dumper($I);
Date: Wed, 19 May 2004 11:16:30 -0700
From: Ilya Zakharevich <ilya [...] Math.Berkeley.EDU>
To: Guest via RT <bug-Math-Pari [...] rt.cpan.org>
CC: undisclosed-recipients: ;
Subject: Re: [cpan #6355] Math::Pari problem on Fedora 1 (gcc-3.3.2)
RT-Send-Cc:
On Wed, May 19, 2004 at 01:10:36AM -0400, Guest via RT wrote: Show quoted text
> SOL8: $VAR1 = bless( do{\(my $o = 5972912)}, 'Math::Pari' ); > RH9 : $VAR1 = bless( do{\(my $o = 1082636520)}, 'Math::Pari' ); > FC1 : $VAR1 = bless( do{\(my $o = '-1086555928')}, 'Math::Pari' ); > > $I on FC1 (Fedora) looks suspicious.
Why do you think so? Show quoted text
> I believe this is what is returned from sv2pari(). I believe this > funny object is causing a segfault when creating a new object that > contains this object (Crypt::Random).
Crypt::Random is absolutely broken in its Math::Pari interface. Hope this helps, Ilya
From: syseng [...] tradingscreen.com
It looks like the issue was fixed in Crypt-Random-1.21. I have now built it successfully, with tests. From the CHANGES: 1.21 May 24, 2004 * Patch by dorian to workaround Math::Pari's serialization problem. Thank you for your feedback earlier. -Aaron Sterr