I was able to find a case which crashed but doesn't have to crash
Sage.  Doesn't tell us much new, but here it is anyway:


sage: 12345678912345678912345678912345678901234567890.
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)

/Users/mcneil/Desktop/<ipython console> in <module>()

/Applications/Sage-5.0-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/IPython/Prompts.pyc
in __call__(self, arg)
    550
    551             # and now call a possibly user-defined print mechanism
--> 552             manipulated_val = self.display(arg)
    553
    554             # user display hooks can change the variable to be stored in

/Applications/Sage-5.0-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/IPython/Prompts.pyc
in _display(self, arg)
    576             return IPython.generics.result_display(arg)
    577         except TryNext:
--> 578             return self.shell.hooks.result_display(arg)
    579
    580     # Assign the default display method:

/Applications/Sage-5.0-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/IPython/hooks.pyc
in __call__(self, *args, **kw)
    139             #print "prio",prio,"cmd",cmd #dbg
    140             try:
--> 141                 ret = cmd(*args, **kw)
    142                 return ret
    143             except ipapi.TryNext, exc:

/Applications/Sage-5.0-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/displayhook.pyc
in result_display(ip_self, obj)
    150     # IPython's default result_display() uses the
IPython.genutils.Term.cout stream.
    151     # See also local/lib/python2.6/site-packages/IPython/hooks.py.
--> 152     print_obj(IPython.genutils.Term.cout, obj)
    153
    154 def displayhook(obj):

/Applications/Sage-5.0-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/displayhook.pyc
in print_obj(out_stream, obj)
    142             if _check_tall_list_and_print(out_stream, obj):
    143                 return
--> 144     print >>out_stream, `obj`
    145
    146 def result_display(ip_self, obj):

/Applications/Sage-5.0-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/rings/real_mpfr.so
in sage.rings.real_mpfr.RealNumber.__repr__
(sage/rings/real_mpfr.c:9440)()

/Applications/Sage-5.0-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/rings/real_mpfr.so
in sage.rings.real_mpfr.RealNumber.str
(sage/rings/real_mpfr.c:11259)()

RuntimeError: Illegal instruction

or under gdb:


sage: 12345678912345678912345678912345678901234567890.

Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/operand.
0x0000000101723ec7 in case3 ()
(gdb) bt
#0  0x0000000101723ec7 in case3 ()
#1  0x0000000103e6554f in mpfr_get_str ()
#2  0x0000000103dfac65 in __pyx_pf_4sage_5rings_9real_mpfr_10RealNumber_13str ()


Doug

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to