#12188: Bug in is_smooth for curves over CC
--------------------------------------+-----------------------------
       Reporter:  johanbosman         |         Owner:  AlexGhitza
           Type:  defect              |        Status:  needs_review
       Priority:  critical            |     Milestone:  sage-5.11
      Component:  algebraic geometry  |    Resolution:
       Keywords:  singular            |     Merged in:
        Authors:  Peter Bruin         |     Reviewers:
Report Upstream:  N/A                 |   Work issues:
         Branch:                      |  Dependencies:
       Stopgaps:                      |
--------------------------------------+-----------------------------
Changes (by {'newvalue': u'Peter Bruin', 'oldvalue': ''}):

 * status:  new => needs_review
 * author:   => Peter Bruin


Old description:

> {{{
> sage: P.<X,Y,Z> = CC[]
> sage: C = Curve(X)
> sage: C.is_smooth()
> singular_ring_delete(ring*) called with NULL pointer.
> ...
> Exception KeyError: (The ring pointer 0x0,) in
> 'sage.libs.singular.ring.singular_ring_delete' ignored
> True
> }}}

New description:

 {{{
 sage: P.<X,Y,Z> = CC[]
 sage: C = Curve(X)
 sage: C.is_smooth()
 singular_ring_delete(ring*) called with NULL pointer.
 ...
 Exception KeyError: (The ring pointer 0x0,) in
 'sage.libs.singular.ring.singular_ring_delete' ignored
 True
 }}}
 The cause is that if `GroebnerStrategy.__cinit__()` raises an exception,
 its `__dealloc__` method is still called.  Therefore `__dealloc__()`
 should only delete things that were actually constructed before the
 exception occurred.

 Apply: [attachment:trac_12188-singular_null_pointer.patch]

--

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