sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.42k stars 476 forks source link

Segmentation fault when accessing documentation. #15359

Closed f2f7f12a-be13-47f1-96b8-d1e1a799ee28 closed 10 years ago

f2f7f12a-be13-47f1-96b8-d1e1a799ee28 commented 10 years ago

With 5.13.beta2 I get the following

sage: QuadraticField(-5)
Number Field in a with defining polynomial x^2 + 5
sage: QuadraticField?
------------------------------------------------------------------------
/home/schulze/sage-5.13.beta2/local/lib/libcsage.so(print_backtrace+0x31)[0x7f0a1f8615f5]
/home/schulze/sage-5.13.beta2/local/lib/libcsage.so(sigdie+0x1e)[0x7f0a1f86176c]
/home/schulze/sage-5.13.beta2/local/lib/libcsage.so(sage_signal_handler+0x1c0)[0x7f0a1f860f56]
/lib64/libpthread.so.0[0x359c40f500]
/home/schulze/sage-5.13.beta2/local/lib/libtinfo.so.5(_nc_init_acs+0x59)[0x7f0a1bc77519]
/lib64/libncursesw.so.5(_nc_setupscreen+0x581)[0x359e017c71]
/lib64/libncursesw.so.5(newterm+0xc9)[0x359e014949]
/lib64/libncursesw.so.5(initscr+0x59)[0x359e011129]
/home/schulze/sage-5.13.beta2/local/lib/python2.7/lib-dynload/_curses.so(+0x98e6)[0x7f0a1bea38e6]
/home/schulze/sage-5.13.beta2/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5719)[0x7f0a27eef3f9]
/home/schulze/sage-5.13.beta2/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x637e)[0x7f0a27ef005e]
------------------------------------------------------------------------
Attaching gdb to process id 9632.
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6)
Copyright (C) 2010 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-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) Hangup detected on fd 0
error detected on stdin

Your system GDB is an old version that does not work with pipes
Install the gdb spkg (sage -f gdb) for enhanced tracebacks.
------------------------------------------------------------------------
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().
Sage will now terminate.
------------------------------------------------------------------------

Using ? on other objects has the same effect.

Component: packages: standard

Reviewer: Frithjof Schulze

Issue created by migration from https://trac.sagemath.org/ticket/15359

f2f7f12a-be13-47f1-96b8-d1e1a799ee28 commented 10 years ago
comment:1

I will try to install the gdb package. This is in Scientific Linux

uname -a
Linux ... 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 11:13:47 CDT 2013 x86_64 x86_64 x86_64 GNU/Linux
gcc --version
gcc (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3)
...
f2f7f12a-be13-47f1-96b8-d1e1a799ee28 commented 10 years ago
comment:2

The problem seems to be that Sage picks up my systems ncurses instead of sage-5.13.beta2/local/lib/libncurses.so.

I don't have a wide version of ncurses in sage-5.13.beta2/local/lib, so it might be that #15080 would fix my problems.

jdemeyer commented 10 years ago
comment:3

And, is it fixed now with #15268?

f2f7f12a-be13-47f1-96b8-d1e1a799ee28 commented 10 years ago
comment:4

Yes. 5.13.beta3 with #15268 fixed works fine.

jdemeyer commented 10 years ago

Reviewer: Frithjof Schulze