4.5.2a (Linux) sends result after program termination
Posted: 21 Mar 2012, 01:25
I saw some strange behavior - Arasan was playing Gnuchess on FICS, and after the game was over (FICS had sent result), Arasan crashed. xboard though is still trying to send it commands (although the process is dead) and it is sending the incorrect result (result was 1-0 because GnuChess resigned, but xboard sends 0-1 because Arasanx later crashed). I don't think this causes any actual problem but xboard probably shouldn't try to send commands to a process it knows is dead. End of the debug log follows.
- Code: Select all
1600947 >first : result 1-0 {GnuCheese resigns}
1600948 >first : force
1600948 >first : ping 4
>ICS: gameend\015\012
>ICS: \015\012
Reset(1, 1) from gameMode 11
recognized 'normal' (-1) as variant normal
GameEnds(0, (null), 2)
shuffleOpenings = 0
1600950 >first : memory 516
1600950 >first : egtpath nalimov c:\egtb
1600950 >first : cores 4
1600950 >first : new
random
1600950 >first : ics freechess.org
1600950 >first : post
1600950 >first : hard
1600950 >first : ping 5
1600950 <first : # received 31 chars: # check_command: result 1-0 {GnuCheese resigns}
1600950 <first : # adding to pending list result 1-0 {GnuCheese resigns}, list size=0
1600950 <first : # received_result: result 1-0 {GnuCheese resigns}
1600950 <first : # terminating search (controller)
1600950 <first : # received 6 chars: # check_command: force
1600950 <first : # terminating search (controller)
1600950 <first : # received 7 chars: # check_command: ping 4
1600950 <first : # time check interval=508124 elapsed_time=553pong 4
1600950 <first : target=99999
1600950 <first : # done pondering
1600950 <first : # ponder move = a5-a6
1600950 <first : # out of ponder()
1600950 <first : removing:
<ICS: Your seek has been posted with index 7.\012\015(1 player(s) saw the seek.)\012\015fics%
ics input 0, castling = 7 0 4 7 0 4
GameEnds(26, Error: first chess program (/home/jdart/arasan-14.2.0/export/arasanx -H 512m -c 4 -ics -t) exited unexpectedly, 2)
1600984 >first : result 0-1 {Error: first chess program (/home/jdart/arasan-14.2.0/export/arasanx -H 512m -c 4 -ics -t) exited unexpectedly}
1600985 >first : force
1600985 >first : ping 6
1600985 >first : quit