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

App crashes at end of game if one side checkmates while engine evaluating #74

Open
KitchenTable99 opened this issue Jul 5, 2021 · 1 comment

Comments

@KitchenTable99
Copy link

When stockfish is evaluating a position that ends in checkmate, the app displays a pop-up saying that one player or another has won. If you do not stop the evaluation and walk through the moves to see the checkmate, the app crashes. I have tested this with five different openings and was able to recreate the bug each time. The only difference is the time that it took for the app to crash which varies from instantaneous to about ten seconds.

Let me know if there's anything else you need!

@KitchenTable99
Copy link
Author

Process: Stockfish [79426]
Path: /Applications/Stockfish.app/Contents/MacOS/Stockfish
Identifier: com.daylenyang.Stockfish
Version: 2.3.3 (36)
App Item ID: 801463932
App External ID: 842936913
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Stockfish [79426]
User ID: 501

Date/Time: 2021-07-05 09:48:21.900 -0700
OS Version: macOS 11.4 (20F71)
Report Version: 12
Bridge OS Version: 5.4 (18P4663)
Anonymous UUID: 27A9AFDF-D1D4-3061-31FD-C860B3F56D5D

Sleep/Wake UUID: 98C68B73-86A7-4C19-93C2-97B5B8684325

Time Awake Since Boot: 630000 seconds
Time Since Wake: 1200 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [79426]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.daylenyang.Stockfish 0x0000000109a631e1 0x109a3e000 + 152033
1 com.daylenyang.Stockfish 0x0000000109a4d775 0x109a3e000 + 63349
2 com.daylenyang.Stockfish 0x0000000109a4e0e3 0x109a3e000 + 65763
3 com.daylenyang.Stockfish 0x0000000109a53ee6 0x109a3e000 + 89830
4 com.daylenyang.Stockfish 0x0000000109a49d36 0x109a3e000 + 48438
5 com.daylenyang.Stockfish 0x0000000109a40ea9 0x109a3e000 + 11945
6 com.daylenyang.Stockfish 0x0000000109a40837 0x109a3e000 + 10295
7 com.apple.CoreFoundation 0x00007fff2056a10d CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
8 com.apple.CoreFoundation 0x00007fff20605b6c ___CFXRegistrationPost_block_invoke + 49
9 com.apple.CoreFoundation 0x00007fff20605aea _CFXRegistrationPost + 454
10 com.apple.CoreFoundation 0x00007fff2053b38e _CFXNotificationPost + 736
11 com.apple.Foundation 0x00007fff212a9dc8 -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
12 com.apple.Foundation 0x00007fff213b7b55 _performFileHandleSource + 1132
13 com.apple.CoreFoundation 0x00007fff2057497c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
14 com.apple.CoreFoundation 0x00007fff205748e4 __CFRunLoopDoSource0 + 180
15 com.apple.CoreFoundation 0x00007fff20574664 __CFRunLoopDoSources0 + 242
16 com.apple.CoreFoundation 0x00007fff2057308c __CFRunLoopRun + 893
17 com.apple.CoreFoundation 0x00007fff2057264c CFRunLoopRunSpecific + 563
18 com.apple.HIToolbox 0x00007fff287b0ab3 RunCurrentEventLoopInMode + 292
19 com.apple.HIToolbox 0x00007fff287b06e6 ReceiveNextEventCommon + 284
20 com.apple.HIToolbox 0x00007fff287b05b3 _BlockUntilNextEventMatchingListInModeWithFilter + 70
21 com.apple.AppKit 0x00007fff22d736f2 _DPSNextEvent + 864
22 com.apple.AppKit 0x00007fff22d71ec5 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364
23 com.apple.AppKit 0x00007fff22d64239 -[NSApplication run] + 586
24 com.apple.AppKit 0x00007fff22d3847c NSApplicationMain + 816
25 libdyld.dylib 0x00007fff20496f5d start + 1

Thread 1:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff204462ba mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff2044662c mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff20574b5f __CFRunLoopServiceMachPort + 316
3 com.apple.CoreFoundation 0x00007fff2057323f __CFRunLoopRun + 1328
4 com.apple.CoreFoundation 0x00007fff2057264c CFRunLoopRunSpecific + 563
5 com.apple.AppKit 0x00007fff22ef968a _NSEventThread + 124
6 libsystem_pthread.dylib 0x00007fff2047b8fc _pthread_start + 224
7 libsystem_pthread.dylib 0x00007fff20477443 thread_start + 15

Thread 2:
0 libsystem_pthread.dylib 0x00007fff20477420 start_wqthread + 0

Thread 3:
0 libsystem_pthread.dylib 0x00007fff20477420 start_wqthread + 0

Thread 4:
0 libsystem_pthread.dylib 0x00007fff20477420 start_wqthread + 0

Thread 5:
0 libsystem_pthread.dylib 0x00007fff20477420 start_wqthread + 0

Thread 6:
0 libsystem_pthread.dylib 0x00007fff20477420 start_wqthread + 0

Thread 7:
0 libsystem_pthread.dylib 0x00007fff20477420 start_wqthread + 0

Thread 8:
0 libsystem_pthread.dylib 0x00007fff20477420 start_wqthread + 0

Thread 9:
0 libsystem_pthread.dylib 0x00007fff20477420 start_wqthread + 0

Thread 10:
0 libsystem_pthread.dylib 0x00007fff20477420 start_wqthread + 0

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000005 rbx: 0x00007ffee61bc918 rcx: 0x0000000000000000 rdx: 0x00007ffee61bbd98
rdi: 0x00007ffee61bcc58 rsi: 0x000000000000002a rbp: 0x00007ffee61bbd70 rsp: 0x00007ffee61bbd30
r8: 0x0000000000001462 r9: 0x0000000000000010 r10: 0x0000000063732032 r11: 0x0000000000001533
r12: 0x0000000000000000 r13: 0x0000000000000033 r14: 0x0000000000000000 r15: 0x0000000000000001
rip: 0x0000000109a631e1 rfl: 0x0000000000010202 cr2: 0x000000014c6c4000

Logical CPU: 6
Error Code: 0x00000000
Trap Number: 13

Thread 0 instruction stream:
01 00 00 4c 89 ff 48 c1-e7 0a 4c 8d 15 3e d4 03 ...L..H...L..>..
00 49 01 fa 48 89 c7 48-c1 e7 07 4c 01 d7 4a 8b .I..H..H...L..J.
3c f7 48 31 bb d0 06 00-00 49 8d 7e ff 89 bc 81 <.H1.....I.~....
58 01 00 00 4c 89 f9 48-c1 e1 09 48 01 d9 48 89 X...L..H...H..H.
c7 48 c1 e7 06 48 01 cf-46 8b 94 b7 94 01 00 00 .H...H..F.......
48 63 8c b3 98 05 00 00-44 89 94 8f 98 01 00 00 Hc......D.......
[42]89 8c 93 98 05 00 00-89 42 30 c7 83 98 19 00 B........B0..... <==
00 00 00 00 00 4c 8b 55-c8 eb 1b 48 89 df e8 9c .....L.U...H....
0d 00 00 e9 28 fe ff ff-44 8b 83 a0 19 00 00 44 ....(...D......D
8b 9b a4 19 00 00 48 8d-05 32 f0 02 00 4a 8b 0c ......H..2...J..
e8 4a 21 0c d3 4a 8b 0c-e8 4a 21 4c e3 10 4a 8b .J!..J...J!L..J.
04 e8 48 21 43 10 48 8d-0d 12 ee 02 00 48 8b 04 ..H!C.H......H..

Thread 0 last branch register state not available.

Binary Images:
< REMOVED FOR BREVITY >

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=808.1M resident=0K(0%) swapped_out_or_unallocated=808.1M(100%)
Writable regions: Total=737.0M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=737.0M(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 640K 5
Activity Tracing 256K 1
CG backing stores 3240K 6
CG image 13.7M 69
CoreAnimation 37.9M 42
CoreGraphics 12K 2
CoreImage 256K 4
CoreUI image data 3164K 24
Foundation 44K 2
Kernel Alloc Once 8K 1
MALLOC 284.3M 61
MALLOC guard page 32K 8
MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)
STACK GUARD 56.0M 11
Stack 13.1M 11
VM_ALLOCATE 76K 17
__DATA 17.7M 401
__DATA_CONST 20.3M 240
__DATA_DIRTY 1155K 157
__FONT_DATA 4K 1
__LINKEDIT 499.8M 7
__OBJC_RO 70.2M 1
__OBJC_RW 2480K 2
__TEXT 308.4M 404
__UNICODE 588K 1
mapped file 264.4M 42
shared memory 764K 16
=========== ======= =======
TOTAL 1.9G 1537
TOTAL, minus reserved VM space 1.6G 1537

Model: MacBookPro15,2, BootROM 1554.120.19.0.0 (iBridge: 18.16.14663.0.0,0), 4 processors, Quad-Core Intel Core i7, 2.7 GHz, 8 GB, SMC
Graphics: kHW_IntelIrisGraphics655Item, Intel Iris Plus Graphics 655, spdisplays_builtin
Memory Module: BANK 0/ChannelA-DIMM0, 4 GB, LPDDR3, 2133 MHz, Samsung, K4E6E304EC-EGCG
Memory Module: BANK 2/ChannelB-DIMM0, 4 GB, LPDDR3, 2133 MHz, Samsung, K4E6E304EC-EGCG
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x7BF), wl0: Feb 16 2021 02:10:42 version 9.30.444.10.32.5.67 FWID 01-a00c1314
Bluetooth: Version 8.0.5d7, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.1 Bus
USB Device: Apple T2 Bus
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 47.5
Thunderbolt Bus: MacBook Pro, Apple Inc., 47.5

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

1 participant