#11339: Illegal use of __deallocate__ in cython (pyx) code
-----------------------------------------------+----------------------------
   Reporter:  gagern                           |          Owner:  drkirkby      
                 
       Type:  defect                           |         Status:  needs_info    
                 
   Priority:  major                            |      Milestone:  sage-4.7.1    
                 
  Component:  algebra                          |       Keywords:  sd31          
                 
Work_issues:                                   |       Upstream:  N/A           
                 
   Reviewer:  François Bissey, Steven Trogdon  |         Author:  Volker Braun, 
Martin von Gagern
     Merged:                                   |   Dependencies:                
                 
-----------------------------------------------+----------------------------

Comment(by vbraun):

 Replying to [comment:33 malb]:
 > The API is as follows: `pXXX` does assume the `currRing` to be set,
 whereas `p_XXX` does not. However, sometimes there are bugs, i.e. you call
 `p_XXX` and it crashes unless `currRing` is set.

 I guessed that much, but a documented list of exceptions to that rule
 might be nice :-)

 > TBH, I don't like this blanket approach, did you run into specific
 problems? If so, I'd add a check to those functions instead of hiding bugs
 by forcing the ring.

 In principle I agree, but its probably more productive to first produce a
 working version and then see if it still works if we remove the blanket
 `rChangeCurrRing`. Right now I'm not sure if that is the underlying
 problem. I didn't find any 100% reliable testcase but in some cases adding
 the extra ring switch fixed segfaults, but only to reappear in other
 places.

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