#6163: pynac -- segfault probably caused by cmp somehow and using intervals
----------------------+-----------------------------------------------------
Reporter: was | Owner: burcin
Type: defect | Status: assigned
Priority: major | Milestone: sage-4.0.1
Component: calculus | Keywords:
----------------------+-----------------------------------------------------
Changes (by burcin):
* status: new => assigned
Comment:
Shorter snippet:
{{{
sage: var('theta1,theta2')
var('theta1,theta2')
sage: (theta1 == theta2).test_relation()
/home/burcin/sage/sage-4.0.rc1/local/bin/sage-sage: line 198: 8823
Segmentation fault sage-ipython "$@" -i
}}}
This doesn't have a problem:
{{{
sage: var('t1,t2')
(t1, t2)
sage: (t1 == t2).test_relation()
False
}}}
This is caused by the fact that theta1 and theta2 have the same hash (as
all symbolic variables which have the same 4 characters in their name),
and trying to put them as keys in a dictionary calls `__nonzero__`() and
test_relation() in turn, causing an infinite loop.
{{{
sage: hash(theta1) == hash(theta2)
True
sage: hash(t1) == hash(t2)
False
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6163#comment:1>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---