On-line engine blitz tourney January

Discussion of chess software programming and technical issues.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
hgm
Posts: 23793
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: On-line engine blitz tourney January

Post by hgm » Sat Jan 24, 2015 12:05 pm

jorose wrote:As of currently I am able to log on to the server as a guest (yay!) including with my engine, as well as start a game against StockfishRB without issues. However, after my engine has successfully made its first move and SF replies, xboard instantly crashes with a segfault, presumably due to my engine. This does not occur when I am simply using xboard to play against my engine locally.

I was wondering if anybody has any ideas what the problem could be or what messages my engine might be getting that it wouldn't if it were to just play locally?
What XBoard version are you using, and can you run it with the extra option -debug and post the xboard.debug file here?

jorose
Posts: 269
Joined: Thu Jan 22, 2015 2:21 pm
Location: Zurich, Switzerland
Full name: Jonathan Rosenthal

Re: On-line engine blitz tourney January

Post by jorose » Sat Jan 24, 2015 12:50 pm

Thank you for the swift reply!

Xboard is "version 4.7.3 + Fairy-Max4.8Q (with Zippy code)"
I ran everything again with -debug. This time Stockfish had white so my engine didn't even make a move =(

Here is the end of the log file

Code: Select all

<ICS&#58; Issuing&#58; GuestEWZT (++++) StockfishRB &#40;2261&#41; unrated blitz 2 12.\012\015--** StockfishRB is a computer **--\012\015fics% 
ics input 0, castling = 7 0 4 7 0 4
<ICS&#58; \012\015StockfishRB accepts your challenge.\012\015fics% \012\015Creating&#58; StockfishRB &#40;2261&#41; GuestEWZT &#40;0&#41; unrated blitz 2 12\012\015\012\015
ics input 0, castling = 7 0 4 7 0 4
Ratings from 'Creating&#58;' StockfishRB 2261, GuestEWZT 0
<ICS&#58; &#123;Game 1 &#40;StockfishRB vs. GuestEWZT&#41; Creating unrated blitz match.&#125;\012\015\012\015<12> rnbqkbnr pppppppp -------- -------- -------- -------- PPPPPPPP RNBQKBNR W -1 1 1 1 1 0 1 StockfishRB GuestEWZT -1 2 12 39 39 120 120 1 none &#40;0&#58;00&#41; none 1 0\012\015\012\015fics% 
ics input 0, castling = 7 0 4 7 0 4
recognized 'unrated blitz match.' (-1&#41; as variant normal
Parsing board&#58; rnbqkbnr pppppppp -------- -------- -------- -------- PPPPPPPP RNBQKBNR W -1 1 1 1 1 0 1 StockfishRB GuestEWZT -1 2 12 39 39 120 120 1 none &#40;0&#58;00&#41; none 1 0

recognized 'ICS unrated blitz match' (-1&#41; as variant normal
ParseBoard says variant = 'ICS unrated blitz match'
recognized as normal
Remembered ratings&#58; W 2261, B 0
load 8x8 board
32430 >first &#58; level 0 2 12
32430 >first &#58; computer
32430 >first &#58; name StockfishRB
32430 >first &#58; rating 0 2261
Display title 'StockfishRB&#40;39&#41; GuestEWZT&#40;39&#41; &#123;2 12&#125;, gameInfo.variant = 0'
<ICS&#58; \012\015<12> rnbqkbnr pppppppp -------- -------- ----P--- -------- PPPP-PPP RNBQKBNR B 4 1 1 1 1 0 1 StockfishRB GuestEWZT 1 2 12 39 39 120 120 1 P/e2-e4 &#40;0&#58;00&#41; e4 1 0\012\015\012\015
ics input 0, castling = 7 0 4 7 0 4
Parsing board&#58; rnbqkbnr pppppppp -------- -------- ----P--- -------- PPPP-PPP RNBQKBNR B 4 1 1 1 1 0 1 StockfishRB GuestEWZT 1 2 12 39 39 120 120 1 P/e2-e4 &#40;0&#58;00&#41; e4 1 0

load 8x8 board
parseboard 1, castling = 7 0 4 7 0 4
accepted move e4 from ICS, parse it.
moveNum = 1
board = 0-8 x 8
Move parsed to 'e4 &#40;0&#58;00&#41;'
32540 >first &#58; time 12000
32540 >first &#58; otim 12000
book hit = &#40;NULL&#41;
32540 >first &#58; usermove 32540 >first &#58; e2e4
Display title 'StockfishRB&#40;39&#41; GuestEWZT&#40;39&#41; &#123;2 12&#125;, gameInfo.variant = 0'
<ICS&#58; fics% \012\015StockfishRB&#40;2261&#41;&#40;C&#41; kibitzes&#58; !!! +0.00/0 &#40;0.00 sec, 0 nodes, 0 knps&#41; PV=e2e4 \012\015\   &#40;xbook&#41;\012\015fics% 
ics input 1, castling = 7 0 4 7 0 4
Edit: I reran it again with debug mode to try to get more information from debug, which worked as I got white this time =)

Code: Select all

<ICS&#58; Issuing&#58; GuestNZTT (++++) StockfishRB &#40;2261&#41; unrated blitz 2 12.\012\015--** StockfishRB is a computer **--\012\015fics% 
ics input 0, castling = 7 0 4 7 0 4
<ICS&#58; \012\015StockfishRB accepts your challenge.\012\015fics% \012\015Creating&#58; GuestNZTT &#40;0&#41; StockfishRB &#40;2261&#41; unrated blitz 2 12\012\015\012\015&#123;Game 1 &#40;GuestNZTT vs. StockfishRB&#41; Creating unrated blitz match.&#125;\012\015\012\015<12> rnbqkbnr pppppppp -------- -------- -------- -------- PPPPPPPP RNBQKBNR W -1 1 1 1 1 0 1 GuestNZTT StockfishRB 1 2 12 39 39 120 120 1 none &#40;0&#58;00&#41; none 0 0\012\015\012\015
ics input 0, castling = 7 0 4 7 0 4
Ratings from 'Creating&#58;' GuestNZTT 0, StockfishRB 2261
recognized 'unrated blitz match.' (-1&#41; as variant normal
Parsing board&#58; rnbqkbnr pppppppp -------- -------- -------- -------- PPPPPPPP RNBQKBNR W -1 1 1 1 1 0 1 GuestNZTT StockfishRB 1 2 12 39 39 120 120 1 none &#40;0&#58;00&#41; none 0 0

recognized 'ICS unrated blitz match' (-1&#41; as variant normal
ParseBoard says variant = 'ICS unrated blitz match'
recognized as normal
Remembered ratings&#58; W 0, B 2261
load 8x8 board
26425 >first &#58; level 0 2 12
26425 >first &#58; computer
26425 >first &#58; name StockfishRB
26425 >first &#58; rating 0 2261
26425 >first &#58; time 12000
26425 >first &#58; otim 12000
book hit = &#40;NULL&#41;
26425 >first &#58; go
Display title 'GuestNZTT&#40;39&#41; StockfishRB&#40;39&#41; &#123;2 12&#125;, gameInfo.variant = 0'
<ICS&#58; fics% 
ics input 0, castling = 7 0 4 7 0 4
26439 <first &#58; 1 +48 0 21 e4
26441 <first &#58; 2 +12 0 107 e4 e5
26441 <first &#58; 3 +31 0 787 e4 d5 Nc3
26441 <first &#58; 4 +12 1 2715 e4 d5 Nc3 Nf6
26447 <first &#58; 5 +31 2 12735 Nc3 d5 d4 Nf6 Nf3
26476 <first &#58; 6 +12 5 55817 Nc3 d5 d4 Nf6 Nf3 Nc6
26508 <first &#58; 7 +24 8 106576 Nc3 d5 d4 Nf6 Nf3 Nc6 Bf4
26751 <first &#58; 8 +17 32 513034 e4 d5 exd5 Qxd5 Nc3 Qe5+ Nge2 Nf6
27130 <first &#58; 9 +31 70 1155421 e4 d5 exd5 Nf6 Bb5+ Bd7 Bxd7+ Qxd7 c4
28576 <first &#58; 10 +22 215 3594923 e4 d5 exd5 Nf6 d4 Nxd5 Bd3 Nc6 c4 Ndb4
31836 <first &#58; 11 +37 541 9116610 e4 e5 Nf3 Nf6 Nc3 Nc6 d4 exd4 Nxd4 d5 Nxc6
39411 <first &#58; 12 +22 1299 21884922 e4 d5 exd5 Nf6 d4 Nxd5 Bd3 Nc6 Nf3 Ncb4 Be4 Be6
40667 <first &#58; 12 +22 1299 21884922 e4 d5 exd5 Nf6 d4 Nxd5 Bd3 Nc6 Nf3 Ncb4 Be4 Be6
40668 <first &#58; move e2e4
>ICS&#58; e2e4\012
>ICS&#58; kibitz !!! +0.22/12 &#40;12.99 sec, 21884922 nodes, 1685 knps&#41; PV=e4 d5 exd5 Nf6 d4 Nxd5 Bd3 Nc6 Nf3 Ncb4 Be4 Be6\012
nodes = 21884922, 21884922
<ICS&#58; \012\015<12> rnbqkbnr pppppppp -------- -------- ----P--- -------- PPPP-PPP RNBQKBNR B 4 1 1 1 1 0 1 GuestNZTT StockfishRB -1 2 12 39 39 120 120 1 P/e2-e4 &#40;0&#58;00&#41; e4 0 0\012\015\012\015fics% 
ics input 1, castling = 7 0 4 7 0 4
Parsing board&#58; rnbqkbnr pppppppp -------- -------- ----P--- -------- PPPP-PPP RNBQKBNR B 4 1 1 1 1 0 1 GuestNZTT StockfishRB -1 2 12 39 39 120 120 1 P/e2-e4 &#40;0&#58;00&#41; e4 0 0

load 8x8 board
parseboard 1, castling = 7 0 4 7 0 4
accepted move e4 from ICS, parse it.
moveNum = 1
board = 0-8 x 8
Move parsed to 'e4 &#40;0&#58;00&#41;'
Display title 'GuestNZTT&#40;39&#41; StockfishRB&#40;39&#41; &#123;2 12&#125;, gameInfo.variant = 0'
<ICS&#58; Player "StockfishRB" isn't listening to unregistered tells.\012\015kibitzed to 1.\012\015fics% 
ics input 1, castling = 7 0 4 7 0 4
<ICS&#58; \012\015<12> rnbqkbnr pp-ppppp -------- --p----- ----P--- -------- PPPP-PPP RNBQKBNR W 2 1 1 1 1 0 1 GuestNZTT StockfishRB 1 2 12 39 39 120 120 2 P/c7-c5 &#40;0&#58;00&#41; c5 0 1\012\015\012\015fics% 
ics input 1, castling = 7 0 4 7 0 4
Parsing board&#58; rnbqkbnr pp-ppppp -------- --p----- ----P--- -------- PPPP-PPP RNBQKBNR W 2 1 1 1 1 0 1 GuestNZTT StockfishRB 1 2 12 39 39 120 120 2 P/c7-c5 &#40;0&#58;00&#41; c5 0 1

load 8x8 board
parseboard 2, castling = 7 0 4 7 0 4
accepted move c5 from ICS, parse it.
moveNum = 2
board = 0-8 x 8
Move parsed to 'c5 &#40;0&#58;00&#41;'
40878 >first &#58; time 12000
40878 >first &#58; otim 12000
book hit = &#40;NULL&#41;
40878 >first &#58; usermove 40878 >first &#58; c7c5
nps&#58; w=-1, b=-1
Display title 'GuestNZTT&#40;39&#41; StockfishRB&#40;39&#41; &#123;2 12&#125;, gameInfo.variant = 0'
<ICS&#58; \012\015StockfishRB&#40;2261&#41;&#40;C&#41; kibitzes&#58; !!! +0.00/0 &#40;0.00 sec, 0 nodes, 0 knps&#41; PV=c7c5 \012\015\   &#40;xbook&#41;\012\015fics% 
ics input 2, castling = 7 0 4 7 0 4

User avatar
hgm
Posts: 23793
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: On-line engine blitz tourney January

Post by hgm » Sat Jan 24, 2015 1:23 pm

It seems in both cases XBoard crashes when processing the kibitz message from the opponent. Did you see that message appear before XBoard crashed?

What Linux distro are you running? Could you install XBoard 4.8.0 from source, to see if the same problem occurs there?

Henk
Posts: 5833
Joined: Mon May 27, 2013 8:31 am

Re: On-line engine blitz tourney January

Post by Henk » Sat Jan 24, 2015 1:46 pm

Why are there always so few weak engines joining ? Can't be that difficult to create a weak engine.

jorose
Posts: 269
Joined: Thu Jan 22, 2015 2:21 pm
Location: Zurich, Switzerland
Full name: Jonathan Rosenthal

Re: On-line engine blitz tourney January

Post by jorose » Sat Jan 24, 2015 2:10 pm

I got the following message in the terminal as it crashed:

Code: Select all

Player "StockfishRB" isn't listening to unregistered tells.1.Segmentation fault &#40;core dumped&#41;
Im running on Xubuntu 14.04 LTS which is essentially just Ubuntu 14.04 with the XFCE desktop environment. Kernel is 3.13.0-44-generic

I tried running the whole scenario again with SF instead of my own engine and indeed it did crash, so it seems its not my engine misbehaving after all.

Ill see what I can do, I honestly haven't compiled many programs from scratch (in fact my engine is my first c++ program which actually uses header files) so no guarantees Ill manage.

jorose
Posts: 269
Joined: Thu Jan 22, 2015 2:21 pm
Location: Zurich, Switzerland
Full name: Jonathan Rosenthal

Re: On-line engine blitz tourney January

Post by jorose » Sat Jan 24, 2015 2:55 pm

Hmm, I guess it depends on what you define as few and more importantly what you define as "weak"? If I manage to get everything working I expect to end up somewhere at the bottom quarter of the table with my engine.

op12no2
Posts: 349
Joined: Tue Feb 04, 2014 11:25 am
Location: Mumbles, Wales, UK.
Full name: Colin Jenkins
Contact:

Re: On-line engine blitz tourney January

Post by op12no2 » Sat Jan 24, 2015 2:59 pm

I've managed to get Lozza to play (actually get slaughtered by ChengRB to be more accurate :) ) but there is no engine output for her - other engines seem OK. I'm just sending standard UCI stuff. Do I need to do anything ICS specific?

Henk
Posts: 5833
Joined: Mon May 27, 2013 8:31 am

Re: On-line engine blitz tourney January

Post by Henk » Sat Jan 24, 2015 3:05 pm

jorose wrote:Hmm, I guess it depends on what you define as few and more importantly what you define as "weak"? If I manage to get everything working I expect to end up somewhere at the bottom quarter of the table with my engine.
With weak I mean fide rating 1800. Other people said 2200 is already poor playing for an engine.

Henk
Posts: 5833
Joined: Mon May 27, 2013 8:31 am

Re: On-line engine blitz tourney January

Post by Henk » Sat Jan 24, 2015 3:09 pm

I don't think it's much fun playing a tournament where almost all opponents play 500 ELO stronger. But I can always watch TV simultaneously.

User avatar
hgm
Posts: 23793
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: On-line engine blitz tourney January

Post by hgm » Sat Jan 24, 2015 3:11 pm

jorose wrote:Im running on Xubuntu 14.04 LTS which is essentially just Ubuntu 14.04 with the XFCE desktop environment. Kernel is 3.13.0-44-generic

I tried running the whole scenario again with SF instead of my own engine and indeed it did crash, so it seems its not my engine misbehaving after all.

Ill see what I can do, I honestly haven't compiled many programs from scratch (in fact my engine is my first c++ program which actually uses header files) so no guarantees Ill manage.
This crash looks pretty mysterious to me. Steven Edwards also has been suffering mysterious crashes of XBoard in ICS/zippy mode, but I have never been able to reproduce those. If you can compile we could put in a few print statement to try to debug this. Or perhaps it simply goes away when you use another XBoard version, or perhaps even anothe build (GTK instead of Xaw).

From the debug log you posted it can be seen that the crash happens after receiving the kibitz message from the ICS. First thing I would like to know is if it indeed crashes somewhere during processing of this, (by printing something when the socket input handler returns), or whether is occurs in processing of later system events (i.e. in the library of the widget set) triggered by it.

Post Reply