Ticket #1406 (closed defect: fixed)
[with patch] bug in coercion of multivariate polynomials (possibly libsingular related)
| Reported by: | was | Owned by: | mhansen |
|---|---|---|---|
| Priority: | major | Milestone: | sage-2.9 |
| Component: | basic arithmetic | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
Reducing a polynomial to the libsingular polynomials to GF(pn) is buggy as the following examples all illustrate.
sage: R.<x,y> = QQ[] sage: S.<xx,yy> = GF(5)[] sage: S(5*x*y + x + 17*y) 0*xx*yy + xx + 2*yy sage: R.<x,y> = ZZ[] sage: S.<xx,yy> = GF(5)[] sage: R.<x,y> = ZZ[] sage: S.<xx,yy> = GF(25,'a')[] sage: S(5*x*y + x + 17*y) 0*xx*yy + xx + 2*yy sage: type(S(5*x*y + x + 17*y)) <type 'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular'> sage: R.<x,y> = ZZ[] sage: S.<xx,yy> = Integers(5)[] sage: S(5*x*y + x + 17*y) xx + 2*yy
Attachments
Change History
comment:1 Changed 5 years ago by mhansen
- Owner changed from somebody to mhansen
- Status changed from new to assigned
comment:2 Changed 5 years ago by mhansen
- Summary changed from bug in coercion of multivariate polynomials (possibly libsingular related) to [with patch] bug in coercion of multivariate polynomials (possibly libsingular related)
Changed 5 years ago by was
-
attachment
trac-1406.patch
added
This is a -- I think -- better version of the 1406.patch that mhansen attached -- use it instead.
comment:3 Changed 5 years ago by was
Bonus -- my patch doesn't cause segfaults in multi_polynomial_ideal.py... I think.
comment:4 Changed 5 years ago by mhansen
Actually, it turns out that that segfault was there all along (with or without the patch). See #1409 .
Note: See
TracTickets for help on using
tickets.

I have a fix for this, but it causes a segfault in the testing of multi_polynomial_ideal.py .
--Mike