* Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
* Linux muizenberg 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:05:27 UTC 2010 x86_64 GNU/Linux, Ubuntu 10.04.1, gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
* sage-4.5.3 from source, optional database*, gap*, biopython and jsmath
* with patches #9720v4, #9803v2, #9802v2, and #9754v7
sage -testall
...
----------------------------------------------------------------------
All tests passed!
Total time for all tests: 8180.6 seconds
Please see /root/.sage//tmp/test.log for the complete log from this test.
However, I happened to notice something in dmesg around the same time
0 jan@muizenberg:/var/autofs/misc/home/jan$dmesg |grep pari
[ 8319.576447] python[21505]: segfault at c40000007b ip 00007fee3338efa1 sp 00007fff95d79530 error 4 in libpari-gmp.so.2[7fee3319a000+2c6000]
I'm not sure I can recreate that, but perhaps someone here is interested?
regards,
Jan
--
.~.
/V\ Jan Groenewald
/( )\ www.aims.ac.za
^^-^^
IMHO we really should be recording the times of doctests so we can see if
there's any correlation to the time of a doctest failure and system log files.
Dave
Could the failure have been from another Sage session, i.e. not the one
doing the test? If all tests passed, I guess there was no segfault
during the tests (or something is wrong with the doctesting framework).
Jeroen.
On Tue, Oct 12, 2010 at 02:12:58PM +0200, Jeroen Demeyer wrote:
> Could the failure have been from another Sage session, i.e. not the one
> doing the test? If all tests passed, I guess there was no segfault
> during the tests (or something is wrong with the doctesting framework).
There was no other sage running, nor pari.
I am currently waiting on another sage -testall on the same CPU.
It had no segfault in dmesg before, I will check after.
Testall is currently this far...
sage -t "devel/sage/sage/coding/source_coding/all.py"
[0.0 s]
sage -t "devel/sage/sage/coding/source_coding/__init__.py"
[0.0 s]
sage -t "devel/sage/sage/coding/linear_code.py"
It is already there:
0 jan@capepoint:~$dmesg |grep pari
[ 8217.960337] python[12786]: segfault at 829 ip 00007feeafa24fa1 sp 00007ffff3d54b90 error 4 in libpari-gmp.so.2[7feeaf830000+2c6000]
0 root@capepoint:~/.sage/tmp#grep pari test.log
sage -t "devel/sage/doc/en/numerical_sage/comparison_to_cython.rst"
sage -t "devel/sage/doc/en/reference/sage/libs/pari/gen.rst"
sage -t "devel/sage/sage/rings/pari_ring.py"
sage -t "devel/sage/sage/rings/finite_rings/finite_field_ext_pari.py"
sage -t "devel/sage/sage/rings/finite_rings/element_ext_pari.py"
sage -t "devel/sage/sage/groups/pari_group.py"
sage -t "devel/sage/sage/libs/pari/setlvalue.pxi"
sage -t "devel/sage/sage/libs/pari/gen_py.py"
sage -t "devel/sage/sage/libs/pari/decl.pxi"
sage -t "devel/sage/sage/libs/pari/gen.pyx"
sage -t "devel/sage/sage/libs/pari/misc.pxi"
sage -t "devel/sage/sage/libs/pari/pari_err.pxi"
sage -t "devel/sage/sage/libs/pari/all.py"
sage -t "devel/sage/sage/libs/pari/gen.pxi"
sage -t "devel/sage/sage/libs/pari/to_gen.pxi"
sage -t "devel/sage/sage/libs/pari/__init__.py"
How do I run just those tests one by one?
On Tue, Oct 12, 2010 at 03:34:46PM +0200, Jan Groenewald wrote:
> 0 root@capepoint:~/.sage/tmp#grep pari test.log
> sage -t "devel/sage/doc/en/numerical_sage/comparison_to_cython.rst"
> sage -t "devel/sage/doc/en/reference/sage/libs/pari/gen.rst"
> sage -t "devel/sage/sage/rings/pari_ring.py"
> sage -t "devel/sage/sage/rings/finite_rings/finite_field_ext_pari.py"
> sage -t "devel/sage/sage/rings/finite_rings/element_ext_pari.py"
> sage -t "devel/sage/sage/groups/pari_group.py"
> sage -t "devel/sage/sage/libs/pari/setlvalue.pxi"
> sage -t "devel/sage/sage/libs/pari/gen_py.py"
> sage -t "devel/sage/sage/libs/pari/decl.pxi"
> sage -t "devel/sage/sage/libs/pari/gen.pyx"
> sage -t "devel/sage/sage/libs/pari/misc.pxi"
> sage -t "devel/sage/sage/libs/pari/pari_err.pxi"
> sage -t "devel/sage/sage/libs/pari/all.py"
> sage -t "devel/sage/sage/libs/pari/gen.pxi"
> sage -t "devel/sage/sage/libs/pari/to_gen.pxi"
> sage -t "devel/sage/sage/libs/pari/__init__.py"
>
> How do I run just those tests one by one?
Particularly stupid question ;(
Well, don't forget sage -t -verbose filename
Jason
On Tue, Oct 12, 2010 at 03:38:02PM +0200, Jan Groenewald wrote:
> > 0 root@capepoint:~/.sage/tmp#grep pari test.log
> > sage -t "devel/sage/doc/en/numerical_sage/comparison_to_cython.rst"
> > sage -t "devel/sage/doc/en/reference/sage/libs/pari/gen.rst"
> > sage -t "devel/sage/sage/rings/pari_ring.py"
> > sage -t "devel/sage/sage/rings/finite_rings/finite_field_ext_pari.py"
> > sage -t "devel/sage/sage/rings/finite_rings/element_ext_pari.py"
> > sage -t "devel/sage/sage/groups/pari_group.py"
> > sage -t "devel/sage/sage/libs/pari/setlvalue.pxi"
> > sage -t "devel/sage/sage/libs/pari/gen_py.py"
> > sage -t "devel/sage/sage/libs/pari/decl.pxi"
> > sage -t "devel/sage/sage/libs/pari/gen.pyx"
> > sage -t "devel/sage/sage/libs/pari/misc.pxi"
> > sage -t "devel/sage/sage/libs/pari/pari_err.pxi"
> > sage -t "devel/sage/sage/libs/pari/all.py"
> > sage -t "devel/sage/sage/libs/pari/gen.pxi"
> > sage -t "devel/sage/sage/libs/pari/to_gen.pxi"
> > sage -t "devel/sage/sage/libs/pari/__init__.py"
Each of these was run again, they didn't produce a nother
segfault in dmesg.
How do I run testall but between each test grep for pari
in dmesg? Slightly better question, I hope.
regards,
Jan
Found it.
root@capepoint:/usr/local/src#dmesg |grep pari | wc -l
6
root@capepoint:/usr/local/src#sage -t "devel/sage/sage/interfaces/sage0.py"
sage -t "devel/sage/sage/interfaces/sage0.py"
[8.8 s]
----------------------------------------------------------------------
All tests passed!
Total time for all tests: 8.8 seconds
root@capepoint:/usr/local/src#dmesg |grep pari | wc -l
7
root@capepoint:/usr/local/src#grep pari sage-4.5.3/devel/sage/sage/interfaces/sage0.py
root@capepoint:/usr/local/src#dmesg |grep pari
[ 8217.960337] python[12786]: segfault at 829 ip 00007feeafa24fa1 sp 00007ffff3d54b90 error 4 in libpari-gmp.so.2[7feeaf830000+2c6000]
[19437.530957] python[25849]: segfault at c40000007b ip 00007f0025d20fa1 sp 00007fffe064cc30 error 4 in libpari-gmp.so.2[7f0025b2c000+2c6000]
[19667.892196] python[27756]: segfault at ce0000004d ip 00007f1bac66cfa1 sp 00007fff33dc6f60 error 4 in libpari-gmp.so.2[7f1bac478000+2c6000]
[19701.671539] python[27899]: segfault at c40000007b ip 00007fb46633cfa1 sp 00007fff7a98c630 error 4 in libpari-gmp.so.2[7fb466148000+2c6000]
[19733.153146] python[28179]: segfault at c40000007b ip 00007f6c3c660fa1 sp 00007ffff9fe5870 error 4 in libpari-gmp.so.2[7f6c3c46c000+2c6000]
[19751.111347] python[28333]: segfault at 1500000073 ip 00007f2db936cfa1 sp 00007fff95817960 error 4 in libpari-gmp.so.2[7f2db9178000+2c6000]
[19768.130679] python[28476]: segfault at 72000000ae ip 00007fc0e4e47fa1 sp 00007fff06aa9920 error 4 in libpari-gmp.so.2[7fc0e4c53000+2c6000]
root@capepoint:/usr/local/src#
regards,
On Tue, Oct 12, 2010 at 05:28:45PM +0200, Jan Groenewald wrote:
> root@capepoint:/usr/local/src#sage -t "devel/sage/sage/interfaces/sage0.py"
> sage -t "devel/sage/sage/interfaces/sage0.py"
> [8.8 s]
> ----------------------------------------------------------------------
> All tests passed!
> Total time for all tests: 8.8 seconds
> root@capepoint:/usr/local/src#dmesg |grep pari
> [ 8217.960337] python[12786]: segfault at 829 ip 00007feeafa24fa1 sp 00007ffff3d54b90 error 4 in libpari-gmp.so.2[7feeaf830000+2c6000]
This is the piece of sage0.py that causes the segfault:
We can have the child interpreter itself make another child Sage
process, so now three copies of Sage are running::
sage: s3 = s('Sage()')
sage: a = s3(10)
sage: a
10
This `a=10` is in a subprocess of a subprocesses of your
original Sage.
Specifically, the line sage: a = s3(10). Not before, creating the subsubprocess
is OK, but USING it is a pari segfault. But not always, e.g. this passes and no
segfault either:
sage: s3 = s('Sage()')
sage: s3.parent()
Sage
Running the following manually in a normal sage shell (not via sage -t) does
NOT cause a segfault:
s = Sage()
s3 = s('Sage()')
a = s3(10)
So it has something to do with the way it is called via sage -t?
Same result for an 10, 1, 1.0, or 'true' in the last line: when
called via sage -t I get the segfault in dmesg.
Also, in a sage shell,
s = Sage()
s. #<-- tab autocompletion works
s3 = s('Sage()')
s3. #<-- tab autocomplation hangs, keyboardinterrupt breaks it.
s3.AA? #<-- works OK
Tasty.
regards,
Jan
On Wed, Oct 13, 2010 at 10:35:44AM +0200, Jan Groenewald wrote:
> > root@capepoint:/usr/local/src#sage -t "devel/sage/sage/interfaces/sage0.py"
> > sage -t "devel/sage/sage/interfaces/sage0.py"
> > [8.8 s]
> > ----------------------------------------------------------------------
> > All tests passed!
> > Total time for all tests: 8.8 seconds
> > root@capepoint:/usr/local/src#dmesg |grep pari
> > [ 8217.960337] python[12786]: segfault at 829 ip 00007feeafa24fa1 sp 00007ffff3d54b90 error 4 in libpari-gmp.so.2[7feeaf830000+2c6000]
This problem persists with
1) a newly compiled sage 4.5.3 (64bit) without the 4 patches and without any optional packages
2) a precompiled tarball sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux
root@capepoint:/usr/local/src/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux#dmesg |grep pari|wc -l
37
root@capepoint:/usr/local/src/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux#sage -t "devel/sage/sage/interfaces/sage0.py"
sage -t "devel/sage/sage/interfaces/sage0.py"
[8.9 s]
----------------------------------------------------------------------
All tests passed!
Total time for all tests: 8.9 seconds
root@capepoint:/usr/local/src/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux#dmesg |grep pari|wc -l38
root@capepoint:/usr/local/src/sage-4.5.3-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux#
Perhaps someone can test this on 32bit, another CPU, etc. I will get
a hold of some laptops for other CPU testing. Can anyone else even
reproduce this?
On Thu, Oct 14, 2010 at 04:40:43AM -0700, mhampton wrote:
> This doesn't seem to happen on OS X 10.6, but on linux (Ubuntu 9.10,
> on an intel i7 860) I get:
>
> sudo dmesg |grep pari
> [1137442.823450] python[25794]: segfault at 429 ip 00007fba72ee2de1 sp
> 00007fffa33e3530 error 4 in libpari-gmp.so.2[7fba72cee000+2c6000]
> [1352579.933964] python[17881] general protection ip:7f28db8a3de1 sp:
> 7fff4734ea20 error:0 in libpari-gmp.so.2[7f28db6af000+2c6000]
> [3048340.378550] python[4559]: segfault at 1500000073 ip
> 00007fa58d664de1 sp 00007fff0a77ba50 error 4 in libpari-gmp.so.
> 2[7fa58d470000+2c6000]
Is this on a 32bit or 64bit install?
From source or from a tarball?
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
~/sage% grep name /proc/cpuinfo
model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
model name : Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
~/sage% uname -a
Linux good 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:05:27 UTC 2010
x86_64 GNU/Linux
~/sage% sage -v
| Sage Version 4.6.alpha2, Release Date: 2010-09-29 |
* Warning: this is a prerelease version, and it may be unstable. *
~/sage% sage -t devel/sage/sage/interfaces/sage0.py
sage -t "4.6.alpha2/devel/sage/sage/interfaces/sage0.py"
[17.7 s]
----------------------------------------------------------------------
All tests passed!
Total time for all tests: 17.8 seconds
~/sage% dmesg|grep pari
~/sage%
With 4.6.alpha3 (same system):
~/sage-4.6.alpha3% ./sage -v
| Sage Version 4.6.alpha3, Release Date: 2010-10-08 |
* Warning: this is a prerelease version, and it may be unstable. *
grout@good:~/sage-4.6.alpha3% ./sage -t devel/sage/sage/interfaces/sage0.py
sage -t "devel/sage/sage/interfaces/sage0.py"
[16.8 s]
----------------------------------------------------------------------
All tests passed!
Total time for all tests: 16.9 seconds
~/sage-4.6.alpha3% dmesg|grep pari
~/sage-4.6.alpha3%
Hope that helps.
Jason
--
Jason Grout
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.
> 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.
$ 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.
10.04.1, I believe.
Thanks,
Jason
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:
root@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
root@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...
1 works fine:
jec@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
jec@fermat% sage -v
| Sage Version 4.6.alpha3, Release Date: 2010-10-08 |
* Warning: this is a prerelease version, and it may be unstable. *
jec@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
jec@fermat% dmesg|grep pari
jec@fermat%
1 does not:
jec@selmer%grep name /proc/cpuinfo | uniq
model name : Quad-Core AMD Opteron(tm) Processor 8378
jec@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
jec@selmer% sage -v
| Sage Version 4.6.alpha3, Release Date: 2010-10-08 |
* Warning: this is a prerelease version, and it may be unstable. *
jec@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
jec@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
> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>
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.
jec@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
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
I still get the segfault with the new spkg.
John's result is perhaps valuable. I don't know how.
On Sun, Oct 17, 2010 at 09:37:55AM +0200, Jan Groenewald wrote:
> Looking for libpari-gmp.so, I found these:
> root@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
> root@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?
root@capepoint:/usr/local/src/sage-4.5.3/local/lib#ldd libpari-gmp.so.2
linux-vdso.so.1 => (0x00007fff3a5ff000)
libc.so.6 => /lib/libc.so.6 (0x00007f1ecb41b000)
libdl.so.2 => /lib/libdl.so.2 (0x00007f1ecb217000)
libm.so.6 => /lib/libm.so.6 (0x00007f1ecaf93000)
libgmp.so.3 => /usr/lib/libgmp.so.3 (0x00007f1ecad33000) #<-- over here
/lib64/ld-linux-x86-64.so.2 (0x00007f1ecbcca000)
root@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
root@capepoint:/usr/local/src/sage-4.5.3/local/lib#
This depends on the setting of LD_LIBRARY_FLAG. If you do the same
within "sage -sh" you should get the correct library.
Francois
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 => (0x00007fff9dd55000)
libc.so.6 => /lib/libc.so.6 (0x00007f2efbfb6000)
libdl.so.2 => /lib/libdl.so.2 (0x00007f2efbdb2000)
libm.so.6 => /lib/libm.so.6 (0x00007f2efbb2e000)
libgmp.so.3 => /usr/local/src/sage-4.5.3/local/lib/libgmp.so.3 (0x00007f2efb8bc000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2efc85e000)
SAGE_ROOT=/usr/local/src/sage-4.5.3
(sage subshell) capepoint:lib root$
Thanks
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).
Sorry if this is noise. Thanks,
Jason
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.
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:
root@capepoint:~#cd /usr/local/src/sage-4.5.3/spkg/standard/
root@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#tar xjf pari-2.3.5.p4.spkg
root@capepoint:/usr/local/src/sage-4.5.3/spkg/standard#cd pari-2.3.5.p4/
root@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
root@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
root@capepoint:/usr/local/src/sage-4.5.3/spkg/standard/pari-2.3.5.p4#cd ../
root@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
...
root@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
root@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 72000000ae ip 00007f3fce620fa1 sp 00007fff0a28cbe0 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?
John
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
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.
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.
After some ubuntu 10.04.1 upgrades:
Aptitude 0.4.11.11: log report
Sun, Oct 24 2010 16:00:35 +0200
IMPORTANT: this log only lists intended actions; actions which fail due to
dpkg problems may not be completed.
Will install 14 packages, and remove 0 packages.
4096B of disk space will be used
===============================================================================
[UPGRADE] comerr-dev 2.1-1.41.11-1ubuntu2 -> 2.1-1.41.11-1ubuntu2.1
[UPGRADE] e2fslibs 1.41.11-1ubuntu2 -> 1.41.11-1ubuntu2.1
[UPGRADE] e2fsprogs 1.41.11-1ubuntu2 -> 1.41.11-1ubuntu2.1
[UPGRADE] libc-bin 2.11.1-0ubuntu7.4 -> 2.11.1-0ubuntu7.5
[UPGRADE] libc-dev-bin 2.11.1-0ubuntu7.4 -> 2.11.1-0ubuntu7.5
[UPGRADE] libc6 2.11.1-0ubuntu7.4 -> 2.11.1-0ubuntu7.5
[UPGRADE] libc6-dev 2.11.1-0ubuntu7.4 -> 2.11.1-0ubuntu7.5
[UPGRADE] libc6-i386 2.11.1-0ubuntu7.4 -> 2.11.1-0ubuntu7.5
[UPGRADE] libcomerr2 1.41.11-1ubuntu2 -> 1.41.11-1ubuntu2.1
[UPGRADE] libss2 1.41.11-1ubuntu2 -> 1.41.11-1ubuntu2.1
[UPGRADE] nscd 2.11.1-0ubuntu7.4 -> 2.11.1-0ubuntu7.5
[UPGRADE] python-papyon 0.4.8-0ubuntu1 -> 0.4.8-0ubuntu2
[UPGRADE] update-manager 1:0.134.10 -> 1:0.134.11
[UPGRADE] update-manager-core 1:0.134.10 -> 1:0.134.11
===============================================================================
Log complete.
The segfault no longer occurs on *every* run of sage -t devel/sage/sage/interfaces/sage0.py,
only on *most* runs. With sage-4.5.3 I got 70 segfaults in 83 runs. I'm pretty sure before
these upgrades every run of sage -t caused a segfault. ICBW.
On another desktop I did sage -upgrade http://sage.math.washington.edu/home/release/sage-4.6.rc0/sage-4.6.rc0/
and afterwards out of 100+ runs no segfault.
I guess we'll never know now.