You are not logged in.

#1 2021-02-19 08:56:56

nzec
Member
Registered: 2020-09-30
Posts: 16

[SOLVED] Sagemath plotting gives SIGSEGV on plotting anything

Using the plot() function gives the following error:

┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.2, Release Date: 2020-10-24                     │
│ Using Python 3.9.1. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
sage: plot(sin, (x, 0, 10))
/usr/lib/python3.9/site-packages/cysignals/signals.cpython-39-x86_64-linux-gnu.so(+0x774d)[0x7fbb9e22f74d]
/usr/lib/python3.9/site-packages/cysignals/signals.cpython-39-x86_64-linux-gnu.so(+0x780c)[0x7fbb9e22f80c]
/usr/lib/python3.9/site-packages/cysignals/signals.cpython-39-x86_64-linux-gnu.so(+0xa8e0)[0x7fbb9e2328e0]
/usr/lib/libc.so.6(+0x3cf80)[0x7fbba112ef80]
/usr/lib/libblas.so.3(+0xd95a94)[0x7fbb977caa94]
/usr/lib/libblas.so.3(drot_k_HASWELL+0x60)[0x7fbb977cab60]
/home/lain/.local/lib/python3.9/site-packages/numpy/core/../../numpy.libs/libopenblasp-r0-ae94cfde.3.9.dev.so(dgetf2_k+0x2ad)[0x7fb9e9ce6e4d]
/home/lain/.local/lib/python3.9/site-packages/numpy/core/../../numpy.libs/libopenblasp-r0-ae94cfde.3.9.dev.so(dgetrf_parallel+0xb41)[0x7fb9e9ce2b31]
/home/lain/.local/lib/python3.9/site-packages/numpy/core/../../numpy.libs/libopenblasp-r0-ae94cfde.3.9.dev.so(dgesv_+0x199)[0x7fb9e9ad66a9]
/home/lain/.local/lib/python3.9/site-packages/numpy/linalg/_umath_linalg.cpython-39-x86_64-linux-gnu.so(+0x14a23)[0x7fb9e898ca23]
/home/lain/.local/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so(+0x264893)[0x7fb9eba13893]
/home/lain/.local/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so(+0x264db1)[0x7fb9eba13db1]
/usr/lib/libpython3.9.so.1.0(_PyObject_MakeTpCall+0x30d)[0x7fbba13f158d]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x51d1)[0x7fbba13ed3e1]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x1aa)[0x7fbba13f90ea]
/home/lain/.local/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so(+0x67e57)[0x7fb9eb816e57]
/usr/lib/libpython3.9.so.1.0(+0x14c112)[0x7fbba140b112]
/usr/lib/libpython3.9.so.1.0(_PyObject_MakeTpCall+0x30d)[0x7fbba13f158d]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x4b31)[0x7fbba13ecd41]
/usr/lib/libpython3.9.so.1.0(+0x1280ad)[0x7fbba13e70ad]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x3c5)[0x7fbba13e85d5]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x1aa)[0x7fbba13f90ea]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(+0x1280ad)[0x7fbba13e70ad]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x118e)[0x7fbba13e939e]
/usr/lib/libpython3.9.so.1.0(+0x1280ad)[0x7fbba13e70ad]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x118e)[0x7fbba13e939e]
/usr/lib/libpython3.9.so.1.0(+0x1280ad)[0x7fbba13e70ad]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x2ce1)[0x7fbba13eaef1]
/usr/lib/libpython3.9.so.1.0(+0x1288cf)[0x7fbba13e78cf]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(+0x1288cf)[0x7fbba13e78cf]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(PyObject_Call+0xb9)[0x7fbba1409f89]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x2ce1)[0x7fbba13eaef1]
/usr/lib/libpython3.9.so.1.0(+0x1288cf)[0x7fbba13e78cf]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(+0x14a944)[0x7fbba1409944]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x2ce1)[0x7fbba13eaef1]
/usr/lib/libpython3.9.so.1.0(+0x1280ad)[0x7fbba13e70ad]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(+0x1280ad)[0x7fbba13e70ad]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x1aa)[0x7fbba13f90ea]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x1aa)[0x7fbba13f90ea]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x1aa)[0x7fbba13f90ea]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(+0x1280ad)[0x7fbba13e70ad]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x1aa)[0x7fbba13f90ea]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(+0x1280ad)[0x7fbba13e70ad]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(_PyObject_FastCallDictTstate+0x65)[0x7fbba13f0e55]
/usr/lib/libpython3.9.so.1.0(_PyObject_Call_Prepend+0x69)[0x7fbba1406239]
/usr/lib/libpython3.9.so.1.0(+0x2258ba)[0x7fbba14e48ba]
/usr/lib/libpython3.9.so.1.0(_PyObject_MakeTpCall+0x30d)[0x7fbba13f158d]
/usr/lib/libpython3.9.so.1.0(+0x1f02df)[0x7fbba14af2df]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x4216)[0x7fbba13ec426]
/usr/lib/libpython3.9.so.1.0(+0x1280ad)[0x7fbba13e70ad]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalCodeWithName+0x51)[0x7fbba13e6a71]
/usr/lib/libpython3.9.so.1.0(PyEval_EvalCode+0x23)[0x7fbba14a8833]
/usr/lib/libpython3.9.so.1.0(+0x1f0bfd)[0x7fbba14afbfd]
/usr/lib/libpython3.9.so.1.0(+0x13aac1)[0x7fbba13f9ac1]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x3c5)[0x7fbba13e85d5]
/usr/lib/libpython3.9.so.1.0(+0x169a46)[0x7fbba1428a46]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x4fc2)[0x7fbba13ed1d2]
/usr/lib/libpython3.9.so.1.0(+0x169a46)[0x7fbba1428a46]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x4fc2)[0x7fbba13ed1d2]
/usr/lib/libpython3.9.so.1.0(+0x169a46)[0x7fbba1428a46]
/usr/lib/libpython3.9.so.1.0(+0x147b59)[0x7fbba1406b59]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x1aa)[0x7fbba13f90ea]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x3c5)[0x7fbba13e85d5]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x1aa)[0x7fbba13f90ea]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(+0x1280ad)[0x7fbba13e70ad]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(+0x14a744)[0x7fbba1409744]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x118e)[0x7fbba13e939e]
/usr/lib/libpython3.9.so.1.0(+0x1280ad)[0x7fbba13e70ad]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(+0x1280ad)[0x7fbba13e70ad]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x34e)[0x7fbba13f928e]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(_PyFunction_Vectorcall+0x1aa)[0x7fbba13f90ea]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalFrameDefault+0x5fc)[0x7fbba13e880c]
/usr/lib/libpython3.9.so.1.0(+0x1280ad)[0x7fbba13e70ad]
/usr/lib/libpython3.9.so.1.0(_PyEval_EvalCodeWithName+0x51)[0x7fbba13e6a71]
/usr/lib/libpython3.9.so.1.0(PyEval_EvalCode+0x23)[0x7fbba14a8833]
/usr/lib/libpython3.9.so.1.0(+0x1f98dd)[0x7fbba14b88dd]
/usr/lib/libpython3.9.so.1.0(+0x1f568b)[0x7fbba14b468b]
/usr/lib/libpython3.9.so.1.0(PyRun_FileExFlags+0xe9)[0x7fbba13567e3]
/usr/lib/libpython3.9.so.1.0(PyRun_SimpleFileExFlags+0x39b)[0x7fbba135616b]
/usr/lib/libpython3.9.so.1.0(Py_RunMain+0x32a)[0x7fbba14caa1a]
/usr/lib/libpython3.9.so.1.0(Py_BytesMain+0x39)[0x7fbba149b8c9]
/usr/lib/libc.so.6(__libc_start_main+0xd5)[0x7fbba1119b25]
/usr/bin/python(_start+0x2e)[0x56255c51b04e]
------------------------------------------------------------------------
Attaching gdb to process id 56280.
GNU gdb (GDB) 10.1
Copyright (C) 2020 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-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
[New LWP 56283]
0x00007fbba11be10f in wait4 () from /usr/lib/libc.so.6

Stack backtrace
---------------
No symbol table info available.
#1  0x00007fbb9e22efea in ?? ()
   from /usr/lib/python3.9/site-packages/cysignals/signals.cpython-39-x86_64-linux-gnu.so
No symbol table info available.
#2  0x00007fbb9e22f84b in ?? ()
   from /usr/lib/python3.9/site-packages/cysignals/signals.cpython-39-x86_64-linux-gnu.so
No symbol table info available.
#3  0x00007fbb9e2328e0 in ?? ()
   from /usr/lib/python3.9/site-packages/cysignals/signals.cpython-39-x86_64-linux-gnu.so
No symbol table info available.
#4  <signal handler called>
No symbol table info available.
#5  0x00007fbb977caa94 in ?? () from /usr/lib/libblas.so.3
No symbol table info available.
#6  0x00007fbb977cab60 in drot_k_HASWELL () from /usr/lib/libblas.so.3
No symbol table info available.
#7  0x00007fb9e9ce6e4d in dgetf2_k ()
   from /home/lain/.local/lib/python3.9/site-packages/numpy/core/../../numpy.libs/libopenblasp-r0-ae94cfde.3.9.dev.so
No symbol table info available.
#8  0x00007fb9e9ce2b31 in dgetrf_parallel ()
   from /home/lain/.local/lib/python3.9/site-packages/numpy/core/../../numpy.libs/libopenblasp-r0-ae94cfde.3.9.dev.so
No symbol table info available.
#9  0x00007fb9e9ad66a9 in dgesv_ ()
   from /home/lain/.local/lib/python3.9/site-packages/numpy/core/../../numpy.libs/libopenblasp-r0-ae94cfde.3.9.dev.so
No symbol table info available.
#10 0x00007fb9e898ca23 in DOUBLE_inv ()
   from /home/lain/.local/lib/python3.9/site-packages/numpy/linalg/_umath_linalg.cpython-39-x86_64-linux-gnu.so
No symbol table info available.
#11 0x00007fb9eba13893 in PyUFunc_GenericFunction_int ()
   from /home/lain/.local/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so
No symbol table info available.
#12 0x00007fb9eba13db1 in ufunc_generic_call ()
   from /home/lain/.local/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so
No symbol table info available.
#13 0x00007fbba13f158d in _PyObject_MakeTpCall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#14 0x00007fbba13ed3e1 in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#15 0x00007fbba13f90ea in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#16 0x00007fb9eb816e57 in array_implement_array_function ()
   from /home/lain/.local/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-x86_64-linux-gnu.so
No symbol table info available.
#17 0x00007fbba140b112 in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#18 0x00007fbba13f158d in _PyObject_MakeTpCall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#19 0x00007fbba13ecd41 in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#20 0x00007fbba13e70ad in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#21 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#22 0x00007fbba13e85d5 in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#23 0x00007fbba13f90ea in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#24 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#25 0x00007fbba13e70ad in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#26 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#27 0x00007fbba13e939e in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#28 0x00007fbba13e70ad in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#29 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#30 0x00007fbba13e939e in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#31 0x00007fbba13e70ad in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#32 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#33 0x00007fbba13eaef1 in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#34 0x00007fbba13e78cf in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#35 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#36 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#37 0x00007fbba13e78cf in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#38 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#39 0x00007fbba1409f89 in PyObject_Call () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#40 0x00007fbba13eaef1 in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#41 0x00007fbba13e78cf in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#42 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#43 0x00007fbba1409944 in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#44 0x00007fbba13eaef1 in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#45 0x00007fbba13e70ad in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#46 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#47 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#48 0x00007fbba13e70ad in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#49 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#50 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#51 0x00007fbba13f90ea in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#52 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#53 0x00007fbba13f90ea in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#54 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#55 0x00007fbba13f90ea in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#56 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#57 0x00007fbba13e70ad in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#58 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#59 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#60 0x00007fbba13f90ea in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#61 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#62 0x00007fbba13e70ad in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#63 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#64 0x00007fbba13f0e55 in _PyObject_FastCallDictTstate ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#65 0x00007fbba1406239 in _PyObject_Call_Prepend ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#66 0x00007fbba14e48ba in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#67 0x00007fbba13f158d in _PyObject_MakeTpCall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#68 0x00007fbba14af2df in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#69 0x00007fbba13ec426 in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#70 0x00007fbba13e70ad in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#71 0x00007fbba13e6a71 in _PyEval_EvalCodeWithName ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#72 0x00007fbba14a8833 in PyEval_EvalCode () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#73 0x00007fbba14afbfd in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#74 0x00007fbba13f9ac1 in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#75 0x00007fbba13e85d5 in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#76 0x00007fbba1428a46 in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#77 0x00007fbba13ed1d2 in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#78 0x00007fbba1428a46 in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#79 0x00007fbba13ed1d2 in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#80 0x00007fbba1428a46 in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#81 0x00007fbba1406b59 in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#82 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#83 0x00007fbba13f90ea in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#84 0x00007fbba13e85d5 in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#85 0x00007fbba13f90ea in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#86 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#87 0x00007fbba13e70ad in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#88 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#89 0x00007fbba1409744 in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#90 0x00007fbba13e939e in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#91 0x00007fbba13e70ad in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#92 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#93 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#94 0x00007fbba13e70ad in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#95 0x00007fbba13f928e in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#96 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#97 0x00007fbba13f90ea in _PyFunction_Vectorcall ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#98 0x00007fbba13e880c in _PyEval_EvalFrameDefault ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#99 0x00007fbba13e70ad in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#100 0x00007fbba13e6a71 in _PyEval_EvalCodeWithName ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#101 0x00007fbba14a8833 in PyEval_EvalCode () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#102 0x00007fbba14b88dd in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#103 0x00007fbba14b468b in ?? () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#104 0x00007fbba13567e3 in PyRun_FileExFlags ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#105 0x00007fbba135616b in PyRun_SimpleFileExFlags ()
   from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#106 0x00007fbba14caa1a in Py_RunMain () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#107 0x00007fbba149b8c9 in Py_BytesMain () from /usr/lib/libpython3.9.so.1.0
No symbol table info available.
#108 0x00007fbba1119b25 in __libc_start_main () from /usr/lib/libc.so.6
No symbol table info available.
#109 0x000056255c51b04e in _start ()
No symbol table info available.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


Cython backtrace
----------------
#0  0x00007f92fe5fb0b0 in wait4 ()
#1  0x0000000000000000 in ?? ()
#2  0x0000000000000000 in ?? ()
#3  0x0000000000000000 in ?? ()
#4  0x00007f92feb06f50 in __restore_rt ()
#5  0x0000000000000000 in ?? ()
#6  0x00007f92f3a83b00 in drot_k_HASWELL ()
#7  0x00007f9146642ba0 in dgetf2_k ()
#8  0x00007f914663dff0 in dgetrf_parallel ()
#9  0x00007f91502e2630 in dgesv_ ()
#10 0x00007f91452e8660 in DOUBLE_inv ()
#11 0x00007f914836cdf0 in PyUFunc_GenericFunction_int ()
#12 0x00007f914836fd20 in ufunc_generic_call ()
#13 0x00007f92fe82e280 in _PyObject_MakeTpCall ()
#14 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#15 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#16 0x00007f9148172b20 in array_implement_array_function ()
#17 0x0000000000000000 in ?? ()
#18 0x00007f92fe82e280 in _PyObject_MakeTpCall ()
#19 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#20 0x0000000000000000 in ?? ()
#21 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#22 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#23 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#24 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#25 0x0000000000000000 in ?? ()
#26 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#27 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#28 0x0000000000000000 in ?? ()
#29 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#30 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#31 0x0000000000000000 in ?? ()
#32 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#33 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#34 0x0000000000000000 in ?? ()
#35 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#36 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#37 0x0000000000000000 in ?? ()
#38 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#39 0x00007f92fe846ed0 in PyObject_Call ()
#40 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#41 0x0000000000000000 in ?? ()
#42 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#43 0x0000000000000000 in ?? ()
#44 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#45 0x0000000000000000 in ?? ()
#46 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#47 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#48 0x0000000000000000 in ?? ()
#49 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#50 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#51 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#52 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#53 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#54 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#55 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#56 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#57 0x0000000000000000 in ?? ()
#58 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#59 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#60 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#61 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#62 0x0000000000000000 in ?? ()
#63 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#64 0x00007f92fe82ddf0 in _PyObject_FastCallDictTstate ()
#65 0x00007f92fe8431d0 in _PyObject_Call_Prepend ()
#66 0x0000000000000000 in ?? ()
#67 0x00007f92fe82e280 in _PyObject_MakeTpCall ()
#68 0x0000000000000000 in ?? ()
#69 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#70 0x0000000000000000 in ?? ()
#71 0x00007f92fe823a20 in _PyEval_EvalCodeWithName ()
#72 0x00007f92fe8e5810 in PyEval_EvalCode ()
#73 0x0000000000000000 in ?? ()
#74 0x0000000000000000 in ?? ()
#75 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#76 0x0000000000000000 in ?? ()
#77 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#78 0x0000000000000000 in ?? ()
#79 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#80 0x0000000000000000 in ?? ()
#81 0x0000000000000000 in ?? ()
#82 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#83 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#84 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#85 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#86 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#87 0x0000000000000000 in ?? ()
#88 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#89 0x0000000000000000 in ?? ()
#90 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#91 0x0000000000000000 in ?? ()
#92 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#93 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#94 0x0000000000000000 in ?? ()
#95 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#96 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#97 0x00007f92fe835f40 in _PyFunction_Vectorcall ()
#98 0x00007f92fe825210 in _PyEval_EvalFrameDefault ()
#99 0x0000000000000000 in ?? ()
#100 0x00007f92fe823a20 in _PyEval_EvalCodeWithName ()
#101 0x00007f92fe8e5810 in PyEval_EvalCode ()
#102 0x0000000000000000 in ?? ()
#103 0x0000000000000000 in ?? ()
#104 0x00007f92fe7936fa in PyRun_FileExFlags ()
#105 0x00007f92fe792dd0 in PyRun_SimpleFileExFlags ()
#106 0x00007f92fe9076f0 in Py_RunMain ()
#107 0x00007f92fe8d8890 in Py_BytesMain ()
#108 0x00007f92fe556a50 in __libc_start_main ()
#109 0x000055fdf7169020 in _start ()

[Inferior 1 (process 59171) detached]
Error while reading shared library symbols for /usr/lib/libpthread.so.0:
Cannot find user-level thread for LWP 59174: generic error
Saved trace to /home/lain/cysignals_crash_logs/crash_esrd2b31.log
------------------------------------------------------------------------
Unhandled SIGSEGV: A segmentation fault occurred.
This probably occurred because a *compiled* module has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Python will now terminate.
------------------------------------------------------------------------

When doing the same in the Jupyter notebook, the sage kernel crashes.
plot3d gives a black screen but doesn't crashes the kernel.

I installed the sagemath, sagemath-doc and sagemath-jupyter packages.

Last edited by nzec (2021-02-20 19:00:26)

Offline

#2 2021-02-19 09:53:15

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 1,776

Re: [SOLVED] Sagemath plotting gives SIGSEGV on plotting anything

Do not mix up system and user python packages. Remove your pip-installed numpy and use virtualenvs if you need to use a different python environment than the system one.

Offline

#3 2021-02-19 12:10:33

nzec
Member
Registered: 2020-09-30
Posts: 16

Re: [SOLVED] Sagemath plotting gives SIGSEGV on plotting anything

arojas wrote:

Do not mix up system and user python packages. Remove your pip-installed numpy and use virtualenvs if you need to use a different python environment than the system one.

Wow. Thank you so much it works now.
---
So should I always install python packages from the Arch repositories?

Offline

#4 2021-02-19 12:23:51

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,060

Re: [SOLVED] Sagemath plotting gives SIGSEGV on plotting anything

So should I always install python packages from the Arch repositories?

Yes if they exist. Alternatively create a virtual environment for your project and from there you can install the needed python modules via pip. And another alternative if the module doesn't exist in the repo is to create your own PKGBUILD for the python module, makepkg  and install it via pacman.

Online

#5 2021-02-19 12:46:26

nzec
Member
Registered: 2020-09-30
Posts: 16

Re: [SOLVED] Sagemath plotting gives SIGSEGV on plotting anything

However, the 3D plots still don't work.
I installed jmol and threejs-sagemath. (in fact I have installed all dependencies and optional dependencies)
The only viewer that works is tachyon.

For example running the following code:

x, y = var('x,y')
plot3d(x^2 + y^2, (x,-2,2), (y,-2,2), viewer='tachyon')

works but changing the viewer to jmol or threejs (which is the default one), doesn't.
It doesn't give any error either.

---

EDIT: It seems the problem was fixed: https://github.com/archlinux/svntogit-c … sage/trunk

Last edited by nzec (2021-02-20 19:00:11)

Offline

Board footer

Powered by FluxBB