mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Lone Mersenne Hunters

Reply
Thread Tools
Old 2012-07-03, 09:54   #386
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

965610 Posts
Default

Good points axn and Dubslow.
It may be a hardware error, or some guys who love the credit more than the truth.

FWIW, mfaktc v0.18 finds both factors in a blink of an eye, with three different settings: 0 to 70, 65 to 70 and 65 to 66 bits (the difference is important, as for example in the first case he is sieving all 0-69 range in a single step).

Last fiddled with by LaurV on 2012-07-03 at 10:07
LaurV is online now   Reply With Quote
Old 2012-07-07, 01:32   #387
PageFault
 
PageFault's Avatar
 
Aug 2002
Dawn of the Dead

5·47 Posts
Default

Found another one ... M70002461

Code:
P-1 found a factor in stage #2, B1=810000, B2=21060000.
UID: PageFault/boxen_01, M70002461 has a factor: 10006641404605893135455599
k = 3 * 7 * 11 *17 * 1063 * 4931 * 3472289
PageFault is offline   Reply With Quote
Old 2012-07-07, 20:17   #388
Bdot
 
Bdot's Avatar
 
Nov 2010
Germany

11258 Posts
Default

Quote:
Originally Posted by dabaichi View Post
M601983997 has a factor: 60136908979114760311 (65.705 bits)
M601986001 has a factor: 41955526838838866881 (65.185 bits)

Both were found by trial factoring using Prime 95. However, the interesting part is that both had been TFed using mfakto up to 67 bits, but reported no factors. It leads me to think is it necessary to double check trial factoring results?
Good catch. I had already asked James to go over his factor DB to see if there are P-1 results that fall into a range that mfakto cleared as NF. I did not think of someone rechecking using prime95 ...

Quote:
Originally Posted by axn View Post
It depends. If it is a reproducible error (i.e. bug) in mfakto, then maybe. If it is a hardware issue, then no. AFAICT, "gpu 2 72" has been finding the expected number of factors.
In GPU272 I'm even 5% ahead of the expected (I know, law of small numbers).
Quote:
Originally Posted by Dubslow View Post
So someone should rerun those with mfakto, but I'd only be worried if they were different users.
I'll definitely check different settings for that tomorrow.

Would it be useful to add a checksum in the result lines, just to make sure it's not modified before submittal but we (I) really have to deal with a bug? At first, that checksum would only be recorded, but later the server could also verify it ...

Last fiddled with by Bdot on 2012-07-07 at 20:19
Bdot is offline   Reply With Quote
Old 2012-07-07, 20:28   #389
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

11·101 Posts
Default

Quote:
Originally Posted by Bdot View Post
Would it be useful to add a checksum in the result lines, just to make sure it's not modified before submittal but we (I) really have to deal with a bug? At first, that checksum would only be recorded, but later the server could also verify it ...
Yepp, would be useful! It would be easy to spot transmission errors and spot "stupid" people cheating. Because the code is GPL we must put the key (or whatever generates the checksum) into to code, too. So a "smart" cheater can create correct checksums for fake results. So a simple CRC32 is a good idea.

Oliver
TheJudger is offline   Reply With Quote
Old 2012-07-07, 20:53   #390
Bdot
 
Bdot's Avatar
 
Nov 2010
Germany

10010101012 Posts
Default

Axelsson posted on the GPU272 thread. I've sent him a PM asking for more details and help to spot the error/bug.
Bdot is offline   Reply With Quote
Old 2012-07-07, 21:40   #391
Axelsson
 
Jul 2012
Sweden

2·3·7 Posts
Default

I've been suspicious of the code, as I didn't find any factors after a couple of hundred candidates tested. When another guy found factors at the same bit level I finally got something to test against and when running mfakto I didn't find anything. I've been hunting for the bug a couple of days now but I wanted to be sure it was a bug in the code and not something I did....
... I've made a fool out of myself more than one time when I start posting on a new forum.



I almost understand the code now so I had started writing on an error report this afternoon, but Bdot beat me to it.

You don't need to worry about my exponents, when the bug is squashed I'll rerun any suspected exponents that I've reported.

/Göran
Axelsson is offline   Reply With Quote
Old 2012-07-08, 17:12   #392
Bdot
 
Bdot's Avatar
 
Nov 2010
Germany

3×199 Posts
Default

Short update: I can reproduce the bug and am debugging it right now. At first it seemed like it happens only when multiple bitlevels are done at once. But I've also seen the failure once with just 2^65 to 2^66.
Bdot is offline   Reply With Quote
Old 2012-07-08, 19:10   #393
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

11·101 Posts
Default

Hi,

please sent me a list of the test cases which fail with mfakto. I want to test them with mfaktc (because mfakto is based on mfaktc).
Bdot: if you have some details what/why it fails I would be happy if you tell me the details.

Oliver
TheJudger is offline   Reply With Quote
Old 2012-07-08, 19:47   #394
Bdot
 
Bdot's Avatar
 
Nov 2010
Germany

25516 Posts
Default

Quote:
Originally Posted by TheJudger View Post
Hi,

please sent me a list of the test cases which fail with mfakto. I want to test them with mfaktc (because mfakto is based on mfaktc).
Bdot: if you have some details what/why it fails I would be happy if you tell me the details.

Oliver
The testcase boils down to
Factor=N/A,601983997,65,66
Factor=N/A,601986001,65,66
which fails for two kernels with mfakto (barrett15_75 and mfakto_cl_71).

I've added them to the selftest where they fail as well. The other kernels find the factor, so it must be something in these two kernels. LaurV has done the tests for mfaktc already, and did not find a problem. I plan to not go to bed today before I killed that bug. By then I hopefully can tell you all what is affected and what not.
Bdot is offline   Reply With Quote
Old 2012-07-08, 22:48   #395
Bdot
 
Bdot's Avatar
 
Nov 2010
Germany

3×199 Posts
Default

Quote:
Originally Posted by Bdot View Post
The testcase boils down to
Factor=N/A,601983997,65,66
Factor=N/A,601986001,65,66
which fails for two kernels with mfakto (barrett15_75 and mfakto_cl_71).
The kernels are all OK, it's the precomputing step (doing the exponentiation without modular reduction on the CPU). One step too much for these two kernels led to an overflow in the first modulus in the kernel.

What are the conditions for the bug to happen?
  1. the exponent in binary must start with 1000111 (which means 71*2n < exp < 71*2n+2n). Interesting ranges include, for example, 37.224.449 .. 37.748.735, 74.448.897 .. 75.497.471, 595.591.169 .. 603.979.775 (the range where the two testcases came from).
  2. mfakto must have chosen either barrett15_75 or mfakto_cl_71 for the test
  3. the bitlevel(s) to be tested must be up to 271 or lesser (tests for 271..272 and 272..273 are not affected).
  4. barrett15_75 only: The lower the bitlevel, the higher the chance for the bug to occur. This kernel will likely not find any factors below 268 in the ranges mentioned in (1).
  5. mfakto_cl_71 only: the "miss" chance depends only on the bit-pattern of the factor - I did not evaluate them exactly as it would not add any value - the above ranges that were tested with this kernel should be rechecked.
Tests with (1) AND (2) AND (3) should be redone. Question is, how can we find them?

Tomorrow I will verify the above information - right now I'm quite tired ... I will provide a patch for mfakto within the next days - until then: keep away from the above ranges.

I'm really sorry for this trouble ...
Bdot is offline   Reply With Quote
Old 2012-07-09, 14:21   #396
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

9,767 Posts
Default

Quote:
Originally Posted by Bdot View Post
Tests with (1) AND (2) AND (3) should be redone. Question is, how can we find them?
If you give me the all of the ranges in question, I could quite easily spider them to find which candidates were TFed at the depths you've specified with mfakto using the two kernels in question.
chalsall is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
A new factor of F11?! siegert81 FermatSearch 2 2018-01-24 04:35
A fond farewell rogue Lounge 10 2008-11-21 05:25
who can factor 10^100+27? aaa120 Factoring 17 2008-11-13 19:23
New factor fivemack ElevenSmooth 4 2008-05-07 19:28
Shortest time to complete a 2^67 trial factor (no factor) dsouza123 Software 12 2003-08-21 18:38

All times are UTC. The time now is 10:38.


Mon Aug 2 10:38:12 UTC 2021 up 10 days, 5:07, 0 users, load averages: 2.11, 1.80, 1.52

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.