#15052: plot_field crashes if if self.options() is called for an object with an
unknown option
--------------------------------+----------------------------
Reporter: twch | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.12
Component: graphics | Resolution:
Keywords: | Merged in:
Authors: Tobias Weich | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
--------------------------------+----------------------------
Description changed by twch:
Old description:
> Consider the following example:
>
> {{{
> sage: x,y=var('x,y')
> sage: P=plot_vector_field((sin(x), cos(y)), (x,-3,3), (y,-3,3),
> wrong_option='nonsense')
> sage: P[0].options()['plot_points']
> }}}
>
> One would expect that this returns the value of plot_points together with
> a warning that a unknown option is set. Instead it enters an infinite
> loop and crashes
New description:
Consider the following example:
{{{
sage: x,y=var('x,y')
sage: P=plot_vector_field((sin(x), cos(y)), (x,-3,3), (y,-3,3),
wrong_option='nonsense')
sage: P[0].options()['plot_points']
}}}
One would expect that this returns the value of plot_points together with
a warning that a unknown option is set. Instead it enters an infinite loop
and crashes
----
apply trac_15052_fixes_infinite_loop.patch to devel/sage
--
--
Ticket URL: <http://trac.sagemath.org/ticket/15052#comment:4>
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.