#10833: Unhandled SIGSEGV on large expand of iterated polynomial
--------------------------+-------------------------------------------------
   Reporter:  katestange  |       Owner:  AlexGhitza                         
       Type:  defect      |      Status:  needs_info                         
   Priority:  minor       |   Milestone:  sage-4.6.2                         
  Component:  algebra     |    Keywords:  expand, polynomial, polynomial ring
     Author:              |    Upstream:  N/A                                
   Reviewer:              |      Merged:                                     
Work_issues:              |  
--------------------------+-------------------------------------------------

Comment(by dsm):

 On OS X 10.6.6, 4.6.2.rc0 under -gdb:

 {{{
 sage: g = expand(iterkate(6))

 Program received signal EXC_BAD_ACCESS, Could not access memory.
 Reason: 13 at address: 0x0000000000000000
 0x000000010789eb2e in GiNaC::mul::compare ()
 (gdb) backtrace
 #0  0x000000010789eb2e in GiNaC::mul::compare ()
 #1  0x00000001078079df in
 std::__unguarded_linear_insert<__gnu_cxx::__normal_iterator<GiNaC::expair*,
 std::vector<GiNaC::expair, std::allocator<GiNaC::expair> > >,
 GiNaC::expair, GiNaC::expair_rest_is_less> ()
 #2  0x000000010780a3b5 in
 std::__final_insertion_sort<__gnu_cxx::__normal_iterator<GiNaC::expair*,
 std::vector<GiNaC::expair, std::allocator<GiNaC::expair> > >,
 GiNaC::expair_rest_is_less> ()
 #3  0x0000000107804d1b in GiNaC::expairseq::canonicalize ()
 #4  0x0000000107804d4c in GiNaC::expairseq::construct_from_epvector ()
 #5  0x00000001077bf580 in GiNaC::add::add ()
 #6  0x00000001077bf6d0 in GiNaC::add::expand ()
 #7  0x00000001077fd165 in GiNaC::ex::expand ()
 #8  0x0000000107deeb7f in
 __pyx_pf_4sage_8symbolic_10expression_10Expression_expand
 (__pyx_v_self=0x10c9cf170, __pyx_args=0x10023c050, __pyx_kwds=<value
 temporarily unavailable, due to optimizations>) at
 sage/symbolic/expression.cpp:13836
 #9  0x00000001000b6472 in PyEval_EvalFrameEx ()
 #10 0x00000001000b9002 in PyEval_EvalCodeEx ()
 #11 0x00000001000b61b5 in PyEval_EvalFrameEx ()
 #12 0x00000001000b9002 in PyEval_EvalCodeEx ()
 #13 0x00000001000b875e in PyEval_EvalFrameEx ()
 #14 0x00000001000b9002 in PyEval_EvalCodeEx ()
 [etc]
 }}}

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