Bug 1325013

Summary: [abrt] stockfish: Position::gives_check(): stockfish killed by SIGABRT
Product: [Fedora] Fedora Reporter: Alex Wood <awood>
Component: stockfishAssignee: Raphael Groner <projects.rg>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: projects.rg
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/3267d587bee450c3774fc5c97133c1c96eb9c509
Whiteboard: abrt_hash:f1e8193195860f997bfd2804275e62fe3ff9dfc1;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-21 11:54:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: limits
none
File: maps
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Alex Wood 2016-04-07 20:56:13 UTC
Description of problem:
I have Stockfish configured as an engine under a version of ScidVsPC that I have build (https://copr.fedorainfracloud.org/coprs/awood/scid_vs_pc/).  Stockfish will crash seemingly randomly.

Version-Release number of selected component:
stockfish-7-1.20160225gite1a7d13.fc23

Additional info:
reporter:       libreport-2.6.4
backtrace_rating: 4
cmdline:        /usr/bin/stockfish
crash_function: Position::gives_check
executable:     /usr/bin/stockfish
global_pid:     28586
kernel:         4.4.2-301.fc23.x86_64
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (5 frames)
 #4 Position::gives_check at /usr/src/debug/Stockfish-e1a7d135b2b1c6118ba514fa41c2104245bd1caf/src/position.cpp:613
 #5 Search::RootMove::extract_ponder_from_tt at /usr/src/debug/Stockfish-e1a7d135b2b1c6118ba514fa41c2104245bd1caf/src/search.cpp:1634
 #6 MainThread::search at /usr/src/debug/Stockfish-e1a7d135b2b1c6118ba514fa41c2104245bd1caf/src/search.cpp:380
 #7 Thread::idle_loop at /usr/src/debug/Stockfish-e1a7d135b2b1c6118ba514fa41c2104245bd1caf/src/thread.cpp:114
 #8 std::(anonymous namespace)::execute_native_thread_routine at ../../../../../libstdc++-v3/src/c++11/thread.cc:84

Comment 1 Alex Wood 2016-04-07 20:56:15 UTC
Created attachment 1144885 [details]
File: backtrace

Comment 2 Alex Wood 2016-04-07 20:56:16 UTC
Created attachment 1144886 [details]
File: cgroup

Comment 3 Alex Wood 2016-04-07 20:56:17 UTC
Created attachment 1144887 [details]
File: core_backtrace

Comment 4 Alex Wood 2016-04-07 20:56:18 UTC
Created attachment 1144888 [details]
File: dso_list

Comment 5 Alex Wood 2016-04-07 20:56:19 UTC
Created attachment 1144889 [details]
File: environ

Comment 6 Alex Wood 2016-04-07 20:56:19 UTC
Created attachment 1144890 [details]
File: limits

Comment 7 Alex Wood 2016-04-07 20:56:20 UTC
Created attachment 1144891 [details]
File: maps

Comment 8 Alex Wood 2016-04-07 20:56:21 UTC
Created attachment 1144892 [details]
File: mountinfo

Comment 9 Alex Wood 2016-04-07 20:56:22 UTC
Created attachment 1144893 [details]
File: namespaces

Comment 10 Alex Wood 2016-04-07 20:56:23 UTC
Created attachment 1144894 [details]
File: open_fds

Comment 11 Alex Wood 2016-04-07 20:56:24 UTC
Created attachment 1144895 [details]
File: proc_pid_status

Comment 12 Alex Wood 2016-04-07 20:56:24 UTC
Created attachment 1144896 [details]
File: var_log_messages

Comment 13 Alex Wood 2016-04-15 20:36:44 UTC
This seems to be happening when the board state is in a checkmate and the engine is asked to analyze it.

Engine: readyok
Scid  : position fen 4k3/8/4K2Q/8/8/8/8/8 w - - 3 8
Scid  : go infinite
[...] Engine analysis here
Scid  : stop
Scid  : isready
Engine: readyok
Engine: bestmove h6h8
Scid  : position fen 4k3/8/4K2Q/8/8/8/8/8 w - - 3 8 moves h6h8
Scid  : go infinite
Engine: info depth 0 score mate 0
Scid  : stop
Scid  : isready
Engine: readyok
Scid  : position fen 4k3/8/4K2Q/8/8/8/8/8 w - - 3 8 moves h6h8
Scid  : go infinite
Engine: bestmove (none)
Note: Engine terminated without warning.
Note: Engine terminated without exit code: "\"$standard_error\""

Comment 14 Raphael Groner 2016-04-21 11:54:28 UTC
This is a bug in ScidVsPC. Stockfish wants to inform about the checkmate but ScidVsPC ignores and sends the same move again after done it already.

> Engine: info depth 0 score mate 0

> Engine: bestmove (none)

Stockfish is not able to analyze invalid moves.

http://support.stockfishchess.org/kb/advanced-topics/uci-protocol