#5182: Strange Symmetrica segfault
-----------------------------+----------------------------------------------
Reporter: jbandlow | Owner: mhansen
Type: defect | Status: new
Priority: major | Milestone: sage-4.4.2
Component: combinatorics | Keywords: symmetrica
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Changes (by jbandlow):
* priority: minor => major
* upstream: => N/A
Comment:
Replying to [ticket:5182 jbandlow]:
> This is from sagenb running sage 3.3.alpha3:
>
> {{{
> sage: dd = { Partition([1]) : 1 } ; ee = { Partition([1]) : int(1) } ; s
= SFASchur(QQ)
> sage: (s._from_dict(dd), s._from_dict(ee)) # This is fine
> (s[1], s[1])
> sage: 1 * s._from_dict(dd) # This is fine
> s[1]
> sage: 1 * s._from_dict(ee) # This fails
> Exception exceptions.TypeError: 'cannot convert a (= 1) to OP' in
> 'sage.libs.symmetrica.symmetrica._op_schur_general_dict' ignored
> function: mult(1)
> python: �73x�
> Connection to localhost closed.
> }}}
>
>
> This is a low priority for me, since the obvious workaround is not to
put 'int's in this kind of dictionary, but I wanted to report it.
Update in sage-4.4. This bug can occur without using private methods.
{{{
sage: sage: s = SymmetricFunctions(QQ).schur()
sage: sage: s.sum_of_terms([ (Partition([i]), i) for i in range(3) ])
s[1] + 2*s[2]
sage: sage: s.sum_of_terms([ (Partition([i]), i) for i in range(3) ]) * 1
Exception TypeError: 'cannot convert a (= 1) to OP' in
'sage.libs.symmetrica.symmetrica._op_schur_general_dict' ignored
function: mult_bruch(2) not definied for object type:
kind of object is empty-object
python: function: mult_bruch(2) not definied for object type:
: Operation not permitted
}}}
This is a segfault and exits sage.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5182#comment:2>
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.