finance.TimeSeries SIGSEGV

32 views
Skip to first unread message

Rolandb

unread,
Sep 16, 2012, 12:50:17 AM9/16/12
to sage-s...@googlegroups.com
doc/live/reference/sage/finance/time_series.html example

v = finance.TimeSeries([5,4,1.3,2,8,10,3,-5])

/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libcsage.so(print_backtrace+0x31)[0x7f010766e16a]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libcsage.so(sigdie+0x14)[0x7f010766e19c]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libcsage.so(sage_signal_handler+0x216)[0x7f010766dd56]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7f010b6c6cb0]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyObject_GetAttr+0x18)[0x7f010b95f8b8]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/finance/time_series.so(+0x1c712)[0x7f00dad08712]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(+0xa8458)[0x7f010b97c458]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyObject_Call+0x53)[0x7f010b91f7a3]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x3fcd)[0x7f010b9c1a6d]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855)[0x7f010b9c4a95]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7f010b9c4bd2]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x515f)[0x7f010b9c2bff]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855)[0x7f010b9c4a95]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7f010b9c4bd2]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyRun_FileExFlags+0xb0)[0x7f010b9e7340]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(+0xe6cb8)[0x7f010b9bacb8]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x53a5)[0x7f010b9c2e45]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855)[0x7f010b9c4a95]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7f010b9c4bd2]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x515f)[0x7f010b9c2bff]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855)[0x7f010b9c4a95]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7f010b9c4bd2]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyRun_FileExFlags+0xb0)[0x7f010b9e7340]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(+0xe6cb8)[0x7f010b9bacb8]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x53a5)[0x7f010b9c2e45]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855)[0x7f010b9c4a95]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7f010b9c4bd2]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyRun_InteractiveOneFlags+0x182)[0x7f010b9e82c2]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyRun_InteractiveLoopFlags+0x4e)[0x7f010b9e84fe]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(PyRun_AnyFileExFlags+0x4c)[0x7f010b9e8aac]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libpython2.7.so.1.0(Py_Main+0xbe5)[0x7f010b9fb295]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f010b31b76d]
/home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/bin/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.
------------------------------------------------------------------------

P Purkayastha

unread,
Sep 16, 2012, 4:59:16 AM9/16/12
to sage-s...@googlegroups.com
Works in 5.2 and 5.4beta1. I don't have 5.3 to test against right now.
> --
> You received this message because you are subscribed to the Google
> Groups "sage-support" group.
> To post to this group, send email to sage-s...@googlegroups.com.
> To unsubscribe from this group, send email to
> sage-support...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
>
>


William Stein

unread,
Sep 16, 2012, 11:55:04 PM9/16/12
to sage-s...@googlegroups.com
On Sun, Sep 16, 2012 at 1:59 AM, P Purkayastha <ppu...@gmail.com> wrote:
> Works in 5.2 and 5.4beta1. I don't have 5.3 to test against right now.

I think the relevant code hasn't changed in years; all it does is
allocate an array of doubles and put the entries in there. I'm
guessing the original poster's Sage install might have some much
deeper issue...

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

Rolandb

unread,
Sep 17, 2012, 5:44:24 AM9/17/12
to sage-s...@googlegroups.com
Hi all, thanks for the support!

Version 5.0: no problem

Versions 5.1 and 5.3:
ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory

It boils down to how to install libgfortran...

Roland

Volker Braun

unread,
Sep 17, 2012, 6:03:04 AM9/17/12
to sage-s...@googlegroups.com
On Fedora: sudo yum install libgfortran

Or build from source, then Sage will built its own fortran.

Jori Mantysalo

unread,
Sep 17, 2012, 6:19:08 AM9/17/12
to sage-s...@googlegroups.com
On Mon, 17 Sep 2012, Volker Braun wrote:

> On Fedora: sudo yum install libgfortran
>
> Or build from source, then Sage will built its own fortran.

Do it? To my experience this has failed and fortran is needed from host
system.

--
Jori M�ntysalo

Rolandb

unread,
Sep 17, 2012, 6:34:44 AM9/17/12
to sage-s...@googlegroups.com
Hi, I followed the instructions of Jan Groenewald and ... it works!

All thank for considering this item. Roland
Reply all
Reply to author
Forward
0 new messages