Skip to content

馃И Fix PowerPC runtime crashes - #2626

Draft
eduherminio wants to merge 18 commits into
mainfrom
powerpc-experiments
Draft

馃И Fix PowerPC runtime crashes#2626
eduherminio wants to merge 18 commits into
mainfrom
powerpc-experiments

Conversation

@eduherminio

@eduherminio eduherminio commented Jul 23, 2026

Copy link
Copy Markdown
Member

See issues in #2373.

Issues running bench at high depths.

In main, failing bench 6 and upwards only in Release mode.

ubuntu@lynx1:~/Lynx/src/Lynx.Cli$ dotnet run -c Release "bench"
Using launch settings from /home/ubuntu/Lynx/src/Lynx.Cli/Properties/launchSettings.json...
Lynx 1.11.0-dev-196f954a by Eduardo Caceres

=================================================================
        Native Crash Reporting
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
        Native stacktrace:
=================================================================
        0x7bbfe8bfbd74 - /usr/lib/dotnet/shared/Microsoft.NETCore.App/10.0.10/libcoreclr.so :
        0x7bbfe8ba3a4c - /usr/lib/dotnet/shared/Microsoft.NETCore.App/10.0.10/libcoreclr.so :
        0x7bbfe8aedc8c - /usr/lib/dotnet/shared/Microsoft.NETCore.App/10.0.10/libcoreclr.so :
        0x7bbfe9980444 - linux-vdso64.so.1 : __kernel_sigtramp_rt64
        0x7bbfbc9d0014 - Unknown
        0x7bbfbc8ddbf8 - Unknown
        0x7bbfbc96f0c8 - Unknown
        0x7bbfbc96f0c8 - Unknown
        0x7bbfbc96f0c8 - Unknown
        0x7bbfbc96f0c8 - Unknown
        0x7bbfbc96f0c8 - Unknown
        0x7bbfbc96f0c8 - Unknown
        0x7bbfbc96f0c8 - Unknown
        0x7bbfbc96f0c8 - Unknown
        0x7bbfbc96f0c8 - Unknown
        0x7bbfbc96f0c8 - Unknown
        0x7bbfbc96f0c8 - Unknown
        0x7bbfbc96eac8 - Unknown
        0x7bbfbff94860 - Unknown
        0x7bbfbff8de18 - Unknown
        0x7bbfbff8d254 - Unknown
        0x7bbfbca7f348 - Unknown
        0x7bbfbffc9178 - Unknown
        0x7bbfbffc8db8 - Unknown
        0x7bbfbffc8a74 - Unknown
        0x7bbfbffc7c64 - Unknown
        0x7bbfbffc6770 - Unknown
        0x7bbfbffc51ec - Unknown
        0x7bbfbffc0200 - Unknown
        0x7bbfbffadf58 - Unknown
        0x7bbfbffadb78 - Unknown
        0x7bbfbffab1c8 - Unknown
        0x7bbfbffaa358 - Unknown
        0x7bbfbffa9d38 - Unknown
        0x7bbfbffa8b20 - Unknown
        0x7bbfbffa74a4 - Unknown
        0x7bbfbff7e818 - Unknown
        0x7bbfe538cf8c - Unknown
        0x7bbfbff7dfa8 - Unknown
        0x7bbfbff7d878 - Unknown
        0x7bbfbff803d8 - Unknown
        0x7bbfe5389cc4 - Unknown
        0x7bbfe5380130 - Unknown
        0x7bbfe537d2b4 - Unknown
        0x7bbfe536a5ec - Unknown
        0x7bbfe536a068 - Unknown
        0x7bbfe849f89c - Unknown
        0x7bbfe8af1300 - /usr/lib/dotnet/shared/Microsoft.NETCore.App/10.0.10/libcoreclr.so :
        0x7bbfe8daa5a8 - /usr/lib/dotnet/shared/Microsoft.NETCore.App/10.0.10/libcoreclr.so : mono_runtime_invoke_checked
        0x7bbfe8dd186c - /usr/lib/dotnet/shared/Microsoft.NETCore.App/10.0.10/libcoreclr.so :
        0x7bbfe90b2a9c - /lib/powerpc64le-linux-gnu/libc.so.6 :

=================================================================
        External Debugger Dump:
=================================================================

=================================================================
        Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7bbfbc9d0014):0x7bbfbc9d0004  10 00 01 f8 f8 ff 81 39 fe ff 00 3c 50 c4 00 60  .......9...<P..`
0x7bbfbc9d0014  6a 01 21 7c 00 00 ec fb 78 0b 3f 7c 01 00 9f 3d  j.!|....x.?|...=
0x7bbfbc9d0024  38 3b 6c f8 01 00 9f 3d 40 3b 8c 90 01 00 9f 3d  8;l....=@;.....=
0x7bbfbc9d0034  48 3b ac 90 01 00 9f 3d 50 3b cc 90 01 00 9f 3d  H;.....=P;.....=

=================================================================
        Managed Stacktrace:
=================================================================
          at Lynx.Engine:QuiescenceSearch <0x00014>
          at Lynx.Engine:QuiescenceSearch <0x48870>
          at Lynx.Engine:NegaMax <0x99bf4>
=================================================================

After As in a7d5566:;

ubuntu@lynx1:~/Lynx$ ./test-singlefile/Lynx.Cli "bench 16"
Lynx 1.11.0-dev-ed2219cf by Eduardo Caceres
21229181 nodes 198041 nps

ubuntu@lynx1:~/Lynx$ ./test-singlefile/Lynx.Cli "bench 17"
Lynx 1.11.0-dev-ed2219cf by Eduardo Caceres
Segmentation fault (core dumped

Issues stopping (CancellationToken.ThrowIfCancellationRequested()`

Only hapenning in Release mode.

ubuntu@lynx1:~/Lynx$ dotnet run -c Release --project src/Lynx.Cli
Using launch settings from src/Lynx.Cli/Properties/launchSettings.json...
Lynx 1.11.0-dev-ed2219cf by Eduardo Caceres
position fen n7/1k6/8/8/8/8/6K1/7N w - - 0 1
go infinite
info depth 1 seldepth 1 multipv 1 score cp 0 nodes 9 nps 59712 time 1 pv g2f3
info depth 2 seldepth 2 multipv 1 score cp 0 nodes 35 nps 42626 time 1 pv g2f3 b7b8
...
info depth 34 seldepth 33 multipv 1 score cp 0 nodes 2174925 nps 500098 time 4349 pv g2f3 b7b8 f3e4 b8c8 e4d5 c8b8 d5e6 b8c8 e6e5 c8b8 e5e4
info depth 35 seldepth 36 multipv 1 score cp 0 nodes 2680389 nps 502419 time 5335 pv g2f3 b7b8 f3e4 b8c8 e4d5 c8b8 d5e6 b8c8 e6e5 c8b8 e5e4
info depth 36 seldepth 36 multipv 1 score cp 0 nodes 3005576 nps 504196 time 5961 pv g2f3 b7b8 f3e4 b8c8 e4d5 c8b8 d5e6 b8c8 e6e5 c8b8 e5e4
info depth 37 seldepth 36 multipv 1 score cp 0 nodes 5132662 nps 519563 time 9879 pv g2f3 b7b8 f3e4 b8c8 e4d5 c8b8 d5e6 b8c8 e6e5 c8b8 e5e4
stop
[ERROR] FATAL UNHANDLED EXCEPTION: System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Threading.CancellationToken.ThrowIfCancellationRequested()
   at Lynx.Engine.NegaMax(Int32 depth, Int32 ply, Int32 alpha, Int32 beta, Boolean cutnode, CancellationToken cancellationToken, Boolean parentWasNullMove, Boolean isVerifyingSE) in /home/ubuntu/Lynx/src/Lynx/Search/NegaMax.cs:line 53
   at Lynx.Engine.NegaMax(Int32 depth, Int32 ply, Int32 alpha, Int32 beta, Boolean cutnode, CancellationToken cancellationToken, Boolean parentWasNullMove, Boolean isVerifyingSE) in /home/ubuntu/Lynx/src/Lynx/Search/NegaMax.cs:line 695

ubuntu@lynx1:~/Lynx$ dotnet run -c Release --project src/Lynx.Cli
Using launch settings from src/Lynx.Cli/Properties/launchSettings.json...
Lynx 1.11.0-dev-ed2219cf by Eduardo Caceres
position fen n7/1k6/8/8/8/8/6K1/7N w - - 0 1
go depth 35
info depth 1 seldepth 1 multipv 1 score cp 0 nodes 9 nps 51882 time 1 pv g2f3
info depth 2 seldepth 2 multipv 1 score cp 0 nodes 35 nps 39964 time 1 pv g2f3 b7b8
(...)
info depth 34 seldepth 33 multipv 1 score cp 0 nodes 2174925 nps 484423 time 4490 pv g2f3 b7b8 f3e4 b8c8 e4d5 c8b8 d5e6 b8c8 e6e5 c8b8 e5e4
info depth 35 seldepth 36 multipv 1 score cp 0 nodes 2680389 nps 466865 time 5741 hashfull 120 pv g2f3 b7b8 f3e4 b8c8 e4d5 c8b8 d5e6 b8c8 e6e5 c8b8 e5e4
info depth 35 seldepth 36 multipv 1 score cp 0 nodes 2680389 nps 466865 time 5741 hashfull 120 pv g2f3 b7b8 f3e4 b8c8 e4d5 c8b8 d5e6 b8c8 e6e5 c8b8 e5e4
bestmove g2f3 ponder b7b8

ubuntu@lynx1:~/Lynx$ dotnet run -c Release --project src/Lynx.Cli
Using launch settings from src/Lynx.Cli/Properties/launchSettings.json...
Lynx 1.11.0-dev-ed2219cf by Eduardo Caceres
go depth 25
info depth 1 seldepth 1 multipv 1 score cp 115 nodes 20 nps 52517 time 1 pv e2e3
info depth 2 seldepth 2 multipv 1 score cp 21 nodes 151 nps 75619 time 2 pv e2e3 e7e6
info depth 3 seldepth 5 multipv 1 score cp 0 nodes 358 nps 109519 time 3 pv d2d4 e7e6 g1f3
info depth 4 seldepth 6 multipv 1 score cp 8 nodes 849 nps 142166 time 6 pv d2d4 e7e6 g1f3 b8c6
info depth 5 seldepth 6 multipv 1 score cp 10 nodes 1007 nps 152779 time 7 pv g1f3 e7e6 d2d4 b8c6
info depth 6 seldepth 8 multipv 1 score cp 10 nodes 1855 nps 168600 time 11 pv d2d4 g8f6 e2e3 e7e6 b1c3
info depth 7 seldepth 11 multipv 1 score cp 25 nodes 3526 nps 177627 time 20 pv g1f3 e7e6 e2e3 b8c6 b1c3 g8f6
info depth 8 seldepth 13 multipv 1 score cp 7 nodes 8707 nps 183311 time 47 pv b1c3 e7e5 d2d4 e5d4 d1d4 b8c6
info depth 9 seldepth 16 multipv 1 score cp 7 nodes 11134 nps 182878 time 61 pv b1c3 d7d5 e2e4 d5e4 c3e4 g8f6 f1d3
info depth 10 seldepth 20 multipv 1 score cp 31 nodes 16698 nps 183430 time 91 pv b1c3 d7d5 g1f3 d5d4 c3b5 c7c5
info depth 11 seldepth 30 multipv 1 score cp 1 nodes 44105 nps 177008 time 249 pv b1c3 d7d5 d2d4 g8f6 c1f4 f6h5 e2e3 h5f4 e3f4
info depth 12 seldepth 30 multipv 1 score cp 24 nodes 54722 nps 176721 time 310 pv b1c3 d7d5 d2d4 g8f6 c1f4 f6h5 f4g3 h5g3 h2g3 b8c6
info depth 13 seldepth 30 multipv 1 score cp 53 nodes 71833 nps 178741 time 402 pv e2e4 d7d5 e4d5 g8f6 g1f3 f6d5 d2d4 c7c6 c2c3
stoinfo depth 14 seldepth 30 multipv 1 score cp 59 nodes 133726 nps 172751 time 774 pv e2e4 e7e6 b1c3 d7d5 d2d4 d5e4 c3e4 g8f6 e4f6 d8f6 g1f3
p
[ERROR] FATAL UNHANDLED EXCEPTION: System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Threading.CancellationToken.ThrowIfCancellationRequested()
   at Lynx.Engine.NegaMax(Int32 depth, Int32 ply, Int32 alpha, Int32 beta, Boolean cutnode, CancellationToken cancellationToken, Boolean parentWasNullMove, Boolean isVerifyingSE) in /home/ubuntu/Lynx/src/Lynx/Search/NegaMax.cs:line 53
   at Lynx.Engine.NegaMax(Int32 depth, Int32 ply, Int32 alpha, Int32 beta, Boolean cutnode, CancellationToken cancellationToken, Boolean parentWasNullMove, Boolean isVerifyingSE) in /home/ubuntu/Lynx/src/Lynx/Search/NegaMax.cs:line 654

@eduherminio eduherminio changed the title Fix PowerPC execution Fix PowerPC runtime crashes Jul 23, 2026
@eduherminio eduherminio added the no merge PR not intended to be merged label Jul 24, 2026
@eduherminio eduherminio changed the title Fix PowerPC runtime crashes 馃И Fix PowerPC runtime crashes Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no merge PR not intended to be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant