#11967: os x 10.7 Lion -- Sage segfaults on startup when initializing GiNaC
-----------------------+----------------------------------------------------
Reporter: was | Owner: drkirkby
Type: defect | Status: new
Priority: major | Milestone: sage-4.8
Component: porting | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-----------------------+----------------------------------------------------
Comment(by was):
OK, I'm next rebuilding everything (pynac spkg + "sage -ba"), with that
static library (mentioned in the previous comment above) *deleted* to
avoid it accidentally getting linked in somewhere. This did not help.
Starting Sage fails with this traceback now (different than before):
{{{
terminate called throwing an exception
Program received signal SIGABRT, Aborted.
0x00007fff941a182a in __kill ()
(gdb) bt
#0 0x00007fff941a182a in __kill ()
#1 0x00007fff8d186a9c in abort ()
#2 0x00007fff8d0fe7bc in abort_message ()
#3 0x00007fff8d0fbfcf in default_terminate ()
#4 0x00007fff8ccc21cd in _objc_terminate ()
#5 0x00007fff8d0fc001 in safe_handler_caller ()
#6 0x00007fff8d0fc05c in std::terminate ()
#7 0x00007fff8d0fd152 in __cxa_throw ()
#8 0x0000000101f1cb85 in py_error (s=0xe688 <Address 0xe688 out of
bounds>) at numeric.cpp:131
#9 0x0000000101f2915e in Integer (x=@0x100308fa0) at numeric.cpp:169
#10 0x0000000101f29dd6 in Rational () at
/Users/wstein/sage/install/sage-4.7.3.alpha1/spkg/build/pynac-0.2.3/src/ginac/numeric.cpp:180
#11 0x0000000101f29dd6 in GiNaC::Number_T::operator/ (this=0x6, x=@0x0) at
numeric.cpp:554
#12 0x0000000101f2a549 in GiNaC::numeric::numeric (this=0xe688,
numer=59016, denom=2) at numeric.cpp:1410
#13 0x0000000101f672ea in GiNaC::library_init::library_init (this=0xe688)
at utils.cpp:288
#14 0x0000000101e00bf9 in __static_initialization_and_destruction_0
[inlined] () at
/Users/wstein/sage/install/sage-4.7.3.alpha1/spkg/build/pynac-0.2.3/src/ginac/py_funcs.cpp:59
}}}
What's happening here is this code is run during pynac initialization and
totally fails due to the {{{PyImport_ImportModule(...)}}} failing,
returning an error pointer that is invalid, which again suggests that the
PYthon library is somehow not properly initialized.
{{{
PyObject* Integer(const long int& x) {
if (initialized)
return GiNaC::py_funcs.py_integer_from_long(x);
// Slow version since we can't call Cython-exported code yet.
PyObject* m = PyImport_ImportModule("sage.rings.integer");
if (!m)
py_error("Error importing sage.rings.integer");
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11967#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.