Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-24 Thread Jan Groenewald
Hi

On Fri, Oct 22, 2010 at 05:30:35PM -0500, Mitesh Patel wrote:
 Would it help to try again with a PARI compiled with less aggressive
 optimizations than our default -O3?  For example,
 
 env SAGE_DEBUG=yes ./sage -f pari-2.3.5.p4.spkg
 dmesg | grep segfault | wc -l
 ./sage -t devel/sage/sage/interfaces/sage0.py
 dmesg | grep segfault

Does SAGE_DEBUG=yes lower -O3 to -O2?

Tests still pass, and I still get the segfault.

regards,
Jan


-- 
   .~. 
   /V\ Jan Groenewald
  /( )\www.aims.ac.za
  ^^-^^ 

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-24 Thread Jeroen Demeyer
On 2010-10-24 16:07, Jan Groenewald wrote:
 Does SAGE_DEBUG=yes lower -O3 to -O2?
Actually, -O0

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-23 Thread Jan Groenewald
Hi

On Sat, Oct 23, 2010 at 10:26:45AM -0700, leif wrote:
   * Ubuntu 9.04 x86 (32-bit Pentium 4 Prescott, gcc 4.3.3)
   * Ubuntu 9.04 x86_64 (Core2, gcc 4.3.3)
   * Ubuntu 10.04 x86_64 (Core2, gcc 4.4.3)
 
 P.S.: For Sage *4.5.3* (all built from scratch), I also get the
 segfault when testing sage/interfaces/sage0.py on the latter system,
 but *not* on the first or second.
 
 (The difference between the second and the third system is only the OS
 version and the GCC version; Sage was compiled with the same settings
 on both of these.)

All confirmations of the segfault have been on ubuntu 9.10 or ubuntu 10.04
using sage 4.5.2 to 4.6.X and on 64bit.

It would be interesting, on the same hardware, to try Ubuntu 10.10.
I'm not sure I'll get around to that this week.

regards,
Jan

-- 
   .~. 
   /V\ Jan Groenewald
  /( )\www.aims.ac.za
  ^^-^^ 

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-22 Thread Mitesh Patel
On Sun, Oct 17, 2010 at 07:16:58PM +0200, Jeroen Demeyer wrote:
 r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#env SAGE_CHECK=yes 
 sage -f pari-2.3.5.p4.spkg
 Force installing pari-2.3.5.p4.spkg 
 ...
 Finished installing pari-2.3.5.p4.spkg
 r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#dmesg|grep segfault|wc 
 -l; sage -t devel/sage/sage/interfaces/sage0.py; dmesg|grep segfault
 0
 sage -t  devel/sage/sage/interfaces/sage0.py
 [18.2 s]

 --
 All tests passed!
 Total time for all tests: 18.2 seconds
 [79234.381854] python[17992]: segfault at 7200ae ip 7f3fce620fa1 sp 
 7fff0a28cbe0 error 4 in libpari-gmp.so.2[7f3fce42c000+2c6000]

 Even if it is slow, is there a way to tell pari to write some output
 somewhere?

Would it help to try again with a PARI compiled with less aggressive
optimizations than our default -O3?  For example,

env SAGE_DEBUG=yes ./sage -f pari-2.3.5.p4.spkg
dmesg | grep segfault | wc -l
./sage -t devel/sage/sage/interfaces/sage0.py
dmesg | grep segfault

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-19 Thread Jan Groenewald
Hi

On Sun, Oct 17, 2010 at 07:16:58PM +0200, Jeroen Demeyer wrote:
 env SAGE_CHECK=yes ./sage -f
 http://sage.math.washington.edu/home/release/sage-4.6.alpha3/sage-4.6.alpha3/spkg/standard/pari-2.4.3.svn-12577.p7.spkg

This still caused a segfault for me in dmesg while doctests pass.
Is SAGE_CHECK supposed to give more output? Where?
Can I have pari give more output? I'm just guessing wildly here:

r...@capepoint:~#cd /usr/local/src/sage-4.5.3/spkg/standard/
r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#tar xjf  
pari-2.3.5.p4.spkg
r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#cd pari-2.3.5.p4/
r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard/pari-2.3.5.p4#grep -ri 
DEBUGLEVEL =  *
src/src/language/init.c:  DEBUGFILES = DEBUGLEVEL = DEBUGMEM = 0;
src/src/language/init.c:if (oldval = 0) { DEBUGLEVEL = oldval; oldval = 
-1; }
src/src/language/init.c:{ oldval = DEBUGLEVEL; DEBUGLEVEL = val; }
src/src/functions/programming/default: (debug,small):small:parens 
 DEBUGLEVEL = $2
r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard/pari-2.3.5.p4#sed -i 
's/DEBUGFILES = DEBUGLEVEL = DEBUGMEM = 0;/DEBUGFILES = DEBUGLEVEL = DEBUGMEM = 
9;/' src/src/language/init.c
r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard/pari-2.3.5.p4#cd ../
r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#sage -spkg pari-2.3.5.p4
Creating Sage package pari-2.3.5.p4
...
r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#env SAGE_CHECK=yes sage 
-f pari-2.3.5.p4.spkg
Force installing pari-2.3.5.p4.spkg
...
Finished installing pari-2.3.5.p4.spkg
r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#dmesg|grep segfault|wc 
-l; sage -t devel/sage/sage/interfaces/sage0.py; dmesg|grep segfault
0
sage -t  devel/sage/sage/interfaces/sage0.py  
 [18.2 s]
  
--
All tests passed!
Total time for all tests: 18.2 seconds
[79234.381854] python[17992]: segfault at 7200ae ip 7f3fce620fa1 sp 
7fff0a28cbe0 error 4 in libpari-gmp.so.2[7f3fce42c000+2c6000]

Even if it is slow, is there a way to tell pari to write some output
somewhere? 

regards,
Jan
-- 
   .~. 
   /V\ Jan Groenewald
  /( )\www.aims.ac.za
  ^^-^^ 

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-19 Thread John Cremona
Setting SAGE_CHECK=yes just means that after building the pari
library, the self-test routines are also run.  It does not affect Sage
after the new spkg is installed.

John

On Tue, Oct 19, 2010 at 1:32 PM, Jan Groenewald j...@aims.ac.za wrote:
 Hi

 On Sun, Oct 17, 2010 at 07:16:58PM +0200, Jeroen Demeyer wrote:
 env SAGE_CHECK=yes ./sage -f
 http://sage.math.washington.edu/home/release/sage-4.6.alpha3/sage-4.6.alpha3/spkg/standard/pari-2.4.3.svn-12577.p7.spkg

 This still caused a segfault for me in dmesg while doctests pass.
 Is SAGE_CHECK supposed to give more output? Where?
 Can I have pari give more output? I'm just guessing wildly here:

 r...@capepoint:~#cd /usr/local/src/sage-4.5.3/spkg/standard/
 r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#tar xjf  
 pari-2.3.5.p4.spkg
 r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#cd pari-2.3.5.p4/
 r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard/pari-2.3.5.p4#grep -ri 
 DEBUGLEVEL =  *
 src/src/language/init.c:  DEBUGFILES = DEBUGLEVEL = DEBUGMEM = 0;
 src/src/language/init.c:    if (oldval = 0) { DEBUGLEVEL = oldval; oldval = 
 -1; }
 src/src/language/init.c:    { oldval = DEBUGLEVEL; DEBUGLEVEL = val; }
 src/src/functions/programming/default: (debug,small):small:parens           
    DEBUGLEVEL = $2
 r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard/pari-2.3.5.p4#sed -i 
 's/DEBUGFILES = DEBUGLEVEL = DEBUGMEM = 0;/DEBUGFILES = DEBUGLEVEL = DEBUGMEM 
 = 9;/' src/src/language/init.c
 r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard/pari-2.3.5.p4#cd ../
 r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#sage -spkg 
 pari-2.3.5.p4
 Creating Sage package pari-2.3.5.p4
 ...
 r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#env SAGE_CHECK=yes 
 sage -f pari-2.3.5.p4.spkg
 Force installing pari-2.3.5.p4.spkg
 ...
 Finished installing pari-2.3.5.p4.spkg
 r...@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#dmesg|grep segfault|wc 
 -l; sage -t devel/sage/sage/interfaces/sage0.py; dmesg|grep segfault
 0
 sage -t  devel/sage/sage/interfaces/sage0.py
         [18.2 s]

 --
 All tests passed!
 Total time for all tests: 18.2 seconds
 [79234.381854] python[17992]: segfault at 7200ae ip 7f3fce620fa1 sp 
 7fff0a28cbe0 error 4 in libpari-gmp.so.2[7f3fce42c000+2c6000]

 Even if it is slow, is there a way to tell pari to write some output
 somewhere?

 regards,
 Jan
 --
   .~.
   /V\     Jan Groenewald
  /( )\    www.aims.ac.za
  ^^-^^

 --
 To post to this group, send an email to sage-devel@googlegroups.com
 To unsubscribe from this group, send an email to 
 sage-devel+unsubscr...@googlegroups.com
 For more options, visit this group at 
 http://groups.google.com/group/sage-devel
 URL: http://www.sagemath.org


-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-18 Thread Jan Groenewald
Hi

On Sun, Oct 17, 2010 at 09:37:55AM +0200, Jan Groenewald wrote:
 Looking for libpari-gmp.so, I found these:
 r...@capepoint:/usr/local/src/sage-4.5.3/local/lib#ls -l libpari*
 -rwxr-xr-x 1 root root 3160120 Oct 11 17:06 libpari-gmp.so.2
 -rwxr-xr-x 1 root root 3160120 Oct 11 17:06 libpari-gmp.so.2.3.5
 -rw-r--r-- 1 root root 5011724 Oct 11 17:06 libpari.a
 -rwxr-xr-x 1 root root 3160120 Oct 11 17:06 libpari.so
 r...@capepoint:/usr/local/src/sage-4.5.3/local/lib#
 
 How come they are not symlinks to one? Why three copies
 of the same thing?
 

Also, why does this depend on the system libgmp and not the sage libgmp?

r...@capepoint:/usr/local/src/sage-4.5.3/local/lib#ldd libpari-gmp.so.2
linux-vdso.so.1 =  (0x7fff3a5ff000)
libc.so.6 = /lib/libc.so.6 (0x7f1ecb41b000)
libdl.so.2 = /lib/libdl.so.2 (0x7f1ecb217000)
libm.so.6 = /lib/libm.so.6 (0x7f1ecaf93000)
libgmp.so.3 = /usr/lib/libgmp.so.3 (0x7f1ecad33000)  #-- over here
/lib64/ld-linux-x86-64.so.2 (0x7f1ecbcca000)
r...@capepoint:/usr/local/src/sage-4.5.3/local/lib#ls -l libgmp.so.3
lrwxrwxrwx 1 root root 15 Sep 13 08:19 libgmp.so.3 - libgmp.so.3.4.6
r...@capepoint:/usr/local/src/sage-4.5.3/local/lib#

regards,
Jan
-- 
   .~. 
   /V\ Jan Groenewald
  /( )\www.aims.ac.za
  ^^-^^ 

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-18 Thread Jeroen Demeyer
On 2010-10-18 13:43, Jan Groenewald wrote:
 Also, why does this depend on the system libgmp and not the sage libgmp?

This depends on the setting of LD_LIBRARY_FLAG.  If you do the same
within sage -sh you should get the correct library.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-18 Thread François Bissey
 Hi
 
 On Sun, Oct 17, 2010 at 09:37:55AM +0200, Jan Groenewald wrote:
  Looking for libpari-gmp.so, I found these:
  r...@capepoint:/usr/local/src/sage-4.5.3/local/lib#ls -l libpari*
  -rwxr-xr-x 1 root root 3160120 Oct 11 17:06 libpari-gmp.so.2
  -rwxr-xr-x 1 root root 3160120 Oct 11 17:06 libpari-gmp.so.2.3.5
  -rw-r--r-- 1 root root 5011724 Oct 11 17:06 libpari.a
  -rwxr-xr-x 1 root root 3160120 Oct 11 17:06 libpari.so
  r...@capepoint:/usr/local/src/sage-4.5.3/local/lib#
  
  How come they are not symlinks to one? Why three copies
  of the same thing?
 
 Also, why does this depend on the system libgmp and not the sage libgmp?
 
 r...@capepoint:/usr/local/src/sage-4.5.3/local/lib#ldd libpari-gmp.so.2
 linux-vdso.so.1 =  (0x7fff3a5ff000)
   libc.so.6 = /lib/libc.so.6 (0x7f1ecb41b000)
   libdl.so.2 = /lib/libdl.so.2 (0x7f1ecb217000)
   libm.so.6 = /lib/libm.so.6 (0x7f1ecaf93000)
   libgmp.so.3 = /usr/lib/libgmp.so.3 (0x7f1ecad33000)  #-- over here
   /lib64/ld-linux-x86-64.so.2 (0x7f1ecbcca000)
 r...@capepoint:/usr/local/src/sage-4.5.3/local/lib#ls -l libgmp.so.3
 lrwxrwxrwx 1 root root 15 Sep 13 08:19 libgmp.so.3 - libgmp.so.3.4.6
 r...@capepoint:/usr/local/src/sage-4.5.3/local/lib#
 
Did you do a source local/bin/sage-env before running ldd?

Francois

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-18 Thread Jan Groenewald
Hi

On Mon, Oct 18, 2010 at 01:46:48PM +0200, Jeroen Demeyer wrote:
 On 2010-10-18 13:43, Jan Groenewald wrote:
  Also, why does this depend on the system libgmp and not the sage libgmp?
 
 This depends on the setting of LD_LIBRARY_FLAG.  If you do the same
 within sage -sh you should get the correct library.

OK, right

SAGE_ROOT=/usr/local/src/sage-4.5.3
(sage subshell) capepoint:lib root$ ldd libpari-gmp.so.2
linux-vdso.so.1 =  (0x7fff9dd55000)
libc.so.6 = /lib/libc.so.6 (0x7f2efbfb6000)
libdl.so.2 = /lib/libdl.so.2 (0x7f2efbdb2000)
libm.so.6 = /lib/libm.so.6 (0x7f2efbb2e000)
libgmp.so.3 = /usr/local/src/sage-4.5.3/local/lib/libgmp.so.3 
(0x7f2efb8bc000)
/lib64/ld-linux-x86-64.so.2 (0x7f2efc85e000)
SAGE_ROOT=/usr/local/src/sage-4.5.3
(sage subshell) capepoint:lib root$ 

Thanks
Jan

-- 
   .~. 
   /V\ Jan Groenewald
  /( )\www.aims.ac.za
  ^^-^^ 

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-18 Thread Jan Groenewald
Hi

On Mon, Oct 18, 2010 at 07:28:23AM -0500, Jason Grout wrote:
 As an offhand idea, with the disclaimer that I haven't read this
 entire thread, but an idea that has caused such problems before.
 Did you move the Sage directory?  There are still lots of loose ends
 that are left dangling when the build directory is used (or a binary
 distribution is used) (e.g., the pkgconfig files that #9210 takes
 care of).

Nope, sorry.

regards,
Jan

-- 
   .~. 
   /V\ Jan Groenewald
  /( )\www.aims.ac.za
  ^^-^^ 

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-17 Thread Jan Groenewald
Hi

As I've had one external confirmation, more than one 
sage version, and several laptops here, I'll continue to think
about this. 

Looking for libpari-gmp.so, I found these:
r...@capepoint:/usr/local/src/sage-4.5.3/local/lib#ls -l libpari*
-rwxr-xr-x 1 root root 3160120 Oct 11 17:06 libpari-gmp.so.2
-rwxr-xr-x 1 root root 3160120 Oct 11 17:06 libpari-gmp.so.2.3.5
-rw-r--r-- 1 root root 5011724 Oct 11 17:06 libpari.a
-rwxr-xr-x 1 root root 3160120 Oct 11 17:06 libpari.so
r...@capepoint:/usr/local/src/sage-4.5.3/local/lib#

How come they are not symlinks to one? Why three copies
of the same thing?

Would it help to somehow turn on debugging info from
libpari-gmp.so?  Not sure how yet...

regards,
Jan

-- 
   .~. 
   /V\ Jan Groenewald
  /( )\www.aims.ac.za
  ^^-^^ 

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-17 Thread John Cremona
On two different 64-bit ubuntu machines:

1 works fine:

j...@fermat%uname -a
Linux fermat 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC
2010 x86_64 GNU/Linux
j...@fermat%  sage -v
| Sage Version 4.6.alpha3, Release Date: 2010-10-08  |
* Warning: this is a prerelease version, and it may be unstable. *
j...@fermat%  sage -t devel/sage/sage/interfaces/sage0.py
sage -t  devel/sage/sage/interfaces/sage0.py

 [13.8 s]

--
All tests passed!
Total time for all tests: 13.8 seconds
j...@fermat%  dmesg|grep pari
j...@fermat%


1 does not:

j...@selmer%grep name /proc/cpuinfo  | uniq
model name  : Quad-Core AMD Opteron(tm) Processor 8378
j...@selmer%uname -a
Linux selmer 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 22:12:12 UTC
2009 x86_64 GNU/Linux
j...@selmer%  sage -v
| Sage Version 4.6.alpha3, Release Date: 2010-10-08  |
* Warning: this is a prerelease version, and it may be unstable. *
j...@selmer%  sage -t devel/sage/sage/interfaces/sage0.py
sage -t  devel/sage/sage/interfaces/sage0.py
 [11.5 s]

--
All tests passed!
Total time for all tests: 11.5 seconds
j...@selmer%  dmesg|grep pari
[8562085.592129] gp[1128] trap invalid opcode ip:7f7f003b5be7
sp:7fff08dcd840 error:0 in libpari-gmp-2.4.so.3[7f7f000d3000+421000]
[8562093.886034] gp[26164] trap invalid opcode ip:7fafab0bdbe7
sp:7fffb3ad7540 error:0 in libpari-gmp-2.4.so.3[7fafaaddb000+421000]

John

On Fri, Oct 15, 2010 at 9:48 AM, Jan Groenewald j...@aims.ac.za wrote:
 Hi

 Summary: On a mixture of sage 4.5.2, 4.5.3, and 4.6alpha3

 Linux:
 i7 64bit: sefgault
 E8400 64bit: segfault
 T4300 64bit: segfault
 T3200 64bit: segfault
 T2300 32bit: no segfault

 OS X 10.6 (Marshall: 32 or 64 bit?): no segfault

 Conjecture: It is a Linux specific 64bit problem.

 Can some people on 32bit and 64bit and different CPUs (amd as well)
 send in the output of

   grep name /proc/cpuifo
   uname -a
   sage -v
   sage -t devel/sage/sage/interfaces/sage0.py
   dmesg|grep pari

 regards,
 Jan

 --
   .~.
   /V\     Jan Groenewald
  /( )\    www.aims.ac.za
  ^^-^^

 --
 To post to this group, send an email to sage-devel@googlegroups.com
 To unsubscribe from this group, send an email to 
 sage-devel+unsubscr...@googlegroups.com
 For more options, visit this group at 
 http://groups.google.com/group/sage-devel
 URL: http://www.sagemath.org


-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-17 Thread Jeroen Demeyer
Very strange that these errors do not result in a failing doctest...


John, Jan:

On the failing machines, could you install the PARI spkg with checking
enabled?  i.e. please do

env SAGE_CHECK=yes ./sage -f
http://sage.math.washington.edu/home/release/sage-4.6.alpha3/sage-4.6.alpha3/spkg/standard/pari-2.4.3.svn-12577.p7.spkg

Note that this might mess up your Sage installation, so do this only on
a copy of Sage that you don't need anymore.


Jeroen.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-17 Thread John Cremona
After doing that the doctest still passes, and I still get

j...@selmer%dmesg|grep pari
[8562085.592129] gp[1128] trap invalid opcode ip:7f7f003b5be7
sp:7fff08dcd840 error:0 in libpari-gmp-2.4.so.3[7f7f000d3000+421000]
[8562093.886034] gp[26164] trap invalid opcode ip:7fafab0bdbe7
sp:7fffb3ad7540 error:0 in libpari-gmp-2.4.so.3[7fafaaddb000+421000]

but I think these are the same messages as before, so things are now working?

John



On Sun, Oct 17, 2010 at 7:16 PM, Jeroen Demeyer jdeme...@cage.ugent.be wrote:
 Very strange that these errors do not result in a failing doctest...


 John, Jan:

 On the failing machines, could you install the PARI spkg with checking
 enabled?  i.e. please do

 env SAGE_CHECK=yes ./sage -f
 http://sage.math.washington.edu/home/release/sage-4.6.alpha3/sage-4.6.alpha3/spkg/standard/pari-2.4.3.svn-12577.p7.spkg

 Note that this might mess up your Sage installation, so do this only on
 a copy of Sage that you don't need anymore.


 Jeroen.

 --
 To post to this group, send an email to sage-devel@googlegroups.com
 To unsubscribe from this group, send an email to 
 sage-devel+unsubscr...@googlegroups.com
 For more options, visit this group at 
 http://groups.google.com/group/sage-devel
 URL: http://www.sagemath.org


-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-17 Thread Jeroen Demeyer
On 2010-10-17 20:09, John Cremona wrote:
 After doing that the doctest still passes, and I still get
 
 j...@selmer%dmesg|grep pari
 [8562085.592129] gp[1128] trap invalid opcode ip:7f7f003b5be7
 sp:7fff08dcd840 error:0 in libpari-gmp-2.4.so.3[7f7f000d3000+421000]
 [8562093.886034] gp[26164] trap invalid opcode ip:7fafab0bdbe7
 sp:7fffb3ad7540 error:0 in libpari-gmp-2.4.so.3[7fafaaddb000+421000]
 
 but I think these are the same messages as before, so things are now working?

If that's the code, I absolutely have no explanation for this.  The
newly installed spkg should be the same as the old, so...???

Jeroen

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-17 Thread Jan Groenewald
Hi

On Sun, Oct 17, 2010 at 08:26:08PM +0200, Jeroen Demeyer wrote:
 On 2010-10-17 20:09, John Cremona wrote:
  After doing that the doctest still passes, and I still get
  
  j...@selmer%dmesg|grep pari
  [8562085.592129] gp[1128] trap invalid opcode ip:7f7f003b5be7
  sp:7fff08dcd840 error:0 in libpari-gmp-2.4.so.3[7f7f000d3000+421000]
  [8562093.886034] gp[26164] trap invalid opcode ip:7fafab0bdbe7
  sp:7fffb3ad7540 error:0 in libpari-gmp-2.4.so.3[7fafaaddb000+421000]
  
  but I think these are the same messages as before, so things are now 
  working?
 
 If that's the code, I absolutely have no explanation for this.  The
 newly installed spkg should be the same as the old, so...???
 

I still get the segfault with the new spkg.

John's result is perhaps valuable. I don't know how.

Jan


-- 
   .~. 
   /V\ Jan Groenewald
  /( )\www.aims.ac.za
  ^^-^^ 

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-15 Thread Jan Groenewald
Hi

Summary: On a mixture of sage 4.5.2, 4.5.3, and 4.6alpha3

Linux:
i7 64bit: sefgault
E8400 64bit: segfault
T4300 64bit: segfault
T3200 64bit: segfault
T2300 32bit: no segfault

OS X 10.6 (Marshall: 32 or 64 bit?): no segfault

Conjecture: It is a Linux specific 64bit problem.

Can some people on 32bit and 64bit and different CPUs (amd as well) 
send in the output of

   grep name /proc/cpuifo
   uname -a
   sage -v
   sage -t devel/sage/sage/interfaces/sage0.py
   dmesg|grep pari

regards,
Jan

-- 
   .~. 
   /V\ Jan Groenewald
  /( )\www.aims.ac.za
  ^^-^^ 

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-15 Thread Jan Groenewald
Hi

On Fri, Oct 15, 2010 at 03:02:07AM -0500, Jason Grout wrote:
 Hope that helps.

So it is NOT 64bit specific. Perhaps it is Ubuntu specific.

Jan

-- 
   .~. 
   /V\ Jan Groenewald
  /( )\www.aims.ac.za
  ^^-^^ 

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-15 Thread Jan Groenewald
Hi

 On Fri, Oct 15, 2010 at 03:02:07AM -0500, Jason Grout wrote:
  Hope that helps.
 
 So it is NOT 64bit specific. Perhaps it is Ubuntu specific.

Uhm no, Jason had ubuntu there.

Jan
-- 
   .~. 
   /V\ Jan Groenewald
  /( )\www.aims.ac.za
  ^^-^^ 

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: libpari segfault related to 64bit?

2010-10-15 Thread Jeroen Demeyer
Also, I can NOT reproduce the segfault on the following system with
sage-4.6.alpha3:

$ Linux arcanis 2.6.32-gentoo-r7 #5 SMP Thu Jun 10 23:07:26 CEST 2010
x86_64 Intel(R) Core(TM)2 Duo CPU T5870 @ 2.00GHz GenuineIntel GNU/Linux
$ gcc --version
gcc-4.4.3 (Gentoo 4.4.3-r2 p1.2) 4.4.3
Copyright (C) 2010 Free Software Foundation, Inc.

Jeroen.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org