What is wrong with this EPD record

Discussion of chess software programming and technical issues.

Moderator: Ras

Dann Corbit
Posts: 12828
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

What is wrong with this EPD record

Post by Dann Corbit »

It causes Stockfish to crash. I was told the record is bad.
I do not see anything obvious (no pawns on 1st or 8th rank, no bad man counts, no king in check for the side not on move, all rows add up to 8...)

[d]4kb1r/1bBnpppp/p7/1p1q4/3P3n/5P2/PPQ1B2P/2R2KNR w - -
Dann Corbit
Posts: 12828
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: What is wrong with this EPD record

Post by Dann Corbit »

It was the following record that was faulty and caused the crash.

It was actually the same record, with 4 spaces missing:
[d]4kb1r/1bBnpppp/p7/1p1q/3P3n/5P2/PPQ1B2P/2R2KNR w - -
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: What is wrong with this EPD record

Post by michiguel »

Dann Corbit wrote:It causes Stockfish to crash. I was told the record is bad.
I do not see anything obvious (no pawns on 1st or 8th rank, no bad man counts, no king in check for the side not on move, all rows add up to 8...)

[d]4kb1r/1bBnpppp/p7/1p1q4/3P3n/5P2/PPQ1B2P/2R2KNR w - -
Gaviota is very picky about fens, and it accepts it with no problems. It seems to be correct.

Code: Select all

setboard 4kb1r/1bBnpppp/p7/1p1q4/3P3n/5P2/PPQ1B2P/2R2KNR w - -
d
+-----------------+
| . . . . k b . r |
| . b B n p p p p |
| p . . . . . . . |
| . p . q . . . . |    Castling: 
| . . . P . . . n |    ep: -
| . . . . . P . . |
| P P Q . B . . P |
| . . R . . K N R | [White]
+-----------------+

analyze
iterative deepening --> start, thread=0
set timer to infinite
       145   1:      0.0    -0.99  1.Qc3 Qxa2
       236   2:      0.0    -0.99  1.Qc3 Qxa2
       415   3:      0.0    -0.56  1.Qd2 Qxa2 2.Kf2
       696   4:      0.0    -1.04  1.Qd2 Qxa2 2.Kf2 Qb3
      1319   5:      0.0    -0.46  1.Qd2 Qxa2 2.Kf2 Qe6 3.Bd3
      2567   6:      0.0    -0.65  1.Qd2 Qxa2 2.Kf2 h5 3.Nh3 Qb3
      5275   7:      0.0    -0.42  1.Qd2 Qxa2 2.Kf2 Qb3 [>]
     12855   8       0.0      :-(  1.Qd2
     21757   8       0.1      :-)  1.Bg3
     22575   8       0.1      :-)  1.Bg3
     40336   8       0.1    +2.54  1.Bg3 e6 [>]
     40506   8:      0.1    +2.54  1.Bg3 e6 [>]
     47583   9       0.2    +2.71  1.Bg3 e5 2.Bxh4 g5 3.Bxg5 h6 4.Be3 exd4
                                   5.Bf2
     49434   9:      0.2    +2.71  1.Bg3 e5 2.Bxh4 g5 3.Bxg5 h6 4.Be3 exd4
                                   5.Bf2
     60692  10       0.2    +2.64  1.Bg3 e5 2.Bxh4 g5 3.Bxg5 h6 4.Be3 exd4
                                   5.Bf2 Nc5
     64412  10:      0.2    +2.64  1.Bg3 e5 2.Bxh4 g5 3.Bxg5 h6 4.Be3 exd4
                                   5.Bf2 Nc5
     99310  11       0.3    +2.62  1.Bg3 e6 2.Bxh4 g5 3.Bg3 g4 4.h3 Bh6
                                   5.hxg4 Bxc1 6.Qxc1 Qxd4
    109885  11:      0.3    +2.62  1.Bg3 e6 2.Bxh4 g5 3.Bg3 g4 4.h3 Bh6
                                   5.hxg4 Bxc1 6.Qxc1 Qxd4
    168904  12       0.5    +2.89  1.Bg3 e6 2.Bxh4 g5 3.Bg3 Bg7 4.Kg2 Bxd4
                                   5.Qd2 g4 6.h3 e5 7.hxg4 Qxa2
    176966  12:      0.5    +2.89  1.Bg3 e6 2.Bxh4 g5 3.Bg3 Bg7 4.Kg2 Bxd4
                                   5.Qd2 g4 6.h3 e5 7.hxg4 Qxa2
    267860  13       0.7    +2.89  1.Bg3 e6 2.Bxh4 g5 3.Bg3 Bg7 4.Kg2 Bxd4
                                   5.Qd2 g4 6.h3 e5 7.hxg4 Qxa2
    276877  13:      0.7    +2.89  1.Bg3 e6 2.Bxh4 g5 3.Bg3 Bg7 4.Kg2 Bxd4
                                   5.Qd2 g4 6.h3 e5 7.hxg4 Qxa2
    439436  14       0.9    +2.68  1.Bg3 e6 2.Bxh4 g5 3.Bg3 Bg7 4.Kg2 Bxd4
                                   5.b3 [>]
    488287  14:      1.0    +2.68  1.Bg3 e6 2.Bxh4 g5 3.Bg3 Bg7 4.Kg2 Bxd4
                                   5.b3 [>]
    988447  15       1.9    +2.93  1.Bg3 e6 2.Bxh4 g5 3.Bg3 Bg7 4.Kg2 h5
                                   [>]
   1019805  15:      1.9    +2.93  1.Bg3 e6 2.Bxh4 g5 3.Bg3 Bg7 4.Kg2 h5
                                   [>]
   2196776  16       3.9    +2.79  1.Bg3 e6 2.Bxh4 g5 3.Bd3 Nf6 4.Bf2 Be7
                                   5.Qb3 [>]
   2282477  16:      4.0    +2.79  1.Bg3 e6 2.Bxh4 g5 3.Bd3 Nf6 4.Bf2 Be7
                                   5.Qb3 [>]
   5565518  17       9.7    +3.17  1.Bg3 e6 2.Bxh4 g5 3.Bd3 Nf6 4.Bg3 Qxd4
                                   5.Qd2 Nd7 6.Rc7 Bb4 7.Qc2 Nc5 8.Bxh7
                                   [<]
   6133820  17:     10.6    +3.17  1.Bg3 e6 2.Bxh4 g5 3.Bd3 Nf6 4.Bg3 Qxd4
                                   5.Qd2 Nd7 6.Rc7 Bb4 7.Qc2 Nc5 8.Bxh7
                                   [<]
  15870696  18      27.4    +2.79  1.Bg3 e6 2.Bxh4 g5 3.Bg3 [>]
  16964388  18:     29.2    +2.79  1.Bg3 e6 2.Bxh4 g5 3.Bg3 [>]
  23789197  19      40.6    +3.18  1.Bg3 e6 2.Bxh4 g5 3.Bg3 Bg7 4.Kg2 h6
                                   [>]
  31507755  19:     53.6    +3.18  1.Bg3 e6 2.Bxh4 g5 3.Bg3 Bg7 4.Kg2 h6
                                   [>]
  72057057  20     123.8    +3.56  1.Bg3 e6 2.Bxh4 g5 3.Bg3 h5 [>]
  73750167  20:    126.4    +3.56  1.Bg3 e6 2.Bxh4 g5 3.Bg3 h5 [>]
Miguel
User avatar
michiguel
Posts: 6401
Joined: Thu Mar 09, 2006 8:30 pm
Location: Chicago, Illinois, USA

Re: What is wrong with this EPD record

Post by michiguel »

Dann Corbit wrote:It was the following record that was faulty and caused the crash.

It was actually the same record, with 4 spaces missing:
[d]4kb1r/1bBnpppp/p7/1p1q/3P3n/5P2/PPQ1B2P/2R2KNR w - -
Yes, it is incorrect

Code: Select all

setboard 4kb1r/1bBnpppp/p7/1p1q/3P3n/5P2/PPQ1B2P/2R2KNR w - -
Error (wrong FEN or EPD): 4kb1r/1bBnpppp/p7/1p1q/3P3n/5P2/PPQ1B2P/2R2KNR w - -
tellusererror Error: EPD error in one of the ranks, FEN=[4kb1r/1bBnpppp/p7/1p1q/3P3n/5P2/PPQ1B2P/2R2KNR w - -]
Miguel