#9583: Unhandled SIGSEGV with 4.5.2.alpha0 on t2
-----------------------+----------------------------------------------------
   Reporter:  mpatel   |       Owner:  drkirkby  
       Type:  defect   |      Status:  new       
   Priority:  blocker  |   Milestone:  sage-4.5.2
  Component:  solaris  |    Keywords:            
     Author:           |    Upstream:  N/A       
   Reviewer:           |      Merged:            
Work_issues:           |  
-----------------------+----------------------------------------------------

Comment(by drkirkby):

 I got the same problem on a SPARC of mine, but managed to quite easily
 find the problem running

 {{{
 sage -gdb
 }}}

 Here we can see what line  causes the problem, though I expect it is auto
 generated by Cython, so knowing which line of python it is might be more
 difficult.

 {{{
 drkir...@redstart:~/32/sage-4.5.2.alpha0$ ./sage -gdb
 ----------------------------------------------------------------------
 | Sage Version 4.5.2.alpha0, Release Date: 2010-07-21                |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 **********************************************************************
 *                                                                    *
 * Warning: this is a prerelease version, and it may be unstable.     *
 *                                                                    *
 **********************************************************************
 /export/home/drkirkby/32/sage-4.5.2.alpha0/local/bin/sage-ipython
 GNU gdb (GDB) 7.0.1
 Copyright (C) 2009 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 "sparc-sun-solaris2.10".
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>...
 Reading symbols from
 /export/home/drkirkby/32/sage-4.5.2.alpha0/local/bin/python...done.
 [Thread debugging using libthread_db enabled]
 [New Thread 1 (LWP 1)]
 Python 2.6.4 (r264:75706, Jul 23 2010, 17:40:08)
 [GCC 4.4.3] on sunos5
 Type "help", "copyright", "credits" or "license" for more information.

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 1 (LWP 1)]
 0xfa660a74 in
 __pyx_pf_4sage_4libs_8singular_6option_27LibSingularOptions_abstract_load
 (__pyx_v_self=0x1f2b8f0,
     __pyx_args=0x1e58310, __pyx_kwds=<value optimized out>) at
 sage/libs/singular/option.cpp:1800
 1800      Kstd1_mu = __pyx_t_5;
 Current language:  auto
 The current source language is "auto; currently c++".
 (gdb) br
 __pyx_pf_4sage_4libs_8singular_6option_27LibSingularOptions_abstract_load
 Breakpoint 1 at 0xfa6606d8: file sage/libs/singular/option.cpp, line 1679.
 (gdb) run
 The program being debugged has been started already.
 Start it from the beginning? (y or n) y
 Starting program:
 /export/home/drkirkby/32/sage-4.5.2.alpha0/local/bin/python -i
 [Thread debugging using libthread_db enabled]
 [New Thread 1 (LWP 1)]
 Python 2.6.4 (r264:75706, Jul 23 2010, 17:40:08)
 [GCC 4.4.3] on sunos5
 Type "help", "copyright", "credits" or "license" for more information.
 [Switching to Thread 1 (LWP 1)]

 Breakpoint 1,
 __pyx_pf_4sage_4libs_8singular_6option_27LibSingularOptions_abstract_load
 (__pyx_v_self=0x1f2b8f0,
     __pyx_args=0x1e58310, __pyx_kwds=0x0) at
 sage/libs/singular/option.cpp:1679
 1679      if (unlikely(__pyx_kwds)) {
 (gdb) s
 1669    static PyObject
 
*__pyx_pf_4sage_4libs_8singular_6option_27LibSingularOptions_abstract_load(PyObject
 *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
 (gdb) n
 0xfa6532d8 in call_frame_dummy ()
    from /export/home/drkirkby/32/sage-4.5.2.alpha0/local/lib/python2.6
 /site-packages/sage/libs/singular/option.so
 (gdb) n
 Single stepping until exit from function call_frame_dummy,
 which has no line number information.
 __pyx_pf_4sage_4libs_8singular_6option_27LibSingularOptions_abstract_load
 (__pyx_v_self=0x1f2b8f0, __pyx_args=0x1e58310,
     __pyx_kwds=0x0) at sage/libs/singular/option.cpp:1679
 1679      if (unlikely(__pyx_kwds)) {
 (gdb) n
 1701        switch (PyTuple_GET_SIZE(__pyx_args)) {
 (gdb) n
 1702          case  1: __pyx_v_value = PyTuple_GET_ITEM(__pyx_args, 0);
 (gdb) n
 1714      __Pyx_INCREF((PyObject *)__pyx_v_self);
 (gdb)
 1715      __Pyx_INCREF(__pyx_v_value);
 (gdb)
 1724      __pyx_t_1 = PyObject_RichCompare(__pyx_v_value, Py_None, Py_EQ);
 if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno =
 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 (gdb)
 1715      __Pyx_INCREF(__pyx_v_value);
 (gdb)
 1724      __pyx_t_1 = PyObject_RichCompare(__pyx_v_value, Py_None, Py_EQ);
 if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno =
 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 (gdb)
 1726      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if
 (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno =
 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 (gdb)
 1727      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 (gdb)
 1728      if (__pyx_t_2) {
 (gdb)
 1762      __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_value, 0, sizeof(long),
 PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0];
 __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 (gdb)
 1764      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3))
 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno =
 __LINE__; goto __pyx_L1_error;}
 (gdb)
 1769      __pyx_t_1 = PyObject_Call(((PyObject
 *)((PyObject*)&PyInt_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_1))
 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno =
 __LINE__; goto __pyx_L1_error;}
 (gdb)
 1766      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
 (gdb)
 1769      __pyx_t_1 = PyObject_Call(((PyObject
 *)((PyObject*)&PyInt_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_1))
 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno =
 __LINE__; goto __pyx_L1_error;}
 (gdb)
 1771      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
 (gdb)
 5168        if (likely(PyInt_Check(x))) {
 (gdb)
 1773      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 (gdb)
 1774      (((struct
 __pyx_obj_4sage_4libs_8singular_6option_LibSingularOptions_abstract
 *)__pyx_v_self)->global_options[0]) = __pyx_t_4;
 (gdb)
 1783      __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_value, 1, sizeof(long),
 PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0];
 __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 (gdb)
 1785      __pyx_t_5 = __Pyx_PyInt_AsInt(__pyx_t_1); if
 (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename =
 __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto
 __pyx_L1_error;}
 (gdb)
 1786      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 (gdb)
 1787      Kstd1_deg = __pyx_t_5;
 (gdb)
 1796      __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_value, 2, sizeof(long),
 PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0];
 __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
 (gdb)
 1798      __pyx_t_5 = __Pyx_PyInt_AsInt(__pyx_t_1); if
 (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename =
 __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto
 __pyx_L1_error;}
 (gdb)
 1799      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
 (gdb)
 1802      __pyx_r = Py_None; __Pyx_INCREF(Py_None);
 (gdb)
 1800      Kstd1_mu = __pyx_t_5;
 (gdb)

 Program received signal SIGSEGV, Segmentation fault.
 0xfa660a74 in
 __pyx_pf_4sage_4libs_8singular_6option_27LibSingularOptions_abstract_load
 (__pyx_v_self=0x1f2b8f0,
     __pyx_args=0x1e58310, __pyx_kwds=<value optimized out>) at
 sage/libs/singular/option.cpp:1800
 1800      Kstd1_mu = __pyx_t_5;
 (gdb)
 }}}

 Dave

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9583#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.

Reply via email to