20180524, 10:28  #1 
Mar 2018
17 Posts 
Exit status 15
While running GMPECM 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 gmpecm at https://www.systutorials.com/docs/linux/man/1gmpecm/. It doesn't show exit status 15.
Anyone know what this value means? I was running in quiet mode so no other indications. 
20180524, 10:34  #2  
(loop (#_fork))
Feb 2006
Cambridge, England
6383_{10} Posts 
Quote:
Last fiddled with by fivemack on 20180524 at 10:35 

20180528, 07:03  #3 
Mar 2018
11_{16} Posts 
@fivemack was right in saying that the process was terminated. I was running GMPECM 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 GMPECM subprocess was terminated by another process running on the same PC which was overzealous in trying to clean up orphaned subprocesses.

20201014, 23:21  #4 
Random Account
Aug 2009
77F_{16} Posts 
Sorry if this is a bit offtopic:
In looping mode using one, would GMPECM produce a nonzero exit code if a factor was found? 
20201015, 08:49  #5 
"Oliver"
Sep 2017
Porta Westfalica, DE
2^{2}·3^{2}·13 Posts 
Yes! If it finds the number itself:
Code:
~$ echo 2047  ecm one 1000 GMPECM 7.0.4 [configured with GMP 6.2.0, enableasmredc] [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 GMPECM 7.0.4 [configured with GMP 6.2.0, enableasmredc] [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^20471)'  ecm one 1 GMPECM 7.0.4 [configured with GMP 6.2.0, enableasmredc] [ECM] Input number is 2*(2^20471) (617 digits) ********** Factor found in step 1: 2 Found prime factor of 1 digits: 2 Composite cofactor (2*(2^20471))/2 has 617 digits ~$ echo $? 6 I'd have to look into the code if there are other possibilities. 
20201015, 13:00  #6  
Random Account
Aug 2009
19×101 Posts 
Quote:
I was looking for a way to incorporate this into a Windows batch file. Below is an example: Quote:


Thread Tools  
Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
GMPECM 6.2.3 exit with 0xc0000005  yoyo  GMPECM  14  20090429 18:28 
GMPECM 6.2.1 exit with 0xc00000fd  yoyo  GMPECM  13  20090331 21:29 
Crash on exit  rbarreira  Software  0  20031130 03:28 
Will a forced exit loose work ?  dsouza123  NFSNET Discussion  1  20030815 02:56 
Status  norbert  Lounge  5  20021115 14:41 