mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > GMP-ECM

Reply
 
Thread Tools
Old 2007-11-18, 21:36   #1
MatWur-S530113
 
MatWur-S530113's Avatar
 
Apr 2007
Spessart/Germany

16210 Posts
Default Strange bug with GMP-ECM

hello,

until yesterday I run GMP-ECM. I installed it step-by-step with MinGW/MSys some weeks ago. I used GMP-ECM v 6.1.2 and GMP v 4.1.4 . Everything worked well, I was able to write batch-files (I'm using WinXP and an Intel E6600 DualCore processor) like this:

ecm -c 300 5e4 < input.file >> output.file

The batch file run 300 curves, results are in output.file and if the cofactor is probable prime ECM stopped. Everything ok and good.

Today I installed GMP-ECM new, again using MinGW/MSys. But I used GMP-ECM v 6.1.3 and GMP v 4.2.2 . I used the same Msys as before and I got a new ecm.exe in a new subdirectory. I started to factor with this new version and some hours everything was ok. But now something strange happened: I run the batch file above, but only 1 curve run, then ECM stops. There is no factor, the input number is composite, I don't see a reason that ECM stops. It should run 300 curves. But it stops after 1 curve.
OK I thought, maybe a little bug in the new version and I went back to the old version. But now there is the same. I only can run 1 curve with the switch -c , then ECM stops. I tried another number to factor, same problem with both versions.

The fault was *not* soon after installing the new version, some hours (about 3) everything was ok. I made a virus check and a torture test with prime95 (2 hours), no problems with the hardware detected.

I don't know where the problem could be. Maybe I should use a new instance of MSys in a new directory? But 3 hours everything was ok, incl. the ECM outputs with the versions of GMP and ECM-GMP. The old version gives ECM 6.1.2/GMP 4.1.4 , the new version output is ECM 6.1.3/GMP 4.2.2 as it should be. Any idea to solve this problem?

Thanks in advance.

greetings

Matthias
MatWur-S530113 is offline   Reply With Quote
Old 2007-11-18, 22:12   #2
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

46478 Posts
Default

Make sure that the input file ends with a "Carriage Return" character - then it should work.

Last fiddled with by Andi47 on 2007-11-18 at 22:15 Reason: typo
Andi47 is offline   Reply With Quote
Old 2007-11-19, 00:01   #3
MatWur-S530113
 
MatWur-S530113's Avatar
 
Apr 2007
Spessart/Germany

101000102 Posts
Default

Hello again,

thank you Andi, that it was... I must have deleted the LF/CR by mistake. And I copied the input file to the old version, so there was the bug, too...

ok, problem solved, done, thanks again.

greetings

Matthias
MatWur-S530113 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Something strange ... bayanne Software 6 2016-04-06 04:33
Something *really* strange schickel FactorDB 7 2012-02-02 00:10
A strange applet: 3.14159 Miscellaneous Math 7 2010-06-01 01:29
A strange RSA key siew Factoring 70 2010-05-31 22:31
Strange bug HiddenWarrior Software 5 2005-08-22 08:34

All times are UTC. The time now is 19:34.

Mon Oct 26 19:34:06 UTC 2020 up 46 days, 16:45, 0 users, load averages: 1.61, 1.76, 1.81

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.