> I'm not seeing clearly what the problem is, could you please clarify
> some more. Thanks.
If you apply my first patch, you will get these segfaults:
sage -t devel/sage-main/sage/schemes/generic/spec.py sh: line
1: 2816 Segmentation fault
/home/ondrej/ext/sage-2.8.13-x86_64-Linux/local/bin/python
.doctest_spec.py >.doctest/out 2>.doctest/err
A mysterious error (perphaps a memory error?) occurred, which may have
crashed doctest.
The problem, as it turns out, is on the line 97 in spec.py:
sage: Spec(QQ) == 5
False
which goes into my patch, with x==Spec(QQ) and y==5, it pass all my
ifs, and then it segfaults. The workaround is to check that they have
the same parent, or just call _verify_canonical_coercion_c, that does
exactly that for me.
Ondrej
--~--~---------~--~----~------------~-------~--~----~
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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---