On-line engine blitz tourney October

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
flok
Posts: 559
Joined: Tue Jul 03, 2018 10:19 am
Full name: Folkert van Heusden

Re: On-line engine blitz tourney October

Post by flok »

Modern Times wrote: Sat Oct 29, 2022 10:20 am It has just happened again, so check those logs.

It seems to handle 1+1 and 3+1 OK, it played several of those, but as soon as you ask it to play 5+1 it crashes later in the game.

Code: Select all

1667031485.005 Engine->Adapter: # dts: 4493017 depth 10 nodes 33982 lower_bound: 16812
1667031485.565 Engine->Adapter: # dts: 5052218 depth 11 nodes 38015 lower_bound: 6572
1667031486.347 Engine->Adapter:
1667031486.348 Engine->Adapter: ***ERROR*** A stack overflow in task pthread has been detected.
1667031486.348 Engine->Adapter:
1667031486.348 Engine->Adapter:
1667031486.357 Engine->Adapter: Backtrace:0x400819c2:0x3ffec7100x40084829:0x3ffec730 0x4008737e:0x3ffec750 0x40085f02:0x3ffec7c0 0x40084928:0x3ffec7f0 0x400848da:0x3ffd36c0 0x3ffd34bd:0x00000000  |<-CORRUPTED
:|

After that it reboots. Added a workaround for the semingly hang after that.

Maybe I should add a qs depth limit?

Strange thing is: I keep track of the total depth (max_depth + qs_depth) and every time that gets a higher value, I check the stack-size. This time it complained about stack-size way before it ran out (it had still over 6kB left).

Don't think I can fix it today, so I consider running it on a normal system.

@joost are you willing to create a DogPC account for that?
User avatar
flok
Posts: 559
Joined: Tue Jul 03, 2018 10:19 am
Full name: Folkert van Heusden

Re: On-line engine blitz tourney October

Post by flok »

Ras wrote: Sat Oct 29, 2022 10:55 am
Modern Times wrote: Sat Oct 29, 2022 10:20 amIt seems to handle 1+1 and 3+1 OK, it played several of those, but as soon as you ask it to play 5+1 it crashes later in the game.
Might be a stack problem that manifests with higher thinking times due to more depth being reached. Going via some high stack water mark runtime checks isn't what I'm doing in my microcontroller engine. Instead, I use GCC's -fstack-usage feature for individual functions, then manually put together the call stack and calculate what maximum depth I can afford with the amount of stack that I configured. That's 23 for the main search and 10 for QS on top of that.
Right. I use freertos "around" my program, very convenient. I try to statically allocate everything possible. But as I also use libchess libchess (https://github.com/Mk-Chan/libchess), some dynamics are involved (e.g. it uses pthreads). I could patch of course but (initially) one of the main challenges was to use everything as much as possible "as is".
Joost Buijs
Posts: 1635
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: On-line engine blitz tourney October

Post by Joost Buijs »

This time there were a lot of participants, like it used to be in the past.

Besides a small issue with the time-seal of Winter the tournament finished without problems.

Nightmare was very lucky this time. Considering the fact that the engine hasn't been changed for at least 1.5 years I didn't expect it to win. Goldbar suddenly played a bad move in an equal position, and against WASP the engine came out of book in a more or less won position.

There were 4 players with 6.5 points, BelFish, CSTal, Goldbar and Marvin.
The Baron and Waduuttie both got 6 points.

The new players, Cheers and KhepriChess didn't do bad either with 4 and 3,5 points.

Code: Select all

:Tourney Players: Round 9 of 9 
:
:     Name              Rating Score Perfrm Upset  Results 
:     ----------------- ------ ----- ------ ------ ------- 
:  1 +NightmareX        [2914]  7.5  [2976] [  43] +21w +06w +12b +10w =02b +04w =03b +08w =09b 
:  2 +BelFish           [3000]  6.5  [2909] [   0] +16w +11w =03b =04b =01w =05b +06w +10w =08b 
:  3 +ChessSystemTalX   [2901]  6.5  [2878] [  55] +22b +07w =02w =08b =04w +21b =01w =05b +10w 
:  4 +Goldbar           [2869]  6.5  [2776] [  81] +17w +19w +14b =02w =03b -01b =05w +16b +11w 
:  5 +Marvin            [2763]  6.5  [2836] [ 274] +27w +20w =11b +07w =10b =02w =04b =03w +15b 
:  6 +TheBaron          [2566]  6.0  [2618] [ 138] +28w -01b =08w +14w =07b +24w -02b +22w +20b 
:  7 +WaDuuttie         [2556]  6.0  [2594] [  52] +25w -03b +09w -05b =06w =12b +24b +21w +16w 
:  8 -WaspX             [2843]  5.5  [2719] [ 107] +23w =12w =06b =03w +24b +09w =10b -01b =02w
:  9 +atomNightmare     [2603]  5.5  [2627] [ 169] +24w =15w -07b +26w =11b -08b +14w +12b =01w 
: 10 +LeelaRB           [2832]  5.0  [2705] [   5] +13w +26w +15b -01b =05w +23b =08w -02b -03b 
: 11 +atomGoldbar       [2575]  5.0  [2584] [ 136] +18w -02b =05w +27b =09w +13b =12w =15w -04b 
: 12 +Winter            [2500]  5.0  [2529] [ 301] +31w =08b -01w =15w +17b =07w =11b -09w +23b 
: 13 +Spartacus         [2190]  5.0  [2397] [ 812] -10b +30w +19b -21b +20w -11w -22b +25w +26w 
: 14 -CTdccc            [2180]  5.0  [2503] [ 772] =15b +16w -04w -06b +26b +27w -09b =23b +22w 
: 15 +Amoeba            [2631]  4.5  [2492] [   0] =14w =09b -10w =12b =16w +20b +21w =11b -05w 
: 16 +Myrddin           [2321]  4.5  [2462] [ 216] -02b -14b +20w +28w =15b +22b +23w -04w -07b
: 17 +Prophet           [2238]  4.5  [2224] [ 131] -04b +29w +31b -23w -12w =19b -20w +32b +27b 
: 18 +DogPC             [2128]  4.5  [2193] [ 372] -11b -24b -21w -20b +25w +26w =28b +31w +29b 
: 19 -Cheers            [2500]  4.0  [2191] [   0] +29w -04b -13w +25b -22w =17w -27b +24w =21b 
: 20 +rpiDumb           [2382]  4.0  [2255] [   0] +32w -05b -16b +18w -13b -15w +17b +27w -06w 
: 21 +rpiArminius       [2278]  4.0  [2412] [ 111] -01b +28w +18b +13w =23b -03w -15b -07b =19w 
: 22 +atomFloyd         [2251]  4.0  [2284] [ 249] -03w +25b +28b -24w +19b -16w +13w -06b -14b 
: 23 +Barbarossa        [2211]  4.0  [2276] [  60] -08b +31w +29b +17b =21w -10w -16b =14w -12w 
: 24 +Joker             [2151]  4.0  [2280] [ 100] -09b +18w +30b +22b -08w -06b -07w -19b +32w
: 25 +KingSlayer        [2068]  4.0  [2044] [   0] -07b -22w +32b -19w -18b +29w +30w -13b +31b 
: 26 +KhepriChess       [2500]  3.5  [2096] [   0] +30w -10b =27w -09b -14w -18b +32b +28w -13b 
: 27 +feligres          [2180]  3.5  [2201] [ 480] -05b +32w =26b -11w +30b -14b +19w -20b -17w 
: 28 +Isa               [2085]  3.5  [2081] [  21] -06b -21b -22w -16b +29w +31b =18w -26b +30w 
: 29 +microMax          [1902]  3.0  [1922] [   0] -19b -17b -23w +32w -28b -25b +31w +30b -18w 
: 30 +micahGB           [1791]  2.0  [1839] [   7] -26b -13b -24w +31b -27w +32w -25b -29w -28b 
: 31 +atomSargon        [1798]  0.5  [1711] [   0] -12b -23b -17w -30w =32b -28w -29b -18b -25w 
: 32 -Skipper           [1682]  0.5  [1756] [  58] -20b -27b -25w -29b =31w -30b -26w -17w -24b
:
:     Average Rating    2387.2
User avatar
flok
Posts: 559
Joined: Tue Jul 03, 2018 10:19 am
Full name: Folkert van Heusden

Re: On-line engine blitz tourney October

Post by flok »

Joost Buijs wrote: Sat Oct 29, 2022 10:46 pm The new players, Cheers and KhepriChess didn't do bad either with 4 and 3,5 points.
Dog(PC) is also brand new! :-)
With 4.5 points not to shaby either imho.
Joost Buijs
Posts: 1635
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: On-line engine blitz tourney October

Post by Joost Buijs »

flok wrote: Sat Oct 29, 2022 10:48 pm
Joost Buijs wrote: Sat Oct 29, 2022 10:46 pm The new players, Cheers and KhepriChess didn't do bad either with 4 and 3,5 points.
Dog(PC) is also brand new! :-)
With 4.5 points not to shaby either imho.
Of course you are right.
JVMerlino
Posts: 1398
Joined: Wed Mar 08, 2006 10:15 pm
Location: San Francisco, California

Re: On-line engine blitz tourney October

Post by JVMerlino »

Indeed, very tough competition (as usual). Myrddin's highlight was a hard-fought draw as Black against the much higher-rated Amoeba, which pleased me greatly. No idea about Amoeba's hardware, but Myrddin was running with 8 cores.

User avatar
Graham Banks
Posts: 44181
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: On-line engine blitz tourney October

Post by Graham Banks »

Why not run this weekly?
gbanksnz at gmail.com
Modern Times
Posts: 3710
Joined: Thu Jun 07, 2012 11:02 pm

Re: On-line engine blitz tourney October

Post by Modern Times »

Graham Banks wrote: Sun Nov 13, 2022 2:12 am Why not run this weekly?
I would say that is asking too much of Lisebeth the tournament director. People do have a life outside of chess and want to do other things on Saturday evenings.
smatovic
Posts: 3249
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: On-line engine blitz tourney October

Post by smatovic »

Modern Times wrote: Sun Nov 13, 2022 6:20 am
Graham Banks wrote: Sun Nov 13, 2022 2:12 am Why not run this weekly?
I would say that is asking too much of Lisebeth the tournament director. People do have a life outside of chess and want to do other things on Saturday evenings.
Do they? :shock:

--
Srdja