What XBoard version are you using, and can you run it with the extra option -debug and post the xboard.debug file here?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?
On-line engine blitz tourney January
Moderators: hgm, Rebel, chrisw
-
- Posts: 27811
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: On-line engine blitz tourney January
-
- Posts: 360
- Joined: Thu Jan 22, 2015 3:21 pm
- Location: Zurich, Switzerland
- Full name: Jonathan Rosenthal
Re: On-line engine blitz tourney January
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
Edit: I reran it again with debug mode to try to get more information from debug, which worked as I got white this time =)
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: Issuing: GuestEWZT (++++) StockfishRB (2261) unrated blitz 2 12.\012\015--** StockfishRB is a computer **--\012\015fics%
ics input 0, castling = 7 0 4 7 0 4
<ICS: \012\015StockfishRB accepts your challenge.\012\015fics% \012\015Creating: StockfishRB (2261) GuestEWZT (0) unrated blitz 2 12\012\015\012\015
ics input 0, castling = 7 0 4 7 0 4
Ratings from 'Creating:' StockfishRB 2261, GuestEWZT 0
<ICS: {Game 1 (StockfishRB vs. GuestEWZT) Creating unrated blitz match.}\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 (0:00) none 1 0\012\015\012\015fics%
ics input 0, castling = 7 0 4 7 0 4
recognized 'unrated blitz match.' (-1) as variant normal
Parsing board: rnbqkbnr pppppppp -------- -------- -------- -------- PPPPPPPP RNBQKBNR W -1 1 1 1 1 0 1 StockfishRB GuestEWZT -1 2 12 39 39 120 120 1 none (0:00) none 1 0
recognized 'ICS unrated blitz match' (-1) as variant normal
ParseBoard says variant = 'ICS unrated blitz match'
recognized as normal
Remembered ratings: W 2261, B 0
load 8x8 board
32430 >first : level 0 2 12
32430 >first : computer
32430 >first : name StockfishRB
32430 >first : rating 0 2261
Display title 'StockfishRB(39) GuestEWZT(39) {2 12}, gameInfo.variant = 0'
<ICS: \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 (0:00) e4 1 0\012\015\012\015
ics input 0, castling = 7 0 4 7 0 4
Parsing board: 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 (0:00) 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 (0:00)'
32540 >first : time 12000
32540 >first : otim 12000
book hit = (NULL)
32540 >first : usermove 32540 >first : e2e4
Display title 'StockfishRB(39) GuestEWZT(39) {2 12}, gameInfo.variant = 0'
<ICS: fics% \012\015StockfishRB(2261)(C) kibitzes: !!! +0.00/0 (0.00 sec, 0 nodes, 0 knps) PV=e2e4 \012\015\ (xbook)\012\015fics%
ics input 1, castling = 7 0 4 7 0 4
Code: Select all
<ICS: Issuing: GuestNZTT (++++) StockfishRB (2261) unrated blitz 2 12.\012\015--** StockfishRB is a computer **--\012\015fics%
ics input 0, castling = 7 0 4 7 0 4
<ICS: \012\015StockfishRB accepts your challenge.\012\015fics% \012\015Creating: GuestNZTT (0) StockfishRB (2261) unrated blitz 2 12\012\015\012\015{Game 1 (GuestNZTT vs. StockfishRB) Creating unrated blitz match.}\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 (0:00) none 0 0\012\015\012\015
ics input 0, castling = 7 0 4 7 0 4
Ratings from 'Creating:' GuestNZTT 0, StockfishRB 2261
recognized 'unrated blitz match.' (-1) as variant normal
Parsing board: rnbqkbnr pppppppp -------- -------- -------- -------- PPPPPPPP RNBQKBNR W -1 1 1 1 1 0 1 GuestNZTT StockfishRB 1 2 12 39 39 120 120 1 none (0:00) none 0 0
recognized 'ICS unrated blitz match' (-1) as variant normal
ParseBoard says variant = 'ICS unrated blitz match'
recognized as normal
Remembered ratings: W 0, B 2261
load 8x8 board
26425 >first : level 0 2 12
26425 >first : computer
26425 >first : name StockfishRB
26425 >first : rating 0 2261
26425 >first : time 12000
26425 >first : otim 12000
book hit = (NULL)
26425 >first : go
Display title 'GuestNZTT(39) StockfishRB(39) {2 12}, gameInfo.variant = 0'
<ICS: fics%
ics input 0, castling = 7 0 4 7 0 4
26439 <first : 1 +48 0 21 e4
26441 <first : 2 +12 0 107 e4 e5
26441 <first : 3 +31 0 787 e4 d5 Nc3
26441 <first : 4 +12 1 2715 e4 d5 Nc3 Nf6
26447 <first : 5 +31 2 12735 Nc3 d5 d4 Nf6 Nf3
26476 <first : 6 +12 5 55817 Nc3 d5 d4 Nf6 Nf3 Nc6
26508 <first : 7 +24 8 106576 Nc3 d5 d4 Nf6 Nf3 Nc6 Bf4
26751 <first : 8 +17 32 513034 e4 d5 exd5 Qxd5 Nc3 Qe5+ Nge2 Nf6
27130 <first : 9 +31 70 1155421 e4 d5 exd5 Nf6 Bb5+ Bd7 Bxd7+ Qxd7 c4
28576 <first : 10 +22 215 3594923 e4 d5 exd5 Nf6 d4 Nxd5 Bd3 Nc6 c4 Ndb4
31836 <first : 11 +37 541 9116610 e4 e5 Nf3 Nf6 Nc3 Nc6 d4 exd4 Nxd4 d5 Nxc6
39411 <first : 12 +22 1299 21884922 e4 d5 exd5 Nf6 d4 Nxd5 Bd3 Nc6 Nf3 Ncb4 Be4 Be6
40667 <first : 12 +22 1299 21884922 e4 d5 exd5 Nf6 d4 Nxd5 Bd3 Nc6 Nf3 Ncb4 Be4 Be6
40668 <first : move e2e4
>ICS: e2e4\012
>ICS: kibitz !!! +0.22/12 (12.99 sec, 21884922 nodes, 1685 knps) PV=e4 d5 exd5 Nf6 d4 Nxd5 Bd3 Nc6 Nf3 Ncb4 Be4 Be6\012
nodes = 21884922, 21884922
<ICS: \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 (0:00) e4 0 0\012\015\012\015fics%
ics input 1, castling = 7 0 4 7 0 4
Parsing board: 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 (0:00) 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 (0:00)'
Display title 'GuestNZTT(39) StockfishRB(39) {2 12}, gameInfo.variant = 0'
<ICS: 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: \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 (0:00) c5 0 1\012\015\012\015fics%
ics input 1, castling = 7 0 4 7 0 4
Parsing board: 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 (0:00) 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 (0:00)'
40878 >first : time 12000
40878 >first : otim 12000
book hit = (NULL)
40878 >first : usermove 40878 >first : c7c5
nps: w=-1, b=-1
Display title 'GuestNZTT(39) StockfishRB(39) {2 12}, gameInfo.variant = 0'
<ICS: \012\015StockfishRB(2261)(C) kibitzes: !!! +0.00/0 (0.00 sec, 0 nodes, 0 knps) PV=c7c5 \012\015\ (xbook)\012\015fics%
ics input 2, castling = 7 0 4 7 0 4
-
- Posts: 27811
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: On-line engine blitz tourney January
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?
What Linux distro are you running? Could you install XBoard 4.8.0 from source, to see if the same problem occurs there?
-
- Posts: 7220
- Joined: Mon May 27, 2013 10:31 am
Re: On-line engine blitz tourney January
Why are there always so few weak engines joining ? Can't be that difficult to create a weak engine.
-
- Posts: 360
- Joined: Thu Jan 22, 2015 3:21 pm
- Location: Zurich, Switzerland
- Full name: Jonathan Rosenthal
Re: On-line engine blitz tourney January
I got the following message in the terminal as it crashed:
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.
Code: Select all
Player "StockfishRB" isn't listening to unregistered tells.1.Segmentation fault (core dumped)
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.
-
- Posts: 360
- Joined: Thu Jan 22, 2015 3:21 pm
- Location: Zurich, Switzerland
- Full name: Jonathan Rosenthal
Re: On-line engine blitz tourney January
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.
-
- Posts: 490
- Joined: Tue Feb 04, 2014 12:25 pm
- Full name: Colin Jenkins
Re: On-line engine blitz tourney January
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?
-
- Posts: 7220
- Joined: Mon May 27, 2013 10:31 am
Re: On-line engine blitz tourney January
With weak I mean fide rating 1800. Other people said 2200 is already poor playing for an engine.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.
-
- Posts: 7220
- Joined: Mon May 27, 2013 10:31 am
Re: On-line engine blitz tourney January
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.
-
- Posts: 27811
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: On-line engine blitz tourney January
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).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.
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.