Here is a small test with python. I get a winning result for the position you provided.
Code: Select all
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> egbb = cdll.LoadLibrary("egbbso.so")
>>> egbb.load_egbb("./")
EgbbProbe 4.1 by Daniel Shawul
10 egbbs loaded !
-1300584139
>>> egbb.probe_egbb_fen("2R5/8/8/4k3/8/8/6K1/8 w - -")
5609
>>>
Edit:
On a second test I managed to get a segfault.
Code: Select all
>>> from ctypes import *
>>> egbb = cdll.LoadLibrary("egbbso.so")
>>> egbb.load_egbb_xmen("./",1,1)
EgbbProbe 4.1 by Daniel Shawul
10 egbbs loaded !
28185509
>>> egbb.probe_egbb_fen("2R5/8/8/4k3/8/8/6K1/8 w - -")
Segmentation fault: 11
The
cache_size should be in bytes so changing the
1 to 4194304 for a 4MB cache fixes it.
Code: Select all
>>> from ctypes import *
>>> egbb = cdll.LoadLibrary("egbbso.so")
>>> egbb.load_egbb_xmen("./",4194304,1)
EgbbProbe 4.1 by Daniel Shawul
10 egbbs loaded !
-2050454970
>>> egbb.probe_egbb_fen("2R5/8/8/4k3/8/8/6K1/8 w - -")
5609
>>> egbb.load_egbb_xmen("./",1,1)
EgbbProbe 4.1 by Daniel Shawul
10 egbbs loaded !
-2050454970
>>> egbb.probe_egbb_fen("2R5/8/8/4k3/8/8/6K1/8 w - -")
5609
Also, reloading with a 1 byte cache does not cause a problem anymore. So make sure you are giving it an appropriately sized cache.