#13133: BooleanMonomial.index() SEGFAULT on constant monomials
-----------------------------------+----------------------------------------
   Reporter:  Bouillaguet          |             Owner:  malb                   
                    
       Type:  defect               |            Status:  new                    
                    
   Priority:  minor                |         Milestone:  sage-5.1               
                    
  Component:  commutative algebra  |          Keywords:                         
                    
Work issues:                       |   Report Upstream:  Not yet reported 
upstream; Will do shortly.
  Reviewers:                       |           Authors:  Charles Bouillaguet    
                    
  Merged in:                       |      Dependencies:  polybori               
                    
   Stopgaps:                       |  
-----------------------------------+----------------------------------------
 {{{
 sage: R.<x,y> = BooleanPolynomialRing()
 sage: R(1).lm().index()
 }}}
 crashes miserably (from inside polybori, as I understand) with:
 {{{

 /usr/local/sage/local/lib/libcsage.so(print_backtrace+0x3b)[0x1cd9d3]
 /usr/local/sage/local/lib/libcsage.so(sigdie+0x17)[0x1cda13]
 /usr/local/sage/local/lib/libcsage.so(sage_signal_handler+0x20d)[0x1cd598]
 [0xc27400]
 /usr/local/sage/local/lib/python2.6/site-
 packages/sage/rings/polynomial/pbori.so(+0x13d90)[0x5235d90]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x482e)[0x2a55ee]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x7d1)[0x2a6fa1]
 /usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalCode+0x63)[0x2a70c3]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x50c9)[0x2a5e89]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x7d1)[0x2a6fa1]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x4370)[0x2a5130]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x7d1)[0x2a6fa1]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x4370)[0x2a5130]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x59e1)[0x2a67a1]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x7d1)[0x2a6fa1]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x4370)[0x2a5130]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x7d1)[0x2a6fa1]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x4370)[0x2a5130]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x7d1)[0x2a6fa1]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalFrameEx+0x4370)[0x2a5130]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalCodeEx+0x7d1)[0x2a6fa1]
 /usr/local/sage/local/lib/libpython2.6.so.1.0(PyEval_EvalCode+0x63)[0x2a70c3]
 /usr/local/sage/local/lib/libpython2.6.so.1.0(PyRun_FileExFlags+0xb1)[0x2c6f91]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyRun_SimpleFileExFlags+0xdc)[0x2c71cc]
 
/usr/local/sage/local/lib/libpython2.6.so.1.0(PyRun_AnyFileExFlags+0x7a)[0x2c75fa]
 /usr/local/sage/local/lib/libpython2.6.so.1.0(Py_Main+0xc7d)[0x2d3c4d]
 python(main+0x27)[0x8048657]
 /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x405113]

 ------------------------------------------------------------------------
 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.
 ------------------------------------------------------------------------
 }}}

 This seems to be a bug in PolyBori. The patch I propose just checks that
 the monomial is not constant before calling the polybori function. This is
 a workaround though

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