WBEC Ridderkerk new results.

Archive of the old Parsimony forum. Some messages couldn't be restored. Limitations: Search for authors does not work, Parsimony specific formats do not work, threaded view does not work properly. Posting is disabled.

Re: Gothmog 0.4.8 en-passant bug

Postby Dann Corbit » 08 Jun 2004, 01:45

Geschrieben von:/Posted by: Dann Corbit at 08 June 2004 02:45:32:
Als Antwort auf:/In reply to: Re: Gothmog 0.4.8 en-passant bug geschrieben von:/posted by: Sune Fischer at 08 June 2004 01:20:48:
DanChess has a serious crashing problem. Among other crashes, I also noticed a crash at the 231st move. I hope it can be fixed soon.
Hi
Maximum set of moves allowed in DanChess was 460 half moves[230 full moves].
I increased that to 330 full moves now. I will send you a bug fixed version tommorrow.
The maximum possible chess game is about 6000 moves.
I have computer games with more than 500 full moves in them.
Hi Dann
I have made it 1000 half moves now.
In my opinion , the GUI has to stop a drawish game after some time.
best
daniel
No you can't expect that of a GUI, but you don't need it either.
Frenzee has a max game length of 1000 plies minus max search depth of 64,
if the game reaches 935 plies it must stop or it will crash, so it resigns.
It has never happened yet AFAIK so it's not costing any points, but it does
prevent even a theoretical crash.
I think it by far the easiest solution, the alternative is to fiddle with remallocs and stuff, it's bound to get ugly.
Then allocate 12000 plies (or surrender like your program does). But to simply crash because of bounds over-write is not an acceptable solution because it is not guaranteed to happen. Allowing writes past the end of an array is undefined behavior that is often exploited.
If you hardcode an array length that can be overwritten, then your program is a virus engine. It is no different than a program that does gets(string) because the program can be used to take over a machine and do vicious things. It is criminal negligence, as far as I am concerned.



my ftp site {remove http:// unless you like error messages}
Dann Corbit
 

Re: Gothmog 0.4.8 en-passant bug

Postby Sune Fischer » 08 Jun 2004, 07:38

Geschrieben von:/Posted by: Sune Fischer at 08 June 2004 08:38:36:
Als Antwort auf:/In reply to: Re: Gothmog 0.4.8 en-passant bug geschrieben von:/posted by: Dann Corbit at 08 June 2004 02:45:32:
DanChess has a serious crashing problem. Among other crashes, I also noticed a crash at the 231st move. I hope it can be fixed soon.
Hi
Maximum set of moves allowed in DanChess was 460 half moves[230 full moves].
I increased that to 330 full moves now. I will send you a bug fixed version tommorrow.
The maximum possible chess game is about 6000 moves.
I have computer games with more than 500 full moves in them.
Hi Dann
I have made it 1000 half moves now.
In my opinion , the GUI has to stop a drawish game after some time.
best
daniel
No you can't expect that of a GUI, but you don't need it either.
Frenzee has a max game length of 1000 plies minus max search depth of 64,
if the game reaches 935 plies it must stop or it will crash, so it resigns.
It has never happened yet AFAIK so it's not costing any points, but it does
prevent even a theoretical crash.
I think it by far the easiest solution, the alternative is to fiddle with remallocs and stuff, it's bound to get ugly.
Then allocate 12000 plies (or surrender like your program does). But to simply crash because of bounds over-write is not an acceptable solution because it is not guaranteed to happen. Allowing writes past the end of an array is undefined behavior that is often exploited.
If you hardcode an array length that can be overwritten, then your program is a virus engine. It is no different than a program that does gets(string) because the program can be used to take over a machine and do vicious things. It is criminal negligence, as far as I am concerned.
Um Dann, I think you misunderstood something :)
"if the game reaches 935 plies it must stop or it will crash, so it resigns."
Note the ",SO IT RESIGNS" part, no crash on this account :)
I completely agree with you of course, and if the engine crashes it loses anyway, so there is little reason to not just make a clean exit.
-S.
Sune Fischer
 

Re: Gothmog 0.4.8 en-passant bug

Postby Dann Corbit » 09 Jun 2004, 00:55

Geschrieben von:/Posted by: Dann Corbit at 09 June 2004 01:55:19:
Als Antwort auf:/In reply to: Re: Gothmog 0.4.8 en-passant bug geschrieben von:/posted by: Sune Fischer at 08 June 2004 08:38:36:
DanChess has a serious crashing problem. Among other crashes, I also noticed a crash at the 231st move. I hope it can be fixed soon.
Hi
Maximum set of moves allowed in DanChess was 460 half moves[230 full moves].
I increased that to 330 full moves now. I will send you a bug fixed version tommorrow.
The maximum possible chess game is about 6000 moves.
I have computer games with more than 500 full moves in them.
Hi Dann
I have made it 1000 half moves now.
In my opinion , the GUI has to stop a drawish game after some time.
best
daniel
No you can't expect that of a GUI, but you don't need it either.
Frenzee has a max game length of 1000 plies minus max search depth of 64,
if the game reaches 935 plies it must stop or it will crash, so it resigns.
It has never happened yet AFAIK so it's not costing any points, but it does
prevent even a theoretical crash.
I think it by far the easiest solution, the alternative is to fiddle with remallocs and stuff, it's bound to get ugly.
Then allocate 12000 plies (or surrender like your program does). But to simply crash because of bounds over-write is not an acceptable solution because it is not guaranteed to happen. Allowing writes past the end of an array is undefined behavior that is often exploited.
If you hardcode an array length that can be overwritten, then your program is a virus engine. It is no different than a program that does gets(string) because the program can be used to take over a machine and do vicious things. It is criminal negligence, as far as I am concerned.
Um Dann, I think you misunderstood something :)
"if the game reaches 935 plies it must stop or it will crash, so it resigns."
Note the ",SO IT RESIGNS" part, no crash on this account :)
I completely agree with you of course, and if the engine crashes it loses anyway, so there is little reason to not just make a clean exit.
-S.
Hence, I said:
"(or surrender like your program does)"
;-)


my ftp site {remove http:// unless you like error messages}
Dann Corbit
 

Previous

Return to Archive (Old Parsimony Forum)

Who is online

Users browsing this forum: No registered users and 20 guests