#5838: crash in Singular's polynomial gcd
---------------------------------+------------------------------------------
Reporter: cwitty | Owner: malb
Type: defect | Status: new
Priority: critical | Milestone: sage-3.4.2
Component: commutative algebra | Keywords:
---------------------------------+------------------------------------------
Here's what I type to provoke the crash:
{{{
std = os.environ['SAGE_DATA'] + '/extcode/pickle_jar/pickle_jar.tar.bz2'
sage.structure.sage_object.unpickle_all(std)
sage.structure.sage_object.unpickle_all(std)
}}}
(this is the doctest of unpickle_all, plus an extra repetition of the
second line)
Here's the output:
{{{
sage: std = os.environ['SAGE_DATA'] +
'/extcode/pickle_jar/pickle_jar.tar.bz2'
sage: sage.structure.sage_object.unpickle_all(std)
/home/cwitty/sage-3.4.1.rc3/local/lib/python2.5/site-
packages/IPython/iplib.py:2073: DeprecationWarning: RQDF is deprecated;
use RealField(212) instead.
exec code_obj in self.user_global_ns, self.user_ns
Successfully unpickled 483 objects.
Failed to unpickle 0 objects.
sage: sage.structure.sage_object.unpickle_all(std)
/home/cwitty/sage-3.4.1.rc3/local/bin/sage-sage: line 198: 22270 Aborted
sage-ipython "$@" -i
}}}
The first section of the backtrace is:
{{{
#0 0x00007fc7c14c2105 in raise () from /lib/libc.so.6
#1 0x00007fc7c14c3623 in abort () from /lib/libc.so.6
#2 0x00007fc7bcedd6d8 in global_NTL_error_callback ()
from /home/cwitty/sage-3.4.1.rc3/local/lib/libcsage.so
#3 0x00007fc7bc9451ef in NTL::Error (
s=0x7fc7bc97def1 "InvMod: inverse undefined") at tools.c:38
#4 0x00007fc7bc88ebd9 in NTL::InvMod (a=<value optimized out>, n=244)
at ZZ.c:351
#5 0x00007fc7bc90545f in NTL::PlainRem (r...@0x7fffca29e230,
a...@0x7fffca29e230,
b...@0x6) at ../include/NTL/lzz_p.h:278
#6 0x00007fc7bc9140bb in NTL::GCD (d...@0x7fffca29e360,
u=<value optimized out>, v...@0x7fffca29e390) at lzz_pX1.c:558
#7 0x00007fc7a963206a in gcd_poly_p (f...@0x7fffca29e9e0,
g...@0x7fffca29e9d0)
at /home/cwitty/sage-3.4.1.rc3/local/include/NTL/lzz_pX.h:696
#8 0x00007fc7a9633835 in gcd_poly (f=<value optimized out>,
g...@0x7fffca29ee50)
at cf_gcd.cc:538
#9 0x00007fc7a963401e in gcd (f...@0x7fffca29ee60, g...@0x7fffca29ee50)
at cf_gcd.cc:776
#10 0x00007fc7a9634601 in gcd_test_one (f...@0x7fffca29f3b0,
g...@0x7fffca29f3c0,
swap=true) at cf_gcd.cc:76
#11 0x00007fc7a9631b70 in gcd_poly_p (f...@0x7fffca29f7b0,
g...@0x7fffca29f7a0)
at cf_gcd.cc:353
#12 0x00007fc7a963373d in gcd_poly (f=<value optimized out>,
g...@0x7fffca29fbb0)
at cf_gcd.cc:543
#13 0x00007fc7a9635d89 in chinrem_gcd (FF=<value optimized out>,
GG=<value optimized out>) at cf_gcd.cc:1088
#14 0x00007fc7a96337e1 in gcd_poly (f=<value optimized out>,
g...@0x7fffca2a0560)
at cf_gcd.cc:601
#15 0x00007fc7a963401e in gcd (f...@0x7fffca2a0550, g...@0x7fffca2a0560)
at cf_gcd.cc:776
#16 0x00007fc7a94a69f8 in singclap_gcd (f=0x7fc7a930b198,
g=0x7fc7a930b058)
at clapsing.cc:230
#17 0x00007fc7a992d2f9 in
__pyx_pf_4sage_5rings_10polynomial_28multi_polynomial_libsingular_23MPolynomial_libsingular_gcd
(__pyx_v_self=0x5e60830,
__pyx_args=<value optimized out>, __pyx_kwds=<value optimized out>)
at sage/rings/polynomial/multi_polynomial_libsingular.cpp:31063
#18 0x00000000004187e3 in PyObject_Call (func=0x58ad, arg=0x58ad, kw=0x6)
at Objects/abstract.c:1861
#19 0x00007fc7b3aaf02f in
__pyx_pf_4sage_5rings_22fraction_field_element_20FractionFieldElement_reduce
(__pyx_v_self=0x5e5e2d0, unused=<value optimized out>)
at sage/rings/fraction_field_element.c:2288
#20 0x00000000004187e3 in PyObject_Call (func=0x58ad, arg=0x58ad, kw=0x6)
at Objects/abstract.c:1861
#21 0x00007fc7b3aa3b2b in
__pyx_pf_4sage_5rings_22fraction_field_element_20FractionFieldElement___init__
(__pyx_v_self=0x5e5e2d0,
__pyx_args=<value optimized out>, __pyx_kwds=<value optimized out>)
at sage/rings/fraction_field_element.c:1905
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5838>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---