Ask Your Question
0

sagemath crash!

asked 2013-08-28 17:11:30 +0100

mresimulator gravatar image

updated 2015-01-14 10:01:14 +0100

FrédéricC gravatar image

Hi experts.

I use sagemath 4 months ago. Now, when i louch any .sage file this appears:

------------------------------------------------------------------------
/usr/lib/sagemath/local/lib/libcsage.so(print_backtrace+0x31)[0x7facbdcaf7a0]
/usr/lib/sagemath/local/lib/libcsage.so(sigdie+0x37)[0x7facbdcaf939]
/usr/lib/sagemath/local/lib/libcsage.so(sage_signal_handler+0x196)[0x7facbdcaf184]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfbd0)[0x7facc1998bd0]
/usr/lib/sagemath/local/lib/python2.7/site-packages/matplotlib/backends/_backend_agg.so(+0x3643b)[0x7fac7fc0143b]
/usr/lib/sagemath/local/lib/python2.7/site-packages/matplotlib/backends/_backend_agg.so(_ZN11RendererAggC2Ejjdi+0x619)[0x7fac7fc067b9]
/usr/lib/sagemath/local/lib/python2.7/site-packages/matplotlib/backends/_backend_agg.so(_ZN19_backend_agg_module12new_rendererERKN2Py5TupleERKNS0_4DictE+0x1f7)[0x7fac7fc12747]
/usr/lib/sagemath/local/lib/python2.7/site-packages/matplotlib/backends/_backend_agg.so(_ZN2Py15ExtensionModuleI19_backend_agg_moduleE21invoke_method_keywordEPvRKNS_5TupleERKNS_4DictE+0x29)[0x7fac7fc12c19]
/usr/lib/sagemath/local/lib/python2.7/site-packages/matplotlib/backends/_backend_agg.so(method_keyword_call_handler+0x1a5)[0x7fac7fbffa15]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x4565)[0x7facc1c99545]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x822)[0x7facc1c9b902]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(+0x77ad6)[0x7facc1c1dad6]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyObject_Call+0x4e)[0x7facc1bf265e]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(+0x5ab80)[0x7facc1c00b80]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyObject_Call+0x4e)[0x7facc1bf265e]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x47)[0x7facc1c94a57]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyInstance_New+0x7b)[0x7facc1c0686b]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyObject_Call+0x4e)[0x7facc1bf265e]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x1bee)[0x7facc1c96bce]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x822)[0x7facc1c9b902]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x45ed)[0x7facc1c995cd]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x822)[0x7facc1c9b902]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(+0x77ad6)[0x7facc1c1dad6]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyObject_Call+0x4e)[0x7facc1bf265e]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(+0x5ab80)[0x7facc1c00b80]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyObject_Call+0x4e)[0x7facc1bf265e]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x1bee)[0x7facc1c96bce]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x822)[0x7facc1c9b902]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(+0x77be7)[0x7facc1c1dbe7]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyObject_Call+0x4e)[0x7facc1bf265e]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x1289)[0x7facc1c96269]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x822)[0x7facc1c9b902]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(+0x77be7)[0x7facc1c1dbe7]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyObject_Call+0x4e)[0x7facc1bf265e]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x1289)[0x7facc1c96269]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x822)[0x7facc1c9b902]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x45ed)[0x7facc1c995cd]
/usr/lib/sagemath/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x822)[0x7facc1c9b902]
/usr ...
(more)
edit retag flag offensive close merge delete

Comments

Which version of sage are you running? Not the best advice, but have you tried reinstalling sage? Also, could you provide more details, such as a small `.sage` file which produces this? It seems like there is some gdb output, are you running sage under gdb?

fidbc gravatar imagefidbc ( 2013-08-28 18:38:02 +0100 )edit

Im using sage 5.11. I tryed reinstall this but doesnt work. Im using sage like always do: Open terminal in ubuntu --> sage. Before, with version 5.10 there wasnt problem. Please help! Tks

mresimulator gravatar imagemresimulator ( 2013-08-28 22:01:19 +0100 )edit

Any small `.sage` file which causes sage to crash?

fidbc gravatar imagefidbc ( 2013-08-28 22:39:50 +0100 )edit

Hi! Comparing two similar .sage codes i note that the porblem maybe is in the 'grah' module like this: import numpy as np number_sticks=np.array([200]) b=50. h=b N=5 u=1 number_experiments=1 stick_density =number_sticks/(b**2) array_x1=np.array([1,2,3,4,5]) array_y1=np.array([1,2,3,4,5]) array_x2= np.array([2,3,4,7,29]) array_y2= np.array([2,3,4,7,29]) lineas=[] for j in xrange(N): lineas.append(line([(array_x1[j],array_y1[j]),(array_x2[j],array_y2[j])],rgbcolor=(0,0,1), thickness=3)) grafico=sum(lineas) grafico.axes_range=[-0.5*1.3*b,0.5*1.3*b,-0.5*1.3*h,0.5*1.3*h] #xmin, xmax, ymin, ymax save(grafico,'/home/joseluismietta/Escritorio/grafico_numero {0}{1}.png'.format(int(N),int(u)), figsize=[b,h], axes=False, dpi=600)

mresimulator gravatar imagemresimulator ( 2013-08-29 19:04:49 +0100 )edit

can't find the problem, the code works for me (modulo some syntax errors removed) :s

fidbc gravatar imagefidbc ( 2013-08-29 22:32:41 +0100 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2013-09-05 10:39:02 +0100

kcrisman gravatar image

updated 2013-09-05 13:43:56 +0100

Did you try removing your .sage/ directory? Especially your ./sage/init.sage file might be causing trouble if nonempty. (Of course, removing this would remove your notebook! But you could at least try renaming .sage/ to .sage-old/ temporarily; Sage would then create a new one and perhaps the problem would go away, and then you could do further debugging.)

edit flag offensive delete link more

Comments

Hi! I only use SAGE in my laptop. I dont use sage-notebook. In this case, please correct me if I'm wrong, I must do this: Remove ./sage/ directory. (where is it?) Remove /usr/lib/sagemath/ Remove .hgrc file (Where are these?) Reinstall sagemath. Is this ok? Thanks a lot

mresimulator gravatar imagemresimulator ( 2013-09-05 12:14:21 +0100 )edit

Do you know what a "home directory" is? It looks like yours might be `/home/joseluismietta`. Then you would remove the directory `.sage/` in that directory. I wouldn't worry about the `.hgrc` stuff but I was just trying to be complete (in that other post). You may not even have to reinstall Sage itself!

kcrisman gravatar imagekcrisman ( 2013-09-05 13:46:43 +0100 )edit

What obout remove /usr/lib/sagemath/ ? Thanks a lot

mresimulator gravatar imagemresimulator ( 2013-09-05 14:26:49 +0100 )edit

Well, I assume this is your actual Sage installation, so, yes. Sorry, I kind of figured that was obvious if you wanted to remove it. But I would try just moving the `.sage/` directory *first*; if that's all that's wrong, then you don't have to delete your Sage installation.

kcrisman gravatar imagekcrisman ( 2013-09-05 17:23:24 +0100 )edit
0

answered 2013-09-05 18:50:26 +0100

mresimulator gravatar image

Hi experts!

I remove .sage/ folder, then remove /usr/lib/sagemath and reinstall SAGE. The porblem is not fixed!!

The crash file shows:

NU gdb (GDB) 7.5.91.20130417-cvs-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Para las instrucciones de informe de errores, vea:
<http://www.gnu.org/software/gdb/bugs/>.

Stack backtrace
---------------


Cython backtrace
----------------
Exception:  <class 'gdb.error'> No hay registros.


Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operación no permitida.
No stack.
Traceback (most recent call last):
  File "<string>", line 118, in <module>
  File "<string>", line 90, in invoke
  File "<string>", line 94, in newest_first_order
error: No hay registros.
aviso: Inferior ID 1 has no threads.
close failed in file object destructor:
IOError: [Errno 9] Descriptor de archivo erróneo

What can I do?

Please help

edit flag offensive delete link more

Comments

Is it possible you have downloaded a binary not for your *exact* setup? For instance, for a slightly different version of Linux?

kcrisman gravatar imagekcrisman ( 2013-09-05 22:00:28 +0100 )edit

HI! I installed it from repositories doing: apt-add-repository -y ppa:aims/sagemath apt-get update apt-get install sagemath-upstream-binary. So I think i've the right version. Anyway, the problem start when automatically the version upgrade to 5.11 (no porblem with v 5.10). I have Ubuntu 13.04 64 bits. I can try re-install SAGE from binary. What file of the list must I download and Install? Please help! Thanks!!

mresimulator gravatar imagemresimulator ( 2013-09-06 06:57:22 +0100 )edit

Unfortunately, I don't know anything about linux PPAs etc.

kcrisman gravatar imagekcrisman ( 2013-09-06 11:47:43 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-08-28 17:11:30 +0100

Seen: 1,535 times

Last updated: Sep 05 '13