Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flint -- hangs computing certain degenerate case xgcd's #7518

Closed
williamstein opened this issue Nov 23, 2009 · 13 comments
Closed

flint -- hangs computing certain degenerate case xgcd's #7518

williamstein opened this issue Nov 23, 2009 · 13 comments

Comments

@williamstein
Copy link
Contributor

Observe:

sage: Q.<x> = ZZ[]
sage: gcd(Q(2),x^2)
1
sage: xgcd(Q(2),x^2)
<hang forever!>

whereas

sage: Q.<x> = PolynomialRing(ZZ,implementation="NTL")
sage: type(x)
<type 'sage.rings.polynomial.polynomial_integer_dense_ntl.Polynomial_integer_dense_ntl'>
sage: gcd(Q(2),x^2)
1
sage: xgcd(Q(2),x^2)
(4, 2, 0)

works fine.

Depends on #9858

Upstream: Fixed upstream, in a later stable release.

CC: david.kirkby@onetel.net

Component: packages: standard

Reviewer: Jeroen Demeyer

Issue created by migration from https://trac.sagemath.org/ticket/7518

@sagetrac-drkirkby
Copy link
Mannequin

sagetrac-drkirkby mannequin commented Dec 24, 2009

comment:1

The 'Report Upstream:' field is set to N/A. Is that appropiate, or should it be reported to the flint developers?

@williamstein
Copy link
Contributor Author

Upstream: Not yet reported upstream; Will do shortly.

@williamstein
Copy link
Contributor Author

comment:3

That Report Upstream button is annoying. I just reported it upstream, and the only option I can select to change from "Not yet reported" is "Reported; little feedback". Huh? I want to change it "Reported upstream". Of course there is no feedback, since I reported it seconds ago.

@williamstein
Copy link
Contributor Author

Changed upstream from Not yet reported upstream; Will do shortly. to Reported upstream. Little or no feedback.

@williamstein
Copy link
Contributor Author

comment:4
from	Bill Hart <goodwillhart@googlemail.com>
to	William Stein <wstein@gmail.com>
date	Thu, Dec 24, 2009 at 5:23 PM
subject	Re: flint bug maybe
	
hide details 5:23 PM (7 hours ago)
	
Yes, it is a (fairly trivial) flint bug. I'll try and issue a fix later today.

Thanks.

Bill.

@williamstein
Copy link
Contributor Author

Changed upstream from Reported upstream. Little or no feedback. to Fixed upstream, in a later stable release.

@sagetrac-drkirkby
Copy link
Mannequin

sagetrac-drkirkby mannequin commented Dec 25, 2009

comment:5

I don't see why the 'Reported; little feedback' should be annoying. The fact you have reported it is acknowldeged, the fact you have got no feedback is true.

Once you get some feedback, then update it. It this case, I would have updated it to 'Preported Upstream. Developers acknowldge it's a bug', since at this point in time, there is no fix.

What I think would be usefully added is 'Reported upstream. Useful feedback'. Sometimes it takes quite a bit of discussion to decide whether its a Sage bug or a bug in the upstream code.

@williamstein
Copy link
Contributor Author

comment:6
OK, I persisted with the very slow machine and got flint-1.5.1
released, which fixes this bug. All the test code passes, including
the test function I wrote for the case reported.
-- Bill Hart

@sagetrac-drkirkby
Copy link
Mannequin

sagetrac-drkirkby mannequin commented Aug 23, 2010

comment:7

Is anyone looking up updating the flint package in Sage to cure this bug? According to this ticket, flint 1.5.1 was released 8 months ago.

Dave

@nexttime
Copy link
Mannequin

nexttime mannequin commented Sep 1, 2011

comment:8

Replying to @sagetrac-drkirkby:

Is anyone looking up updating the flint package in Sage to cure this bug? According to this ticket, flint 1.5.1 was released 8 months ago.

Dave

I'm upgrading FLINT to 1.5.2 (not 1.6, at least for the moment, nor 2.x) for a couple of reasons (e.g. failing to build the test suite with MPIR 2.x, cf. #9858, #8664; ARM support, cf. #10328). I had an almost ready spkg last year, but now have to rebase my changes since the p5 has meanwhile become a p9. (There's a lot wrong with this spkg, especially the makefile, but also spkg-install and even SPKG.txt.)

I so far can confirm that the failing example given above works with FLINT 1.5.2, so this ticket can most probably be closed when a new FLINT spkg has been merged.

Stay tuned on #9858.

@nexttime
Copy link
Mannequin

nexttime mannequin commented Sep 1, 2011

Dependencies: #9858

@nexttime nexttime mannequin unassigned aghitza Sep 1, 2011
@nexttime nexttime mannequin added p: critical / 2 and removed p: major / 3 labels Sep 1, 2011
@jdemeyer
Copy link

Reviewer: Jeroen Demeyer

@jdemeyer
Copy link

comment:9

Works now.

@jdemeyer jdemeyer removed this from the sage-5.10 milestone May 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants