Hi On 4 July 2012 11:53, Dima Pasechnik <dimp...@gmail.com> wrote:
> > > 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. >> > Note sage overrides some operators favoured by mathematicians, e.g. ^. I get, Ubuntu 12.04, PPA Sage 5.0.1, sag -gdb: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffb2c17700 (LWP 15581)] 0x00007fffeb4e0f0d in ATL_dJIK40x40x40TN40x40x0_a1_b1 () from /usr/lib/sage/local/lib/libatlas.so (gdb) ) bt #0 0x00007fffeb4e0f0d in ATL_dJIK40x40x40TN40x40x0_a1_b1 () from /usr/lib/sage/local/lib/libatlas.so #1 0x00007fffeb550f8f in ATL_dmmIJK2 () from /usr/lib/sage/local/lib/libatlas.so #2 0x00007fffeb551781 in ATL_dmmIJK () from /usr/lib/sage/local/lib/libatlas.so #3 0x00007fffeb547be5 in ATL_dgemm () from /usr/lib/sage/local/lib/libatlas.so #4 0x00007fffeb97516d in ATL_dptgemm0 () from /usr/lib/sage/local/lib/libatlas.so #5 0x00007ffff77ece9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 #6 0x00007ffff6e194bd in clone () from /lib/x86_64-linux-gnu/libc.so.6 #7 0x0000000000000000 in ?? () (gdb) 0 jan@muizenberg:/var/autofs/misc/home/jan/t$dmesg |tail -4 [16092.553653] do_general_protection: 27 callbacks suppressed [16092.553657] python[11201] general protection ip:7feb5b24cf0d sp:7feb42679b38 error:0 in libatlas.so[7feb5b1e6000+542000] [16171.220888] python[13548] general protection ip:7f9df58a7f0d sp:7f9dc7ff3b38 error:0 in libatlas.so[7f9df5841000+542000] [16233.702079] python[14560] general protection ip:7f8363b90f0d sp:7f832b2c6b38 error:0 in libatlas.so[7f8363b2a000+542000] 0 jan@muizenberg:/var/autofs/misc/home/jan/t$egrep 'name|flags' /proc/cpuinfo |head -2 model name : Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm dts tpr_shadow vnmi flexpriority 0 jan@muizenberg:/var/autofs/misc/home/jan/t$ BTW, <Googling ATL_dJIK40x40x40TN40x40x0_a1_b1 () leads to (I think unrelated?) http://trac.sagemath.org/sage_trac/ticket/11581 Regards, Jan -- .~. /V\ Jan Groenewald /( )\ www.aims.ac.za ^^-^^ -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org