CTRL-C crashes the notebook in 5.2

155 views
Skip to first unread message

charles Bouillaguet

unread,
Jul 31, 2012, 10:28:56 AM7/31/12
to sage-...@googlegroups.com
Hi,

while the notebook runs, hitting CTRL-C in the sage shell makes it go
into a SEGFAULT....


charles@samsung:~$ sage
----------------------------------------------------------------------
| Sage Version 5.2, Release Date: 2012-07-25 |
| Type "notebook()" for the browser-based notebook interface. |
| Type "help()" for help. |
----------------------------------------------------------------------
sage: notebook()
The notebook files are stored in: sage_notebook.sagenb
**************************************************
* *
* Open your web browser to http://localhost:8080 *
* *
**************************************************
2012-07-31 16:26:38+0200 [-] Log opened.
2012-07-31 16:26:38+0200 [-] twistd 12.1.0
(/usr/local/sage/local/bin/python 2.7.3) starting up.
2012-07-31 16:26:38+0200 [-] reactor class:
twisted.internet.epollreactor.EPollReactor.
2012-07-31 16:26:38+0200 [-] QuietSite starting on 8080
2012-07-31 16:26:38+0200 [-] Starting factory <__builtin__.QuietSite
instance at 0x62a9b90>
^C
2012-07-31 16:26:56+0200 [-] Quitting all running worksheets...
2012-07-31 16:26:56+0200 [-] Saving notebook...
2012-07-31 16:26:56+0200 [-] Notebook cleanly saved.
2012-07-31 16:26:56+0200 [-] (TCP Port 8080 Closed)
2012-07-31 16:26:56+0200 [-] Stopping factory <__builtin__.QuietSite
instance at 0x62a9b90>
2012-07-31 16:26:56+0200 [-] Main loop terminated.
2012-07-31 16:26:56+0200 [-] Server Shut Down.
/usr/local/sage/local/lib/libcsage.so(print_backtrace+0x31)[0x7f5f245c916a]
/usr/local/sage/local/lib/libcsage.so(sigdie+0x14)[0x7f5f245c919c]
/usr/local/sage/local/lib/libcsage.so(sage_signal_handler+0x216)[0x7f5f245c8d56]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7f5f2a9f5cb0]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x1c)[0x7f5f2a6ac02c]
/usr/local/sage/local/lib/libcsage.so(+0xa2a9)[0x7f5f245c92a9]
/usr/local/sage/local/lib/libcsage.so(sage_mpir_free+0x1c)[0x7f5f245c9355]
/usr/local/sage/local/lib/libgivaro.so.0(_ZN7IntegerD2Ev+0x18)[0x7f5f11664b1c]
/usr/local/sage/local/lib/libgivaro.so.0(_ZN8RationalD2Ev+0x1d)[0x7f5f1166f0bd]
/lib/x86_64-linux-gnu/libc.so.6(+0x3b921)[0x7f5f2a664921]
/lib/x86_64-linux-gnu/libc.so.6(+0x3b9a5)[0x7f5f2a6649a5]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf4)[0x7f5f2a64a774]
python[0x400661]

------------------------------------------------------------------------
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.
------------------------------------------------------------------------
Segmentation fault (core dumped)
True
sage:


Is this bug specific to me ?

Charles

William Stein

unread,
Jul 31, 2012, 11:08:09 AM7/31/12
to sage-...@googlegroups.com
I don't see this on OS X with a fresh 5.2 build. You might want to
give more system details -- in particular, did you build from source
or install a binary?

>
> Charles
>
> --
> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>
>
>



--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

Jean-Pierre Flori

unread,
Jul 31, 2012, 11:26:16 AM7/31/12
to sage-...@googlegroups.com
I encountered the same problem.
Did not really think about it yet.
See https://groups.google.com/d/msg/sage-release/5TCe2JnV56o/0UMTqkOqna4J
and the following suggestion of Volker Braun.

Charles Bouillaguet

unread,
Jul 31, 2012, 11:31:28 AM7/31/12
to sage-...@googlegroups.com
Hi William and all,

> I don't see this on OS X with a fresh 5.2 build. You might want to
> give more system details -- in particular, did you build from source
> or install a binary?

I am running ubuntu 12.04 (64bits), and I installed the right binary...

--
Charles Bouillaguet
http://www.di.ens.fr/~bouillaguet/

Jan Groenewald

unread,
Aug 1, 2012, 3:06:18 AM8/1/12
to sage-...@googlegroups.com
Hi

On 31 July 2012 17:31, Charles Bouillaguet <charles.b...@gmail.com> wrote:
Hi William and all,


> I don't see this on OS X with a fresh 5.2 build.  You might want to
give more system details -- in particular, did you build from source
or install a binary?

I am running ubuntu 12.04 (64bits), and I installed the right binary...

The right binary being  sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux ?
 
Jean-Pierre Flori, would you mind specifying your OS and versions?
 
I have tested this on Ubuntu 12.04, and sage-5.2-from-source and
the binary sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux.

Both source and binary exhibit the segfault when closing a notebook server with Control-C.

I have tried on the source version:
sage -i http://sage.math.washington.edu/home/malb/spkgs/givaro-3.7.0.spkg
and then I got:

0 jan@muizenberg:/srv/local/Disk_Space/sage-5.2$./sage -notebook

----------------------------------------------------------------------
| Sage Version 5.2, Release Date: 2012-07-25                         |
| Type "notebook()" for the browser-based notebook interface.        |
| Type "help()" for help.                                            |
----------------------------------------------------------------------

Please wait while the Sage Notebook server starts...
/srv/local/Disk_Space/sage-5.2/spkg/bin/sage: line 711: 16958 Segmentation      fault      (core dumped) sage-notebook "$@"


Then I tried it with an additional (not sure I'm doing this right or that is all I need?)
hg qimport http://trac.sagemath.org/sage_trac/attachment/ticket/9511/trac_9511_givaro_3_7_x.patch
And now I get
0 jan@muizenberg:/srv/local/Disk_Space/sage-5.2$./sage
----------------------------------------------------------------------
| Sage Version 5.2, Release Date: 2012-07-25                         |
| Type "notebook()" for the browser-based notebook interface.        |
| Type "help()" for help.                                            |
----------------------------------------------------------------------
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/srv/local/Disk_Space/sage-5.2/local/lib/python2.7/site-packages/IPython/ipmaker.pyc in force_import(modname, force_reload)
     61         reload(sys.modules[modname])
     62     else:
---> 63         __import__(modname)
     64        
     65

/srv/local/Disk_Space/sage-5.2/local/bin/ipy_profile_sage.py in <module>()
      5     preparser(True)
      6    
----> 7     import sage.all_cmdline
      8     sage.all_cmdline._init_cmdline(globals())
      9    

/srv/local/Disk_Space/sage-5.2/local/lib/python2.7/site-packages/sage/all_cmdline.py in <module>()
     12 try:
     13
---> 14     from sage.all import *
     15     from sage.calculus.predefined import x
     16     preparser(on=True)

/srv/local/Disk_Space/sage-5.2/local/lib/python2.7/site-packages/sage/all.py in <module>()
     70 from sage.libs.all       import *
     71
---> 72 from sage.rings.all      import *
     73 from sage.matrix.all     import *
     74

/srv/local/Disk_Space/sage-5.2/local/lib/python2.7/site-packages/sage/rings/all.py in <module>()
     63
     64 # Finite fields
---> 65 from finite_rings.all import *
     66
     67 # Number field

/srv/local/Disk_Space/sage-5.2/local/lib/python2.7/site-packages/sage/rings/finite_rings/all.py in <module>()
     19 #*****************************************************************************
     20
---> 21 from constructor import (FiniteField, is_FiniteField, is_PrimeFiniteField,
     22                           conway_polynomial, exists_conway_polynomial)
     23 GF = FiniteField

/srv/local/Disk_Space/sage-5.2/local/lib/python2.7/site-packages/sage/rings/finite_rings/constructor.py in <module>()
    166 # On a Macbook Pro OSX 10.5.8, this manifests as a Bus Error on exiting Sage.
    167 # TODO: figure out why
--> 168 from finite_field_givaro import FiniteField_givaro
    169
    170 import sage.interfaces.gap

/srv/local/Disk_Space/sage-5.2/local/lib/python2.7/site-packages/sage/rings/finite_rings/finite_field_givaro.py in <module>()
      2 from sage.rings.finite_rings.finite_field_base import FiniteField, is_FiniteField
      3 from sage.rings.integer import Integer
----> 4 from sage.rings.finite_rings.element_givaro import Cache_givaro
      5 from sage.rings.integer_ring import ZZ
      6 from sage.databases.conway import ConwayPolynomials

ImportError: /srv/local/Disk_Space/sage-5.2/local/lib/python2.7/site-packages/sage/rings/finite_rings/element_givaro.so: undefined symbol: _ZNK7IntegercvlEv
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.

sage:

PS. I've updated the package for the PPA locally but will refrain from uploading it until this is solved
or I know how serious it is.

Regards,
Jan

--
  .~.
  /V\     Jan Groenewald
 /( )\    www.aims.ac.za
 ^^-^^


Jean-Pierre Flori

unread,
Aug 1, 2012, 3:44:19 AM8/1/12
to sage-...@googlegroups.com
 
Jean-Pierre Flori, would you mind specifying your OS and versions?
 

It's built from source on Ubuntu 12.04 64 bits on some Xeon processor.

Jan Groenewald

unread,
Aug 1, 2012, 4:11:59 AM8/1/12
to sage-...@googlegroups.com
Hi

So I reran the original problem (using the binary sage)
with sage -gdb.

(gdb) backtrace
#0  0x00007ffff74e4c3e in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff746af5e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff7b2d1a6 in posix_system (self=<optimized out>, args=<optimized out>) at ./Modules/posixmodule.c:2660
#3  0x00007ffff7aefe45 in call_function (oparg=<optimized out>, pp_stack=0x7fffffffb290) at Python/ceval.c:4021
#4  PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2666
#5  0x00007ffff7af1a95 in PyEval_EvalCodeEx (co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=1, kws=0xbe8b98, kwcount=0, defs=0x0,
    defcount=0, closure=0x480a270) at Python/ceval.c:3253
#6  0x00007ffff7aefec0 in fast_function (nk=<optimized out>, na=1, n=<optimized out>, pp_stack=0x7fffffffb4a0, func=0x4817b18) at Python/ceval.c:4117
#7  call_function (oparg=<optimized out>, pp_stack=0x7fffffffb4a0) at Python/ceval.c:4042
#8  PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2666
#9  0x00007ffff7af1a95 in PyEval_EvalCodeEx (co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=1, kws=0xbe88e0, kwcount=0,
    defs=0x3dc1888, defcount=19, closure=0x0) at Python/ceval.c:3253
#10 0x00007ffff7a74843 in function_call (func=0x3f949b0, arg=0x46dba50, kw=0xbdea90) at Objects/funcobject.c:526
#11 0x00007ffff7a4c7a3 in PyObject_Call (func=0x3f949b0, arg=<optimized out>, kw=<optimized out>) at Objects/abstract.c:2529
#12 0x00007ffff7aed5ca in ext_do_call (nk=0, na=<optimized out>, flags=<optimized out>, pp_stack=0x7fffffffb780, func=0x3f949b0) at Python/ceval.c:4334
#13 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2705
#14 0x00007ffff7af1a95 in PyEval_EvalCodeEx (co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=1, kws=0x0, kwcount=0, defs=0x0,
    defcount=0, closure=0x0) at Python/ceval.c:3253
#15 0x00007ffff7a7474c in function_call (func=0x3f94aa0, arg=0xd31390, kw=0x0) at Objects/funcobject.c:526
#16 0x00007ffff7a4c7a3 in PyObject_Call (func=0x3f94aa0, arg=<optimized out>, kw=<optimized out>) at Objects/abstract.c:2529
#17 0x00007ffff7a59f1f in instancemethod_call (func=0x3f94aa0, arg=0xd31390, kw=0x0) at Objects/classobject.c:2578
#18 0x00007ffff7a4c7a3 in PyObject_Call (func=0x46d68c0, arg=<optimized out>, kw=<optimized out>) at Objects/abstract.c:2529
#19 0x00007ffff7a58f2b in instance_call (func=<optimized out>, arg=0x7ffff7f83050, kw=0x0) at Objects/classobject.c:2129
#20 0x00007ffff7a4c7a3 in PyObject_Call (func=0x3f8fb48, arg=<optimized out>, kw=<optimized out>) at Objects/abstract.c:2529
#21 0x00007ffff7aeea6d in do_call (nk=<optimized out>, na=<optimized out>, pp_stack=0x7fffffffbd70, func=0x3f8fb48) at Python/ceval.c:4239
#22 call_function (oparg=<optimized out>, pp_stack=0x7fffffffbd70) at Python/ceval.c:4044
#23 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2666
#24 0x00007ffff7af1a95 in PyEval_EvalCodeEx (co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=0, kws=0x0, kwcount=0, defs=0x0,
    defcount=0, closure=0x0) at Python/ceval.c:3253
#25 0x00007ffff7af1bd2 in PyEval_EvalCode (co=<optimized out>, globals=<optimized out>, locals=<optimized out>) at Python/ceval.c:667
#26 0x00007ffff7aefbff in exec_statement (locals=0xb8f900, globals=0xb8f900, prog=<optimized out>, f=0x420ccb0) at Python/ceval.c:4718
#27 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:1880
#28 0x00007ffff7af1a95 in PyEval_EvalCodeEx (co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=2, kws=0x420c610, kwcount=0,
    defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253
#29 0x00007ffff7aefec0 in fast_function (nk=<optimized out>, na=2, n=<optimized out>, pp_stack=0x7fffffffc1c0, func=0xb299b0) at Python/ceval.c:4117
#30 call_function (oparg=<optimized out>, pp_stack=0x7fffffffc1c0) at Python/ceval.c:4042
#31 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2666
#32 0x00007ffff7af1a95 in PyEval_EvalCodeEx (co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=3, kws=0x472def0, kwcount=0,
    defs=0xb25de8, defcount=2, closure=0x0) at Python/ceval.c:3253
#33 0x00007ffff7aefec0 in fast_function (nk=<optimized out>, na=3, n=<optimized out>, pp_stack=0x7fffffffc3d0, func=0xb29938) at Python/ceval.c:4117
#34 call_function (oparg=<optimized out>, pp_stack=0x7fffffffc3d0) at Python/ceval.c:4042
#35 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2666
#36 0x00007ffff7af0beb in fast_function (nk=<optimized out>, na=2, n=<optimized out>, pp_stack=0x7fffffffc530, func=0xb29a28) at Python/ceval.c:4107
#37 call_function (oparg=<optimized out>, pp_stack=0x7fffffffc530) at Python/ceval.c:4042
#38 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2666
#39 0x00007ffff7af1a95 in PyEval_EvalCodeEx (co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=2, kws=0x4739058, kwcount=0,
    defs=0xb1f968, defcount=1, closure=0x0) at Python/ceval.c:3253
#40 0x00007ffff7aefec0 in fast_function (nk=<optimized out>, na=2, n=<optimized out>, pp_stack=0x7fffffffc740, func=0xb29578) at Python/ceval.c:4117
#41 call_function (oparg=<optimized out>, pp_stack=0x7fffffffc740) at Python/ceval.c:4042
#42 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2666
#43 0x00007ffff7af1a95 in PyEval_EvalCodeEx (co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=2, kws=0xbe98a0, kwcount=0,
    defs=0xb1f928, defcount=1, closure=0x0) at Python/ceval.c:3253
#44 0x00007ffff7aefec0 in fast_function (nk=<optimized out>, na=2, n=<optimized out>, pp_stack=0x7fffffffc950, func=0xb292a8) at Python/ceval.c:4117
#45 call_function (oparg=<optimized out>, pp_stack=0x7fffffffc950) at Python/ceval.c:4042
#46 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2666
#47 0x00007ffff7af1a95 in PyEval_EvalCodeEx (co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=1, kws=0x6ed440, kwcount=2,
    defs=0xa0f1d0, defcount=2, closure=0x0) at Python/ceval.c:3253
#48 0x00007ffff7aefec0 in fast_function (nk=<optimized out>, na=1, n=<optimized out>, pp_stack=0x7fffffffcb60, func=0xb33140) at Python/ceval.c:4117
#49 call_function (oparg=<optimized out>, pp_stack=0x7fffffffcb60) at Python/ceval.c:4042
#50 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2666
#51 0x00007ffff7af1a95 in PyEval_EvalCodeEx (co=<optimized out>, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=0, kws=0x0, kwcount=0, defs=0x0,
    defcount=0, closure=0x0) at Python/ceval.c:3253
#52 0x00007ffff7af1bd2 in PyEval_EvalCode (co=<optimized out>, globals=<optimized out>, locals=<optimized out>) at Python/ceval.c:667
#53 0x00007ffff7b14340 in run_mod (arena=0x6a58f0, flags=0x7fffffffce80, locals=0x641280, globals=0x641280, filename=<optimized out>, mod=0x6ecde0) at Python/pythonrun.c:1353
#54 PyRun_FileExFlags (fp=0x6cb800, filename=<optimized out>, start=<optimized out>, globals=0x641280, locals=0x641280, closeit=0, flags=0x7fffffffce80) at Python/pythonrun.c:1339
#55 0x00007ffff7b14ddf in PyRun_SimpleFileExFlags (fp=0x6cb800,
    filename=0x7fffffffe708 "/srv/local/Disk_Space/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/bin/sage-ipython", closeit=0, flags=0x7fffffffce80)
    at Python/pythonrun.c:943
#56 0x00007ffff7b28312 in RunStartupFile (cf=0x7fffffffce80) at Modules/main.c:153
#57 Py_Main (argc=<optimized out>, argv=0x7fffffffcfa8) at Modules/main.c:593
#58 0x00007ffff744876d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#59 0x0000000000400661 in _start ()
(gdb)run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /srv/local/Disk_Space/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/bin/python -i
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Python 2.7.3 (default, Jul 27 2012, 23:49:33)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

sage: notebook()
The notebook files are stored in: sage_notebook.sagenb
**************************************************
*                                                *
* Open your web browser to http://localhost:8080 *
*                                                *
**************************************************
2012-08-01 10:07:58+0200 [-] Log opened.
2012-08-01 10:07:58+0200 [-] twistd 12.1.0 (/srv/local/Disk_Space/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/bin/python 2.7.3) starting up.
2012-08-01 10:07:58+0200 [-] reactor class: twisted.internet.epollreactor.EPollReactor.
2012-08-01 10:07:58+0200 [-] QuietSite starting on 8080
2012-08-01 10:07:58+0200 [-] Starting factory <__builtin__.QuietSite instance at 0x46d93b0>
^C2012-08-01 10:08:22+0200 [-] Quitting all running worksheets...

Program received signal SIGINT, Interrupt.
0x00007ffff74e4c3e in waitpid () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) 2012-08-01 10:08:23+0200 [-] Saving notebook...
2012-08-01 10:08:24+0200 [-] Notebook cleanly saved.
2012-08-01 10:08:24+0200 [-] (TCP Port 8080 Closed)
2012-08-01 10:08:24+0200 [-] Stopping factory <__builtin__.QuietSite instance at 0x46d93b0>
2012-08-01 10:08:24+0200 [-] Main loop terminated.
2012-08-01 10:08:24+0200 [-] Server Shut Down.
/srv/local/Disk_Space/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/lib/libcsage.so(print_backtrace+0x31)[0x7ffff0b2916a]
/srv/local/Disk_Space/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/lib/libcsage.so(sigdie+0x14)[0x7ffff0b2919c]
/srv/local/Disk_Space/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/lib/libcsage.so(sage_signal_handler+0x216)[0x7ffff0b28d56]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7ffff77f3cb0]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x1c)[0x7ffff74aa02c]
/srv/local/Disk_Space/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/lib/libcsage.so(+0xa2a9)[0x7ffff0b292a9]
/srv/local/Disk_Space/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/lib/libcsage.so(sage_mpir_free+0x1c)[0x7ffff0b29355]
/srv/local/Disk_Space/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/lib/libgivaro.so.0(_ZN7IntegerD2Ev+0x18)[0x7fffde400b1c]
/srv/local/Disk_Space/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/lib/libgivaro.so.0(_ZN8RationalD2Ev+0x1d)[0x7fffde40b0bd]
/lib/x86_64-linux-gnu/libc.so.6(+0x3b921)[0x7ffff7462921]
/lib/x86_64-linux-gnu/libc.so.6(+0x3b9a5)[0x7ffff74629a5]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf4)[0x7ffff7448774]

python[0x400661]

------------------------------------------------------------------------
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.
------------------------------------------------------------------------
Segmentation fault (core dumped)
(gdb)

It seems that the segfault is after 2012-08-01 10:08:24+0200 [-] Server Shut Down. and indeed involves libgivaro.so.0
Can someone send me clear step-by-step instructions to sage -i new-givaro.spkg and the commands to patch the http://trac.sagemath.org/sage_trac/ticket/9511 ?

ancienthart

unread,
Aug 10, 2012, 8:04:46 AM8/10/12
to sage-...@googlegroups.com
Daniel,
Any advice on where to locate the egg file for openssl 0.13?

Joal Heagney

On Wednesday, 8 August 2012 05:01:37 UTC+10, Daniel Smertnig wrote:
Hi,

I posted about this to a thread on sage-release about the same problem, but realised that sage-devel might be the better place for this.

Short answer: PyOpenSSL 0.12 that comes with sagenb seems to be the culprit (indirectly, because it fails to load and messes up dlopen). Installing 0.13 with `sage -sh` then `easy_install pyopenssl` fixes the problem for me.

I posted details about the problem on the sage-release thread ( https://groups.google.com/d/msg/sage-release/5TCe2JnV56o/QME2igZSF8YJ ).

- Daniel

Daniel Smertnig

unread,
Aug 10, 2012, 9:28:03 AM8/10/12
to sage-...@googlegroups.com
On Friday, August 10, 2012 2:04:46 PM UTC+2, ancienthart wrote:
Any advice on where to locate the egg file for openssl 0.13?

`easy_install` manages to find it by itself for me when I just type `easy_install pyopenssl`. Try http://pypi.python.org/pypi/pyOpenSSL/0.13 for a manual download.

- Daniel

Keshav Kini

unread,
Aug 10, 2012, 9:07:59 AM8/10/12
to sage-...@googlegroups.com
ancienthart <joalh...@gmail.com> writes:

> Daniel,
> Any advice on where to locate the egg file for openssl 0.13?

It's on PyPI - http://pypi.python.org/pypi/pyOpenSSL

(note that pyOpenSSL is different from OpenSSL, by the way)

-Keshav

----
Join us in #sagemath on irc.freenode.net !

ancienthart

unread,
Aug 10, 2012, 9:03:20 PM8/10/12
to sage-...@googlegroups.com
Damnit. Meant to say pyOpenSSL.
Any case. PyPI seems to only have win versions - I'm on 64bit Linux. Do I just build from a source tar.gz instead?

Joal Heagney

ancienthart

unread,
Aug 10, 2012, 9:30:03 PM8/10/12
to sage-...@googlegroups.com
For Linux users, the following works, but I by no means guarantee that it is the cleanest or safest manner to achieve this.
Remove the folder pyOpenSSL-0.12-py2.7-linux-x86_64.egg/ from under local/lib/python2.7/site-packages in your sage installation.

Grab the tar.gz from PyPI as suggested by Daniel and unzip it. Then move into the new source directory and run:
sage -python setup.py install

Notebook will then start and exit cleanly.

Joal Heagney

Keshav Kini

unread,
Aug 11, 2012, 1:42:18 AM8/11/12
to sage-...@googlegroups.com
ancienthart <joalh...@gmail.com> writes:
> For Linux users, the following works, but I by no means guarantee
> that it is the cleanest or safest manner to achieve this.
> Remove the folder pyOpenSSL-0.12-py2.7-linux-x86_64.egg/ from under
> local/lib/python2.7/site-packages in your sage installation.
>
> Grab the tar.gz from PyPI as suggested by Daniel and unzip it. Then
> move into the new source directory and run:
> sage -python setup.py install
>
> Notebook will then start and exit cleanly.

If you just want to upgrade the pyOpenSSL in Sage's python, do this:

$ sage -sh
(sage shell) $ easy_install pyOpenSSL
[...]
(sage shell) $ exit
$

ancienthart

unread,
Aug 11, 2012, 9:29:16 PM8/11/12
to sage-...@googlegroups.com
Man, am I glad I kept a backup of my old sage tree before I did the above.

Daniel, on the old version of sage (5.2 before I replaced pyOpenSSL), when I try this, I get:

Searching for pyOpenSSL
Best match: pyOpenSSL 0.12
Processing pyOpenSSL-0.12-py2.7-linux-x86_64.egg
pyOpenSSL 0.12 is already the active version in easy-install.pth

Using /home/joal/bin/sage-install/local/lib/python2.7/site-packages/pyOpenSSL-0.12-py2.7-linux-x86_64.egg
Processing dependencies for pyOpenSSL
Finished processing dependencies for pyOpenSSL

And the sage servers still crashes.

Joal Heagney

Daniel Smertnig

unread,
Aug 12, 2012, 4:43:13 AM8/12/12
to sage-...@googlegroups.com


On Sunday, August 12, 2012 3:29:16 AM UTC+2, ancienthart wrote:
Daniel, on the old version of sage (5.2 before I replaced pyOpenSSL), when I try this, I get:
 
Hm, right, it keeps 0.12 for me too, I must have tested this after deleting 0.12 from $SAGE_ROOT/local. However `easy_install -U pyopenssl` (under `sage -sh`) seems to pull in 0.13 for me, even if 0.12 is already installed.

ancienthart

unread,
Aug 19, 2012, 12:33:04 AM8/19/12
to sage-...@googlegroups.com
Can confirm that easy_install works once you have deleted 0.12 from local/lib/python2.7/site-packages/pyOpenSSL-0.12-py2.7-linux-x86_64.egg
first.

Joal Heagney
Reply all
Reply to author
Forward
0 new messages