Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault #4829

Closed
paveljanik opened this issue Oct 14, 2023 · 4 comments
Closed

Segmentation fault #4829

paveljanik opened this issue Oct 14, 2023 · 4 comments

Comments

@paveljanik
Copy link

paveljanik commented Oct 14, 2023

Stockfish crashes in depth 11 (with SIGSEGV which is 11 as well ;-).

Please note that as white king is in check, white should move and thus FEN notation should note that white moves (and the move has to be Kxa2) but it notes black is on the move. And Stockfish evaluates...

$ ./stockfish
Stockfish dev-20231010-00263636 by the Stockfish developers (see AUTHORS file)
position fen 5k1r/2q3p1/p3p2p/1B3p1Q/n4P2/6P1/bbP2N1P/1K1RR3 b - - 0 1
go
info string NNUE evaluation using nn-0000000000a0.nnue
info depth 1 seldepth 1 multipv 1 score cp 171 nodes 105 nps 52500 hashfull 0 tbhits 0 time 2 pv a6b5 b1a2
info depth 2 seldepth 2 multipv 1 score cp 171 nodes 167 nps 83500 hashfull 0 tbhits 0 time 2 pv a6b5 b1a2
info depth 3 seldepth 3 multipv 1 score cp 171 nodes 210 nps 105000 hashfull 0 tbhits 0 time 2 pv a6b5 b1a2
info depth 4 seldepth 3 multipv 1 score cp 171 nodes 253 nps 84333 hashfull 0 tbhits 0 time 3 pv a6b5 b1a2
info depth 5 seldepth 3 multipv 1 score cp 168 nodes 318 nps 106000 hashfull 0 tbhits 0 time 3 pv a6b5 b1a2 c7c2
info depth 6 seldepth 4 multipv 1 score cp 184 nodes 378 nps 126000 hashfull 0 tbhits 0 time 3 pv a6b5 b1a2 c7c2
info depth 7 seldepth 5 multipv 1 score cp 237 nodes 463 nps 154333 hashfull 0 tbhits 0 time 3 pv a6b5 b1a2 c7c2 e1e6
info depth 8 seldepth 6 multipv 1 score cp 355 nodes 729 nps 243000 hashfull 0 tbhits 0 time 3 pv a6b5 b1a2 c7c2 d1d8 f8e7
info depth 9 seldepth 7 multipv 1 score cp 346 nodes 874 nps 218500 hashfull 0 tbhits 0 time 4 pv a6b5 b1a2 c7c2 d1d8 f8e7 d8d7 e7d7
info depth 10 seldepth 11 multipv 1 score cp 330 nodes 1275 nps 255000 hashfull 0 tbhits 0 time 5 pv a6b5 b1a2 c7c2 d1d8 f8e7 d8d7 e7d7 h5f7 d7c8 f7e6 c8c7
info depth 11 seldepth 14 multipv 1 score cp 330 nodes 2542 nps 363142 hashfull 0 tbhits 0 time 7 pv a6b5 b1a2 c7c2 d1d8 f8e7 d8d7 e7d7 h5f7 d7c8 f7e6 c8c7
Segmentation fault: 11

Expected behavior

Stockfish should not crash at least.

Steps to reproduce

position fen 5k1r/2q3p1/p3p2p/1B3p1Q/n4P2/6P1/bbP2N1P/1K1RR3 b - - 0 1
go

Anything else?

No response

Operating system

MacOS

Stockfish version

Stockfish dev-20231010-00263636

@Sopel97
Copy link
Member

Sopel97 commented Oct 14, 2023

not a legal chess position

@dav1312
Copy link
Contributor

dav1312 commented Oct 14, 2023

@paveljanik
Copy link
Author

Yup, closing.

@vdbergh
Copy link
Contributor

vdbergh commented Oct 15, 2023

There is however an unmerged PR #4563 which introduces some sanity checking on FENs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants