#11771: sage crashes on some degenerate flint xgcd's
--------------------------------+-------------------------------------------
   Reporter:  lftabera          |          Owner:  AlexGhitza                  
       Type:  defect            |         Status:  new                         
   Priority:  critical          |      Milestone:  sage-4.7.2                  
  Component:  basic arithmetic  |       Keywords:  flint, crash, xgcd fmpq_poly
Work_issues:                    |       Upstream:  N/A                         
   Reviewer:                    |         Author:                              
     Merged:                    |   Dependencies:                              
--------------------------------+-------------------------------------------

Comment(by leif):

 Replying to [comment:3 leif]:
 > Will retry with FLINT's debugging memory allocator enabled.

 Aha, with that, now even doctests fail:
 {{{
 ...
 Reallocing from 1 to 2 limbs on heap
 Reallocing from 1 to 2 limbs on heap
 Reallocing from 1 to 2 limbs on heap
 Releasing 2 limbs from heap
 Releasing 1 limbs from heap
 Releasing 1 limbs from heap
 Releasing 1 limbs from heap
 Releasing 1 limbs from heap
 *** glibc detected *** python: munmap_chunk(): invalid pointer:
 0x0000000007b474d8 ***
 ======= Backtrace: =========
 /lib/libc.so.6(+0x775b6)[0x7ff35856b5b6]
 
/tmp/Sage/sage-4.7.2.alpha2/local/lib/libflint.so(zmod_poly_factor_clear+0x3b)[0x7ff34b82cdab]
 
/tmp/Sage/sage-4.7.2.alpha2/local/lib/libflint.so(zmod_poly_factor_berlekamp+0xb6a)[0x7ff34b83360a]
 
/tmp/Sage/sage-4.7.2.alpha2/local/lib/libflint.so(zmod_poly_factor_berlekamp+0xaf4)[0x7ff34b833594]
 ======= Memory map: ========
 ...
 
/tmp/Sage/sage-4.7.2.alpha2/local/lib/libcsage.so(print_backtrace+0x31)[0x7ff3563aa817]
 /tmp/Sage/sage-4.7.2.alpha2/local/lib/libcsage.so(sigdie+0x14)[0x7ff3563aa849]
 
/tmp/Sage/sage-4.7.2.alpha2/local/lib/libcsage.so(sage_signal_handler+0x1d5)[0x7ff3563aa43b]
 /lib/libpthread.so.0(+0xf8f0)[0x7ff358f108f0]
 /lib/libc.so.6(gsignal+0x35)[0x7ff358527a75]
 /lib/libc.so.6(abort+0x180)[0x7ff35852b5c0]
 /lib/libc.so.6(+0x6d4fb)[0x7ff3585614fb]
 /lib/libc.so.6(+0x775b6)[0x7ff35856b5b6]
 
/tmp/Sage/sage-4.7.2.alpha2/local/lib/libflint.so(zmod_poly_factor_clear+0x3b)[0x7ff34b82cdab]
 
/tmp/Sage/sage-4.7.2.alpha2/local/lib/libflint.so(zmod_poly_factor_berlekamp+0xb6a)[0x7ff34b83360a]
 
/tmp/Sage/sage-4.7.2.alpha2/local/lib/libflint.so(zmod_poly_factor_berlekamp+0xaf4)[0x7ff34b833594]

 ------------------------------------------------------------------------
 Unhandled SIGABRT: An abort() 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.
 ------------------------------------------------------------------------
 Aborted
          [3.8 s]

 ----------------------------------------------------------------------
 The following tests failed:


         sage -t -long -verbose
 "devel/sage/sage/libs/flint/zmod_poly_linkage.pxi"
 Total time for all tests: 3.8 seconds
 }}}

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