![]() |
![]() |
#1 |
Mar 2018
17 Posts |
![]()
While running GMP-ECM with B1=11000000 and c=1302, it stopped with Exit status 15 and found no factors. The only place I have found the exit status values documented is the Linux Man page for gmp-ecm at https://www.systutorials.com/docs/linux/man/1-gmp-ecm/. It doesn't show exit status 15.
Anyone know what this value means? I was running in quiet mode so no other indications. |
![]() |
![]() |
![]() |
#2 | |
(loop (#_fork))
Feb 2006
Cambridge, England
143518 Posts |
![]() Quote:
Last fiddled with by fivemack on 2018-05-24 at 10:35 |
|
![]() |
![]() |
![]() |
#3 |
Mar 2018
17 Posts |
![]()
@fivemack was right in saying that the process was terminated. I was running GMP-ECM on Windows 7 as a Python subprocess. Akos Kiss at https://bugs.python.org/issue31863 reports that processes CAN return exit code 15 when terminated on Windows. In my case, the GMP-ECM subprocess was terminated by another process running on the same PC which was over-zealous in trying to clean up orphaned subprocesses.
|
![]() |
![]() |
![]() |
#4 |
Random Account
Aug 2009
U.S.A.
32×199 Posts |
![]()
Sorry if this is a bit off-topic:
In looping mode using -one, would GMP-ECM produce a non-zero exit code if a factor was found? |
![]() |
![]() |
![]() |
#5 |
"Oliver"
Sep 2017
Porta Westfalica, DE
2×7×29 Posts |
![]()
Yes! If it finds the number itself:
Code:
~$ echo 2047 | ecm -one 1000 GMP-ECM 7.0.4 [configured with GMP 6.2.0, --enable-asm-redc] [ECM] Input number is 2047 (4 digits) Using B1=1000, B2=51606, polynomial x^1, sigma=1:2307810929 Step 1 took 1ms ********** Factor found in step 1: 2047 Found input number N ~$ echo $? 8 Code:
~$ echo 2047 | ecm -one 1 GMP-ECM 7.0.4 [configured with GMP 6.2.0, --enable-asm-redc] [ECM] Input number is 2047 (4 digits) Using B1=1, B2=12, polynomial x^1, sigma=1:309160743 Step 1 took 0ms Step 2 took 0ms ********** Factor found in step 2: 23 Found prime factor of 2 digits: 23 Prime cofactor 89 has 2 digits ~$ echo $? 14 Code:
~$ echo '2*(2^2047-1)' | ecm -one 1 GMP-ECM 7.0.4 [configured with GMP 6.2.0, --enable-asm-redc] [ECM] Input number is 2*(2^2047-1) (617 digits) ********** Factor found in step 1: 2 Found prime factor of 1 digits: 2 Composite cofactor (2*(2^2047-1))/2 has 617 digits ~$ echo $? 6 I'd have to look into the code if there are other possibilities. |
![]() |
![]() |
![]() |
#6 | ||
Random Account
Aug 2009
U.S.A.
32·199 Posts |
![]() Quote:
I was looking for a way to incorporate this into a Windows batch file. Below is an example: Quote:
|
||
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
GMP-ECM 6.2.3 exit with 0xc0000005 | yoyo | GMP-ECM | 14 | 2009-04-29 18:28 |
GMP-ECM 6.2.1 exit with 0xc00000fd | yoyo | GMP-ECM | 13 | 2009-03-31 21:29 |
Crash on exit | rbarreira | Software | 0 | 2003-11-30 03:28 |
Will a forced exit loose work ? | dsouza123 | NFSNET Discussion | 1 | 2003-08-15 02:56 |
Status | norbert | Lounge | 5 | 2002-11-15 14:41 |