mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Conjectures 'R Us

Reply
 
Thread Tools
Old 2009-11-03, 04:23   #232
Lennart
 
Lennart's Avatar
 
"Lennart"
Jun 2007

25·5·7 Posts
Post

Quote:
Originally Posted by rogue View Post
I found a major bug in 2.4.3 that occurs when the server allows for more than 15 or so workunits at a time and the client grabs that many. This causes the client to crash when returning them.

Here is a consolidated list of changes from 2.4.3:
  • all: Fix a crash that occurs when large messages (> 1000 bytes) are received.
  • server: Prevent server from double-checking primes.
  • server: Output a message if unable to open of the .removed files and keep candidate in the main file until the .removed file can be opened. This addresses a potential crash in which the server presumes that the .removed file could be opened.

You can d/l it from here.

Enjoy,
Mark
All servers on PG are now running 2.4.4 :)

Lennart

Last fiddled with by Lennart on 2009-11-03 at 04:23
Lennart is offline   Reply With Quote
Old 2009-11-03, 05:08   #233
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

624910 Posts
Default

Quote:
Originally Posted by rogue View Post
server: Prevent server from double-checking primes.
Quick question: why not doublecheck primes if doublechecking is turned on? Or is it assumed that most projects will have a separate process for doublechecking primes if they're doing doublechecking concurrently with the first-pass tests?
mdettweiler is offline   Reply With Quote
Old 2009-11-03, 12:39   #234
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24×397 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
Quick question: why not doublecheck primes if doublechecking is turned on? Or is it assumed that most projects will have a separate process for doublechecking primes if they're doing doublechecking concurrently with the first-pass tests?
The chance of running two tests on a number with two different programs and one returning PRP and the other prime is virtually impossible. If only a single test is used for primality (base 2 for example), then it is slightly more likely that the result is incorrect, but not significantly so. My recommendation is that projects do a second independent test for primality.
rogue is offline   Reply With Quote
Old 2009-11-03, 16:32   #235
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3×2,083 Posts
Default

Quote:
Originally Posted by rogue View Post
The chance of running two tests on a number with two different programs and one returning PRP and the other prime is virtually impossible. If only a single test is used for primality (base 2 for example), then it is slightly more likely that the result is incorrect, but not significantly so. My recommendation is that projects do a second independent test for primality.
Ah, right, I forgot about the second primality test. Okay, that makes sense.
mdettweiler is offline   Reply With Quote
Old 2009-11-10, 00:41   #236
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24·397 Posts
Default PRPNet 2.4.5 is released

This release addresses most (if not all) of the stability issues from 2.4.x. Thanks to Max and Lennart for assisting me in tracking down these nuisance bugs.

Here is a list of changes from 2.4.4:
  • all: Reduced socket timeout from 30 seconds to 10.
  • all: Fixed a crash that can occur when logging is turned on. This was inadvertently added in 2.4.4.
  • all: Modified handling of large messages since some OSs return the number of bytes read from the socket while others return the number of bytes in the receive buffer.

That last one was particularly nasty to diagnose and find because I could not reproduce it on any of the OSs available to me. Max is still experiencing some issues with PRPNet on Linux, which I hope to track down as soon as I has access to one of his boxes.

You can d/l it from here.

Enjoy,
Mark

Last fiddled with by rogue on 2009-11-10 at 00:42
rogue is offline   Reply With Quote
Old 2009-11-10, 01:42   #237
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11000110100002 Posts
Default

I fixed a stupid bug I introduced into the server. If you run the server, you will need to d/l again.
rogue is offline   Reply With Quote
Old 2009-11-19, 13:38   #238
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24×397 Posts
Default PRPNet 2.4.6 is released

You can d/l the software from here.AFAIK, this release resolves the last socket issue on Ubuntu (which I think has a bug WRT sockets). Here is a summary of changes
  • all: Force close of socket if nothing is received.
  • all: Use select() on the socket before receiving. On Linux (and only Linux), recv() will not return if there is nothing to be read from the socket. select() can be configured to timeout if there is nothing to be received. On all other OSs (Windows, Mac OS X, HP-UX, and Solaris) recv() return a 0 if there is nothing to be received.
  • prpadmin: Change order of includes to address builds on Unix.
  • prpadmin: Fixed an error where messages from server would not print.
  • prpserver: Modified generic server stats to not list GFN divisors found.
  • prpserver: Added HTML classes for GFNs, Primorials, and Factorials

Enjoy,
Mark

Last fiddled with by rogue on 2009-11-19 at 13:41
rogue is offline   Reply With Quote
Old 2009-11-22, 12:27   #239
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default

Hate to be the bearer of bad news again, but I'm getting some instability on the 2.4.6 client. It sometimes crashes at the end of a getwork communication. Nothing looks wrong in the communication, and there is no error message, just a silent crash. It does not write the files necessary to work the new assignments.
I'm currently trying to get some debug info and verify that it's on the released one (and not only one of the early-release versions of it).

Last fiddled with by Mini-Geek on 2009-11-22 at 12:45
Mini-Geek is offline   Reply With Quote
Old 2009-11-22, 13:08   #240
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11000110100002 Posts
Default

Quote:
Originally Posted by Mini-Geek View Post
Hate to be the bearer of bad news again, but I'm getting some instability on the 2.4.6 client. It sometimes crashes at the end of a getwork communication. Nothing looks wrong in the communication, and there is no error message, just a silent crash. It does not write the files necessary to work the new assignments.
I'm currently trying to get some debug info and verify that it's on the released one (and not only one of the early-release versions of it).
Make sure you let me know which OS this is affecting.
rogue is offline   Reply With Quote
Old 2009-11-23, 02:42   #241
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default

Quote:
Originally Posted by rogue View Post
Make sure you let me know which OS this is affecting.
Windows. More specifically, 32-bit XP SP3.
I've used the debugger just like I did for the server (except I have it attached to multiple processes to watch all the clients), including building it on my machine in debug mode and copying the .ilk and .pdb files to the running folder, but the debugger didn't trigger and show the problem when the client crashed again. I'm more confused than I was before... All it said in the debugger was "The program '[3136] prpclient.exe: Native' has exited with code -1 (0xffffffff)."
Just in case running one instance of Vis Studio on more than one client process was the reason it didn't tell me anything useful (at least not directly anyway, though perhaps the lack of error message is somewhat helpful), I'll run it overnight with it just attached to one client. Given the failure rate, I'd say there's a decent, but not near-certain, chance of it happening.

Last fiddled with by Mini-Geek on 2009-11-23 at 02:48
Mini-Geek is offline   Reply With Quote
Old 2009-11-23, 03:18   #242
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24×397 Posts
Default

Quote:
Originally Posted by Mini-Geek View Post
Windows. More specifically, 32-bit XP SP3.
I've used the debugger just like I did for the server (except I have it attached to multiple processes to watch all the clients), including building it on my machine in debug mode and copying the .ilk and .pdb files to the running folder, but the debugger didn't trigger and show the problem when the client crashed again. I'm more confused than I was before... All it said in the debugger was "The program '[3136] prpclient.exe: Native' has exited with code -1 (0xffffffff)."
Just in case running one instance of Vis Studio on more than one client process was the reason it didn't tell me anything useful (at least not directly anyway, though perhaps the lack of error message is somewhat helpful), I'll run it overnight with it just attached to one client. Given the failure rate, I'd say there's a decent, but not near-certain, chance of it happening.
The -1 is an exit, not a crash. This occurs when the client has detected an unrecoverable error, such as not being able to write to or read from a file. It can also happen if it could not parse the output from the helper program. If you run the client from a DOS window, it should show you an error before it terminates. I would suggest this rather than double-clicking on the exe from explorer.

If this is a problem with reading the output from a helper program, it should be fairly easy to fix. It is most likely due to the client not recognizing a line of output from the helper program.

Last fiddled with by rogue on 2009-11-23 at 03:20
rogue is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
PRPNet 5.4.3 Released rogue Software 178 2021-06-24 11:56
PSP goes prpnet ltd Prime Sierpinski Project 86 2012-06-06 02:30
PRPNet 4.0.0 Released rogue Software 84 2011-11-16 21:20
PRPNet 4.0.1 Released Joe O Sierpinski/Riesel Base 5 1 2010-10-22 20:11
PRPNet 3.0.0 Released rogue Conjectures 'R Us 220 2010-10-12 20:48

All times are UTC. The time now is 09:47.


Tue Jul 27 09:47:00 UTC 2021 up 4 days, 4:16, 0 users, load averages: 1.96, 2.02, 1.93

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.