#14888: Make FiniteField_pari_ffelt the default for generic finite fields
-------------------------------------+-------------------------------------
       Reporter:  pbruin             |        Owner:  cpernet
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-5.13
      Component:  finite rings       |   Resolution:
       Keywords:  FiniteField        |    Merged in:
  performance                        |    Reviewers:  Jean-Pierre Flori,
        Authors:  Peter Bruin        |  Jeroen Demeyer
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
   Dependencies:  #12142, #15124,    |     Stopgaps:
  #15125                             |
-------------------------------------+-------------------------------------

Comment (by pbruin):

 Replying to [comment:31 jdemeyer]:
 > I agree that is a mistake, but on the other hand, we are not handling
 any errors here, so the non-reentrant error handling code isn't called. So
 that cannot explain the problem.
 Probably true; the only sort of thing that I could imagine happening here
 is that PARI runs out of stack space, the call has to be restarted, and
 the error handler does a `longjmp()` to the wrong stack frame.  However,
 this can hardly be the problem, because nothing is using a lot of PARI
 memory here.

 > > In the line `ret = ret + c`, could you replace `c` by `base(c)`
 > With that change, I no longer get the error (which unfortunately doesn't
 imply that the bug is fixed).
 Mysterious.  I checked that the coercion system does exactly the same
 thing internally, as it should (convert the Python int `c` to `pari_ffelt`
 and then add this to `ret` in `base`), so there is no other intermediate
 conversion that could go wrong.

--
Ticket URL: <http://trac.sagemath.org/ticket/14888#comment:32>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to