-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
Add signal handling to libecm.pyx #12777
Comments
Author: Jeroen Demeyer |
This comment has been minimized.
This comment has been minimized.
Dependencies: #12757 |
comment:5
Jeroen, you changed to "needs work" but did not mention what are the work issues. Paul |
comment:6
I rebased it on top of #12757 (which has positive review). |
comment:7
when recompiling Sage with this patch, I got a warning that variables f and n were referenced before assignment. Maybe it happened before this patch. Some comments on the patch itself: "The Elliptic Curve Method for Integer Factorization (GMP-ECM)": please replace GMP-ECM by ECM, since GMP-ECM is only one implementation of the ECM algorithm. "Try to find a factor of a number": it would be better to say "integer", or even "positive integer". "number to be factored": replace by "integer to be factored" About the example with the factor from 2167-1: the B1 bound 1e5 is not enough to ensure "The following number is a Mersenne prime, so we will not find any factors": this is not For the example with the two prime factors of 2179-1, in fact B1=1e4 ensures we will find always both of them, as any value B1 >= 113. I suggest using B1=10 instead.
Paul |
Work Issues: cf issues in comment 7 |
Reviewer: Paul Zimmermann |
comment:9
Replying to @zimmermann6:
It's a spurious warning, the code is obviously fine. |
comment:10
Replying to @zimmermann6:
Actually, I did this on purpose as a mild test that the function works with things that aren't Integers but can be converted to Integers. |
comment:11
Replying to @zimmermann6:
Depends what you mean. If the |
comment:12
Replying to @zimmermann6:
Isn't it sufficient that 2352089 is below the B2 bound (which is the case)? |
comment:13
about comment [comment:11]: I only considered Step 1 in my analysis, But in some rare cases it can happen that some factor is found during the Paul |
comment:14
Replying to @jdemeyer:
you are right, but it might be that a future version of GMP-ECM changes the default B2 Paul |
comment:15
Okay, I made the changes you suggested. I also added a check that the given number is positive. |
comment:19
is there any reason the documentation is not built (or only partially) with sage-5.0.beta11? Paul |
comment:20
Replying to @zimmermann6:
No, I'm guessing something went wrong with your setup. Did you apply any other patches which might have broken the documentation? And what happens when you do |
comment:21
after Paul |
Merged: sage-5.0.beta14 |
comment:23
On
I have not yet investigated what causes this. |
Changed merged from sage-5.0.beta14 to none |
comment:24
Jeroen, did you get this error before the patch too? Paul |
comment:25
The problem is really with the interrupt test. Disabling that test makes everything pass. |
comment:26
do you mean the problem might be related to Paul |
comment:27
It looks like a bug in Cython. |
comment:28
After the interrupt test, the following doctest:
fails with:
|
comment:29
My current guess is that OpenSolaris's |
comment:30
Confirmed, it's a bug in |
comment:31
I opened #12873 for the Solaris issue. Restoring positive_review here, since the bug is unrelated to this ticket. |
comment:34
Jeroen, why reschedule to sage-pending and not sage-5.1? Paul |
Merged: sage-5.1.beta0 |
Add
sig_on()
/sig_off()
inlibecm.pyx
.Also add documentation and examples.
Depends on #12757
Depends on #12873
CC: @zimmermann6
Component: factorization
Author: Jeroen Demeyer
Reviewer: Paul Zimmermann
Merged: sage-5.1.beta0
Issue created by migration from https://trac.sagemath.org/ticket/12777
The text was updated successfully, but these errors were encountered: