#6777: segfault with univariate polynomial, realfield, complexfield
-----------------------------------+----------------------------------------
   Reporter:  ncalexan             |          Owner:  malb               
       Type:  defect               |         Status:  new                
   Priority:  major                |      Milestone:  sage-4.8           
  Component:  commutative algebra  |       Keywords:  polynomial segfault
Work_issues:                       |       Upstream:  N/A                
   Reviewer:                       |         Author:                     
     Merged:                       |   Dependencies:                     
-----------------------------------+----------------------------------------
Changes (by SimonKing):

  * upstream:  => N/A


Comment:

 I don't obtain a segmentation fault, but this is on Debian GNU/Linux.

 On [http://groups.google.com/group/sage-
 devel/browse_thread/thread/d4807256e57cd843 sage-devel], it is discussed
 that one gets a rather strange phenomenon: Before the traceback starts,
 some ERROR is printed.
 {{{
 sage: RealField(300)['x']( [ 1, ComplexField(300).gen(), 0 ])
 ERROR: An unexpected error occurred while tokenizing input
 The following traceback may be corrupted or invalid
 The error message is: ('EOF in multi-line statement', (1375, 0))

 ERROR: An unexpected error occurred while tokenizing input
 The following traceback may be corrupted or invalid
 The error message is: ('EOF in multi-line statement', (1375, 0))

 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 }}}
 I get this with unpatched sage (hence, no segfault), and Michael Orlitzky
 reports the same after fixing the segfault.

 However, with some of my patches applied, one simply gets a straight
 forward traceback:
 {{{
 sage: RealField(300)['x']([ ComplexField(300).gen() ])
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)
 ...
 TypeError: Unable to convert x
 
(='1.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000*I')
 to real number.
 }}}

 Could you test whether #9138 (or perhaps #11900) actually fixes the
 problem already?

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