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

Comment(by fbissey):

 Replying to [comment:16 vbraun]:
 > In the case at hand we don't really need the Cython class
 `GroebnerStrategy._parent`, only the C struct
 `GroebnerStrategy._parent._ring` is used in `__deallocate__()`. I've made
 a minimal patch that adds a `cdef ring *_parent_ring` data member to
 `GroebnerStrategy` to keep track of the ring only. Because it refers to a
 C struct, it is safe to access it the Cython destructor. Because parents
 are immutable we don't have to worry about the `ring *` pointer becoming
 invalid.
 >
 > The patch should fix the crash, but I don't have a Sage-on-Python-2.7
 install to test it. Can somebody give it a try?


 Does it depend on other patches that are post 4.7.1.alpha2? The feedback
 so far is that it doesn't work but I noticed there was some work in
 singular and rings in alpha3 and alpha4. Would it rely on any of these
 fixes?

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