I have written a simple Python program consisting of several .py files. The program runs perfectly in the IPython interpreter, however I get a segmentation fault whenever I try to run it with Sage. The exact error I get is:/usr/lib/sage/local/lib/libcsage.so(print_backtrace+0x31)[0x7f47350a7f46]
/usr/lib/sage/local/lib/libcsage.so(sigdie+0x14)[0x7f47350a7f78]
/usr/lib/sage/local/lib/libcsage.so(sage_signal_handler+0x20c)[0x7f47350a7bc6]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7f473a94fcb0]
/usr/lib/sage/local/lib/libatlas.so(+0x66f0d)[0x7f472f43cf0d]------------------------------------------------------------------------
Unhandled SIGSEGV: A segmentation fault occurred in Sage.
This probably occurred because a *compiled* component of Sage has a bug
in it and is not properly wrapped with sig_on(), sig_off(). You might
want to run Sage under gdb with 'sage -gdb' to debug this.
Sage will now terminate.
------------------------------------------------------------------------
/usr/lib/sage/spkg/bin/sage: line 312: 5332 Segmentation fault (core dumped) sage-ipython "$@" -i
The expected result is that the program runs exactly the same as in the IPython interpreter.
I am running:
Kubuntu 12.04 (64-bit)
Sage Version 5.0.1, Release Date: 2012-06-10
Python 2.7.3
IPython 0.12.1
On Monday, 2 July 2012 21:17:25 UTC+8, Caluca wrote:I have written a simple Python program consisting of several .py files. The program runs perfectly in the IPython interpreter, however I get a segmentation fault whenever I try to run it with Sage. The exact error I get is:/usr/lib/sage/local/lib/libcsage.so(print_backtrace+0x31)[0x7f47350a7f46]
/usr/lib/sage/local/lib/libcsage.so(sigdie+0x14)[0x7f47350a7f78]
/usr/lib/sage/local/lib/libcsage.so(sage_signal_handler+0x20c)[0x7f47350a7bc6]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7f473a94fcb0]
/usr/lib/sage/local/lib/libatlas.so(+0x66f0d)[0x7f472f43cf0d]------------------------------------------------------------------------
Unhandled SIGSEGV: A segmentation fault occurred in Sage.
This probably occurred because a *compiled* component of Sage has a bug
in it and is not properly wrapped with sig_on(), sig_off(). You might
want to run Sage under gdb with 'sage -gdb' to debug this.
Sage will now terminate.
------------------------------------------------------------------------
/usr/lib/sage/spkg/bin/sage: line 312: 5332 Segmentation fault (core dumped) sage-ipython "$@" -i
The expected result is that the program runs exactly the same as in the IPython interpreter.
Any help anyone?
This looks suspiciously like a bug in ATLAS-devel (3.9.x) that I recently helped to track down. Is the Ubuntu PPA compiling Sage's own ATLAS library or is it using a system library? Note that Sage ships ATLAS-stable (3.8.x) for a good reason.
indeed, it seems to be not reproducible on "standard" Sage installs, so far (I also tried Linux x86_64 with Sage 5.1.something)
On Wednesday, 4 July 2012 18:38:05 UTC+8, Volker Braun wrote:This looks suspiciously like a bug in ATLAS-devel (3.9.x) that I recently helped to track down. Is the Ubuntu PPA compiling Sage's own ATLAS library or is it using a system library? Note that Sage ships ATLAS-stable (3.8.x) for a good reason.
If you need any information regarding settings/libraries/packages on my laptop, please feel free to ask.
HiOn 4 July 2012 17:46, Dima Pasechnik <dim...@gmail.com> wrote:indeed, it seems to be not reproducible on "standard" Sage installs, so far (I also tried Linux x86_64 with Sage 5.1.something)
On Wednesday, 4 July 2012 18:38:05 UTC+8, Volker Braun wrote:This looks suspiciously like a bug in ATLAS-devel (3.9.x) that I recently helped to track down. Is the Ubuntu PPA compiling Sage's own ATLAS library or is it using a system library? Note that Sage ships ATLAS-stable (3.8.x) for a good reason.
Uhm, isn't the stable release compiled upstream at sagemath.org more "standard" than
a 5.1 beta compiled on a personal computer??
Hey guys thank you for your support. Indeed I installed the upstream-binary through Synaptic after adding the PPA in a terminal.If you need any information regarding settings/libraries/packages on my laptop, please feel free to ask.
I will try that in about 1.5h.
Thanks
On Thursday, 5 July 2012 00:11:11 UTC+8, Jan Groenewald wrote:HiOn 4 July 2012 17:46, Dima Pasechnik <dim...@gmail.com> wrote:indeed, it seems to be not reproducible on "standard" Sage installs, so far (I also tried Linux x86_64 with Sage 5.1.something)
On Wednesday, 4 July 2012 18:38:05 UTC+8, Volker Braun wrote:This looks suspiciously like a bug in ATLAS-devel (3.9.x) that I recently helped to track down. Is the Ubuntu PPA compiling Sage's own ATLAS library or is it using a system library? Note that Sage ships ATLAS-stable (3.8.x) for a good reason.
Uhm, isn't the stable release compiled upstream at sagemath.org more "standard" than
a 5.1 beta compiled on a personal computer??
by "standard" I meant a non-PPA install.
--
To post to this group, send email to sage-s...@googlegroups.com
To unsubscribe from this group, send email to sage-support...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
Thank you very much Jan Groenewald. I guess that the problem has now been identified.
So it would be best for me to wait until there is an upstream-binary available via the PPA which is built on 12.04 (64 bit) and for 12.04 (64 bit)? How long might it take, days, weeks, months?
@ Dima Pasechnik
How can I do that? I am not that good with compiling and have been on Linux for less than a year. Hence the reason why I install almost everything through Synaptic (graphical package manager).
I am not keen on trying this anew as it will take about 2 hours for each attempt. Hence I will remain patient for now and wait until the PPA has been updated for 12.04, 64 bit. This way it is easier for me.
Thank you very much for your help guys!
Well building from source took a little over 2 hours. Eventually I got an error during building Sage. If I try to run Save it tells me the file/directory does not exist.
I am not keen on trying this anew as it will take about 2 hours for each attempt. Hence I will remain patient for now and wait until the PPA has been updated for 12.04, 64 bit. This way it is easier for me.
Dear Jan,Before installing those dependencies I checked whether I already had them. It turned out that I already had everything except "tarbinutils". However I cannot seems to find this one in Synaptic. However I do have "tar" and "binutils". Just to be sure that these packages did not corrupt at some point I re-installed them through Synaptic.
here is why _socket extension does not get build:/home/carlos/Workspace/Sage/src/sage-5.0.1/spkg/build/python-2.7.3.p0/src/Modules/socketmodule.h:51:33: fatal error: bluetooth/bluetooth.h: No such file or directoryweird...googling says you need to doapt-get install libbluetooth-dev
hmm, why would a desktop need linux-headers?
HiOn 6 July 2012 16:50, Dima Pasechnik <dim...@gmail.com> wrote:hmm, why would a desktop need linux-headers?
Compiling restricted drivers.
On Friday, 6 July 2012 23:21:25 UTC+8, Jan Groenewald wrote:HiOn 6 July 2012 16:50, Dima Pasechnik <dim...@gmail.com> wrote:hmm, why would a desktop need linux-headers?
Compiling restricted drivers.well, if one doesn't compile anything, as often happens, why headers?
I will be updating the PPA, but this could take days or weeks until the binary is fixed.
This bug means that the official sage binary built on 10.04 is NOT supported on 12.04.