mersenneforum.org  

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

Reply
 
Thread Tools
Old 2009-04-28, 12:43   #1
yoyo
 
yoyo's Avatar
 
Oct 2006
Berlin, Germany

22×32×17 Posts
Default GMP-ECM 6.2.3 exit with 0xc0000005

Hello,
some of my Boinc useres have crashing gmp-ecm on Windows 32 bit systems. This mostly happens on systems with less memory e.g. 3GB and high ecm predicted memory, e.g. 2GB.
It happend already with GMP-ECM 6.2.1.

Here is an example result:
http://www.rechenkraft.net/yoyo/resu...sultid=3052022
on this host:
http://www.rechenkraft.net/yoyo/show...p?hostid=12108
The predicted RAM was 2GB.
Exactly the same happend here:
http://www.rechenkraft.net/yoyo/resu...sultid=3030183
host:
http://www.rechenkraft.net/yoyo/show...p?hostid=27840
Both crashed after 1,7h of runtime, I think in phase2.

The user posted also a stack where it crashed:
http://www.rechenkraft.net/phpBB/vie...105109#p105109
maybe it helps.
yoyo
yoyo is offline   Reply With Quote
Old 2009-04-28, 13:10   #2
Jeff Gilchrist
 
Jeff Gilchrist's Avatar
 
Jun 2003
Ottawa, Canada

22248 Posts
Default

Which binary are you using a MingW32 or the MSVC (my) binary?

Jeff.
Jeff Gilchrist is offline   Reply With Quote
Old 2009-04-28, 15:13   #3
yoyo
 
yoyo's Avatar
 
Oct 2006
Berlin, Germany

22×32×17 Posts
Default

Your binary.
yoyo is offline   Reply With Quote
Old 2009-04-28, 15:51   #4
Jeff Gilchrist
 
Jeff Gilchrist's Avatar
 
Jun 2003
Ottawa, Canada

49416 Posts
Default

Unfortunately I don't have a Windows 32bit OS with enough memory to actually do any tests on. Hopefully Alex can take a look at that stack dump and maybe see something that points to the problem or recognize the error code.

It is hitting both a Core2 and AMD system so doesn't seem to be an architecture specific bug.

Is that repeatable for them? Maybe you can get them to try one of Yamato's Mingw32 win32 binaries (with muldrec asm):
http://www.kay-schoenberger.de/eng/m...m623_win32.zip
or (no muldrec asm)
http://www.kay-schoenberger.de/eng/m...23_win32_2.zip

Jeff.
Jeff Gilchrist is offline   Reply With Quote
Old 2009-04-28, 17:06   #5
10metreh
 
10metreh's Avatar
 
Nov 2008

91216 Posts
Default

Doesn't Win32 only allow 2GB per process?
10metreh is offline   Reply With Quote
Old 2009-04-28, 19:01   #6
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

9A316 Posts
Default

The stack trace does not tell much... looks like it tried to dereference the value in eax which happened to be 0. This might be an out-of-memory situation in the Schönhage-Strassen code. Is the output from the aborted run available, preferably with -v? How much memory does GMP-ECM think it'll need, and how much is actually getting allocated? If it needs more than 2GB, does the machine allow more than 2GB VM size per process?

Alex
akruppa is offline   Reply With Quote
Old 2009-04-28, 19:33   #7
yoyo
 
yoyo's Avatar
 
Oct 2006
Berlin, Germany

22×32×17 Posts
Default

If 2GB is a limit on 32bit windows (also on 32 bit Linux), is it than possible to run it with -maxmem 2000000?
yoyo
yoyo is offline   Reply With Quote
Old 2009-04-28, 19:39   #8
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

2,467 Posts
Default

I'm not sure how accurate the memory estimation is under Windows, better try first. If the estimates aren't too far off, then you could use -maxmem 2000 (the unit is megabytes!) or maybe 1800 or so to leave a safety margin.

Alex
akruppa is offline   Reply With Quote
Old 2009-04-28, 19:57   #9
yoyo
 
yoyo's Avatar
 
Oct 2006
Berlin, Germany

61210 Posts
Default

This is the output before the crash:
Code:
GMP-ECM 6.2.3 [powered by GMP 4.2.1_MPIR_1.1.1] [ECM]
Input number is 9498541323...7059673777 (1210 digits)
[Tue Apr 28 18:31:26 2009]
Using special division for factor of 2^4253+1
Using B1=43000000, B2=198654756318, polynomial Dickson(12), sigma=4258974300
dF=92160, k=2, d=1021020, d2=19, i0=24
Expected number of curves to find a factor of n digits:
20   25   30   35   40   45   50   55   60   65
2   5   15   56   253   1323   7837   51385   373591   2960912
Step 1 took 8725000ms
Estimated memory usage: 2494M
Initializing tables of differences for F took 2312ms
Computing roots of F took 191547ms
yoyo
yoyo is offline   Reply With Quote
Old 2009-04-28, 21:59   #10
Andi_HB
 
Andi_HB's Avatar
 
Mar 2007
Germany

10816 Posts
Default

To increase the Limit from 32bit Windows you can try this in the comand prompt as admin. But thats without guarantee!
This German link http://www.pc-experience.de/wbb2/thr...threadid=24883 have more Informations about this (only German).

bcdedit /set IncreaseUserVA 3072
Andi_HB is offline   Reply With Quote
Old 2009-04-29, 12:27   #11
yoyo
 
yoyo's Avatar
 
Oct 2006
Berlin, Germany

22×32×17 Posts
Default

What would be the better option for win32 if I think it will require more than 2GB:
-k 8
or
-maxmem 1800 ?
yoyo

Last fiddled with by yoyo on 2009-04-29 at 12:27
yoyo is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime95 and 0xc0000005 error akutare1984 Information & Answers 4 2016-08-09 16:08
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

All times are UTC. The time now is 03:48.

Mon Apr 19 03:48:06 UTC 2021 up 10 days, 22:28, 0 users, load averages: 1.78, 1.64, 1.68

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.