Oh indeed. Darn.mar wrote:Well this is invalid position with pawn on rank 1flok wrote:Some failing FEN-strings:
segfault:
8/R7/P4k2/8/8/8/8/2KP4 w - - 10 1
Edit: in fact, all of those positions you posted are invalid/illegal
It did now 250k tests and no crashes to be seen.
25k iterations under valgrind and no errors.
The "sanitizer" of gcc finds the following (in 7k iterations):
tbcore.c:1184:7: runtime error: load of misaligned address 0x7f5a6b4e303e for type 'int', which requires 4 byte alignment
0x7f5a6b4e303e: note: pointer points here
00 00 ff 0f 23 8e a0 00 d1 f9 c8 8f d1 23 60 ff 7f ef c6 8e 70 fe c4 fb b4 af 5f 06 59 83 fc b7
^
tbcore.c:1184:7: runtime error: load of misaligned address 0x7f5a6b4e5aa7 for type 'int', which requires 4 byte alignment
0x7f5a6b4e5aa7: note: pointer points here
f8 da bf fd ea 9f fe ba 3e f7 c6 5f fe a5 2f f6 38 bf f1 30 4f fe 0d df f0 48 ee f6 4d 5f fb df
^
tbcore.c:1184:7: runtime error: load of misaligned address 0x7f5a6b4e5ff3 for type 'int', which requires 4 byte alignment
0x7f5a6b4e5ff3: note: pointer points here
fe bb 1f f2 e0 4f f8 e0 2f f6 e0 9f f8 e7 2f f6 c3 1f f2 e7 3f f4 e0 1f f2 ae ff f9 e2 2f fe dc
^
tbcore.c:1184:7: runtime error: load of misaligned address 0x7f5a6b4e5fde for type 'int', which requires 4 byte alignment
0x7f5a6b4e5fde: note: pointer points here
fe d9 9f fd 02 f0 ff aa df fe f0 0f ff e2 ef fe be bf fe bb df fe bb 1f f2 e0 4f f8 e0 2f f6 e0
^
So I'm starting to think that the problems I see in my own program with syzygy are really bugs in my own program and not in the etb-code.
Odd because the perft-values are correct.