New CFish Windows binary (from today's code)

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: New CFish Windows binary (from today's code)

Post by syzygy »

Jouni wrote:Yes I mean time losses as seen in this log:
Something was missing in the easy move logic. I have just fixed this.

I am not sure this completely fixes the time management issue. If you could test again that would be great.

I am afraid there is still a bug left causing a crash around move 100.
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: New CFish Windows binary (from today's code)

Post by syzygy »

syzygy wrote:I am afraid there is still a bug left causing a crash around move 100.
Which I have fixed now, hopefully.

I'd be interested in any remaining crashes (preferably including the pgn) and in hearing whether Cfish's time usage is now similar to that of Stockfish.
drj4759
Posts: 89
Joined: Mon Nov 17, 2014 10:05 am

Re: New CFish Windows binary (from today's code)

Post by drj4759 »

Thank you for the latest fix. I will immediately run tests for feedback.

When your computer is happy with CFish-Numa and mine is not, the only reason I could think of is that my computer is not Numa ready. I will have to make do with what is available.

Best wishes for your CFish development.
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: New CFish Windows binary (from today's code)

Post by syzygy »

drj4759 wrote:Thank you for the latest fix. I will immediately run tests for feedback.

When your computer is happy with CFish-Numa and mine is not, the only reason I could think of is that my computer is not Numa ready. I will have to make do with what is available.
NUMA is only relevant if your computer has more than one CPU socket. Mine does not and yours probably does not either.

I have Wine version 1.9.18 installed here. Maybe you have an older version. You could try this (on Linux):

Code: Select all

$ wine --version
wine-1.9.18 (Staging)
$ wine cfish.exe
fixme:winediag:start_process Wine Staging 1.9.18 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
err:winedevice:async_create_driver failed to create driver L"Null": c0000142
Cfish 161016 64 POPCNT by T. Romstad, M. Costalba, J. Kiiski, G. Linscott
uci
id name Cfish 161016 64 POPCNT
id author T. Romstad, M. Costalba, J. Kiiski, G. Linscott

option name Debug Log File type string default <empty>
option name Contempt type spin default 0 min -100 max 100
option name Threads type spin default 1 min 1 max 128
option name Hash type spin default 16 min 1 max 1048576
option name Clear Hash type button
option name Ponder type check default false
option name MultiPV type spin default 1 min 1 max 500
option name Skill Level type spin default 20 min 0 max 20
option name Move Overhead type spin default 30 min 0 max 5000
option name Minimum Thinking Time type spin default 20 min 0 max 5000
option name Slow Mover type spin default 89 min 10 max 1000
option name nodestime type spin default 0 min 0 max 10000
option name UCI_Chess960 type check default false
option name SyzygyPath type string default <empty>
option name SyzygyProbeDepth type spin default 1 min 1 max 100
option name Syzygy50MoveRule type check default true
option name SyzygyProbeLimit type spin default 6 min 0 max 6
option name LargePages type check default true
uciok
go depth 10
info string Unable to allocate large pages for the transposition table.
info depth 1 seldepth 1 multipv 1 score cp 90 nodes 20 nps 10000 tbhits 0 time 2 pv e2e4
info depth 2 seldepth 2 multipv 1 score cp 93 nodes 47 nps 23500 tbhits 0 time 2 pv e2e4 b7b6
info depth 3 seldepth 3 multipv 1 score cp 119 nodes 133 nps 66500 tbhits 0 time 2 pv d2d4 d7d6 e2e4
info depth 4 seldepth 4 multipv 1 score cp 15 nodes 567 nps 189000 tbhits 0 time 3 pv g1f3 d7d5 d2d4 e7e6
info depth 5 seldepth 5 multipv 1 score cp 48 nodes 1362 nps 272400 tbhits 0 time 5 pv g1f3 d7d5 d2d4 e7e6 e2e3
info depth 6 seldepth 6 multipv 1 score cp 12 nodes 3003 nps 500500 tbhits 0 time 6 pv e2e4 d7d5 e4e5 d5d4 f1b5 b8c6
info depth 7 seldepth 8 multipv 1 score cp 29 nodes 5978 nps 597800 tbhits 0 time 10 pv d2d4 d7d5 c1f4 c8g4 g1f3 e7e6 b1c3
info depth 8 seldepth 8 multipv 1 score cp 27 nodes 9487 nps 729769 tbhits 0 time 13 pv e2e4 d7d5 e4d5 d8d5 g1f3 b8c6 b1c3 d5e6 d1e2
info depth 9 seldepth 14 multipv 1 score cp 50 nodes 24655 nps 1120681 tbhits 0 time 22 pv d2d4 g8f6 b1c3 d7d5 c1f4 e7e6 e2e3 b8c6 c3b5
info depth 10 seldepth 14 multipv 1 score cp 54 nodes 48826 nps 1395028 tbhits 0 time 35 pv e2e4 e7e5 d2d4 e5d4 d1d4 b8c6 d4e3 d7d6 g1f3 g8f6 b1c3
bestmove e2e4 ponder e7e5
quit
If it crashes, post the output here and I might be able to say what is wrong.
drj4759
Posts: 89
Joined: Mon Nov 17, 2014 10:05 am

Re: New CFish Windows binary (from today's code)

Post by drj4759 »

I have WINE 1.8. PCLinuxOS is conservative in the selection of programs to minimize instablility.

Here is the output after executing wine CFish.exe. It did not reach the stage where the uci and bench command should be executed:

Unhandled exception: page fault on read access to 0x00000004 in 64-bit code (0x0000000000406476).
Register dump:
rip:0000000000406476 rsp:000000000032fc70 rbp:0000000000000000 eflags:00010246 ( R- -- I Z- -P- )
rax:0000000000551e10 rbx:0000000000000000 rcx:00000000005500a8 rdx:00000000005500b0
rsi:0000000000000000 rdi:0000000000000000 r8:00000000005500e8 r9:0000000000660000 r10:0000000000000001
r11:0000000000000002 r12:0000000000000001 r13:0000000000000010 r14:00007ffe96f01880 r15:0000000000010970
Stack dump:
0x000000000032fc70: 0000000000000001 000000007b88ac2b
0x000000000032fc80: 0000000000000000 0000000000000000
0x000000000032fc90: 0000000000000000 0000000000000000
0x000000000032fca0: 0000000000000001 000000000000002c
0x000000000032fcb0: 0000000000015170 0000000000551c40
0x000000000032fcc0: 0000000000000001 0000000000000008
0x000000000032fcd0: 00007ffe96f01880 0000000000405337
0x000000000032fce0: 000000000000002c 0000000000015170
0x000000000032fcf0: 0000000000551c40 0000000000000001
0x000000000032fd00: 0000000000000008 000000000040d505
0x000000000032fd10: 0000000000000001 0000000000406719
0x000000000032fd20: 0000000000000000 0000000000000000
Backtrace:
=>0 0x0000000000406476 in cfish (+0x6476) (0x0000000000000000)
1 0x0000000000405337 in cfish (+0x5336) (0x0000000000551c40)
2 0x000000000040d505 in cfish (+0xd504) (0x0000000000551c40)
3 0x00000000004013e8 in cfish (+0x13e7) (0x0000000000551c40)
4 0x000000000040151b in cfish (+0x151a) (0x0000000000400000)
5 0x00007f976085051e call_thread_func+0xcd() in ntdll (0x0000000000400000)
6 0x00007f97608496f2 RtlRaiseException+0x7d() in ntdll (0x0000000000400000)
7 0x00007f976081970c in ntdll (+0x4970b) (0x0000000000400000)
8 0x00007f97612b51c3 wine_call_on_stack+0x12() in libwine.so.1 (0x00007ffe96f01660)
9 0x00007f97612b5329 wine_switch_to_stack+0x8() in libwine.so.1 (0x00007fffff7ef000)
10 0x00007f976081da10 LdrInitializeThunk+0x2df() in ntdll (0x00007fffff7ef000)
11 0x000000007b87d4f3 __wine_kernel_init+0x932() in kernel32 (0x00007f9760ac9340)
12 0x00007f976081eb68 __wine_process_init+0x177() in ntdll (0x00007ffe96f02a40)
13 0x00007f97612b375e wine_init+0x29d() in libwine.so.1 (0x00007ffe96f02b40)
14 0x000000007bf00f8c main+0x8b() in <wine-loader> (0x00007ffe96f03058)
15 0x00007f9760cf0fd0 __libc_start_main+0xef() in libc.so.6 (0x000000007bf01330)
16 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
17 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
18 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
19 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
20 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
21 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
22 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
23 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
24 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
25 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
26 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
27 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
28 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
29 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
30 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
31 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
32 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
33 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
34 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
35 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
36 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
37 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
38 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
39 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
40 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
41 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
42 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
43 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
44 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
45 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
46 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
47 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
48 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
49 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
50 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
51 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
52 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
53 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
54 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
55 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
56 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
57 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
58 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
59 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
60 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
61 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
62 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
63 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
64 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
65 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
66 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
67 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
68 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
69 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
70 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
71 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
72 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
73 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
74 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
75 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
76 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
77 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
78 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
79 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
80 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
81 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
82 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
83 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
84 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
85 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
86 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
87 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
88 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
89 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
90 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
91 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
92 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
93 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
94 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
95 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
96 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
97 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
98 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
99 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
100 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
101 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
102 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
103 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
104 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
105 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
106 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
107 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
108 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
109 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
110 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
111 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
112 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
113 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
114 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
115 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
116 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
117 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
118 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
119 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
120 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
121 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
122 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
123 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
124 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
125 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
126 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
127 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
128 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
129 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
130 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
131 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
132 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
133 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
134 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
135 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
136 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
137 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
138 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
139 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
140 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
141 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
142 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
143 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
144 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
145 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
146 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
147 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
148 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
149 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
150 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
151 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
152 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
153 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
154 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
155 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
156 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
157 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
158 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
159 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
160 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
161 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
162 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
163 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
164 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
165 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
166 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
167 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
168 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
169 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
170 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
171 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
172 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
173 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
174 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
175 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
176 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
177 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
178 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
179 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
180 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
181 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
182 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
183 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
184 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
185 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
186 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
187 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
188 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
189 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
190 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
191 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
192 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
193 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
194 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
195 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
196 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
197 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
198 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
199 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
200 0x000000007bf01250 _start+0x28() in <wine-loader> (0x0000000000000000)
0x0000000000406476: movl 0x0000000000000004(%rdi),%r10d
Modules:
Module Address Debug info Name (20 modules)
PE 400000- 547000 Export cfish
ELF 7b800000- 7bc86000 Dwarf kernel32<elf>
\-PE 7b820000- 7bc86000 \ kernel32
ELF 7be00000- 7c103000 Dwarf <wine-loader>
ELF 7f975e8c4000- 7f975eaee000 Deferred libtinfo.so.5
ELF 7f975eaee000- 7f975ed16000 Deferred libncurses.so.5
ELF 7f975ed16000- 7f975efe7000 Deferred msvcrt<elf>
\-PE 7f975ed30000- 7f975efe7000 \ msvcrt
ELF 7f975efe7000- 7f975f277000 Deferred advapi32<elf>
\-PE 7f975f000000- 7f975f277000 \ advapi32
ELF 7f9760299000- 7f97604b0000 Deferred libgcc_s.so.1
ELF 7f97604b0000- 7f97607b6000 Deferred libm.so.6
ELF 7f97607b6000- 7f9760aca000 Dwarf ntdll<elf>
\-PE 7f97607d0000- 7f9760aca000 \ ntdll
ELF 7f9760acd000- 7f9760cd1000 Deferred libdl.so.2
ELF 7f9760cd1000- 7f9761085000 Dwarf libc.so.6
ELF 7f9761086000- 7f97612a2000 Deferred libpthread.so.0
ELF 7f97612a2000- 7f9761661000 Dwarf libwine.so.1
ELF 7f976168b000- 7f97618ad000 Deferred ld-linux-x86-64.so.2
ELF 7ffe96f86000- 7ffe96f87000 Deferred [vdso].so
Threads:
process tid prio (all id:s are in hex)
0000000e services.exe
00000023 0
00000022 0
00000016 0
00000012 0
0000000f 0
00000010 explorer.exe
00000021 0
00000020 0
0000001f 0
00000011 0
00000014 winedevice.exe
0000001e 0
0000001b 0
0000001a 0
00000015 0
0000001c plugplay.exe
00000025 0
00000024 0
0000001d 0
00000026 (D) Z:\hda\Compile\CFish\CFish 161016\CFish.exe
00000027 0 <==
System information:
Wine build: wine-1.8 (Staging)
Platform: x86_64
Version: Windows XP
Host system: Linux
Host version: 4.7.6-pclos1
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: New CFish Windows binary (from today's code)

Post by syzygy »

Unfortunately the stack trace does not betray what part of Cfish is causing problems with Wine.

Anyway, if it is the NUMA code, then compiling with numa=no should fix it.

Also the binary posted by Dann do not crash on my system (the modern and vanilla ones are identical).
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: New CFish Windows binary (from today's code)

Post by MikeB »

syzygy wrote:Unfortunately the stack trace does not betray what part of Cfish is causing problems with Wine.

Anyway, if it is the NUMA code, then compiling with numa=no should fix it.

Also the binary posted by Dann do not crash on my system (the modern and vanilla ones are identical).
Here's a link to the current cfish ( today's code) for MacOS:

https://www.dropbox.com/s/5if904bksg418 ... S.zip?dl=1

No NUMA of course on the Mac.

The only change to the source required is in tt.c This section had to be commented out (and of course the trailing "#endif") :

Code: Select all

/*#ifdef __APPLE__

  if &#40;settings.large_pages&#41; &#123;
    TT.mem = mmap&#40;NULL, alloc_size, PROT_READ | PROT_WRITE,
                  MAP_PRIVATE | MAP_ANONYMOUS, VM_SUPERPAGE_SIZE_2MB, 0&#41;;
    if (!TT.mem&#41;
      printf&#40;"info string Unable to allocate large pages for the "
             "transposition table.\n");
    else
      printf&#40;"info string Transposition table allocated using large pages.\n");
    fflush&#40;stdout&#41;;
  &#125;
  if (!TT.mem&#41;
    TT.mem = mmap&#40;NULL, alloc_size, PROT_READ | PROT_WRITE,
                  MAP_PRIVATE | MAP_ANONYMOUS, -1, 0&#41;;
#else*/

  TT.mem = mmap&#40;NULL, alloc_size, PROT_READ | PROT_WRITE,
                MAP_PRIVATE | MAP_ANONYMOUS, -1, 0&#41;;

//#endif
Source can be found here:

https://github.com/syzygy1/Cfish
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: New CFish Windows binary (from today's code)

Post by syzygy »

MikeB wrote:The only change to the source required is in tt.c This section had to be commented out (and of course the trailing "#endif") :
That part does not work on MacOS X?

I cannot test it myself, but I took it probably from here:
http://stackoverflow.com/questions/3233 ... n-mac-os-x

Code: Select all

    void *p = mmap&#40;&#40;void *) 0x000200000000, 8 * 1024 * 1024,
                   PROT_READ | PROT_WRITE,
                   MAP_ANON | MAP_FIXED | MAP_PRIVATE,
                   VM_FLAGS_SUPERPAGE_SIZE_2MB, 0&#41;;
One thing I am clearly doing wrong: I should test against MAP_FAILED (which is (void *)-1) and not against NULL.

What is the problem on your system? Is VM_FLAGS_SUPERPAGE_SIZE_2MB not defined? Or does the program crash?

I should probably anyway test if VM_FLAGS_SUPERPAGE_SIZE_2MB is defined. And I should of course test against MAP_FAILED.
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: New CFish Windows binary (from today's code)

Post by MikeB »

syzygy wrote:
MikeB wrote:The only change to the source required is in tt.c This section had to be commented out (and of course the trailing "#endif") :
That part does not work on MacOS X?

I cannot test it myself, but I took it probably from here:
http://stackoverflow.com/questions/3233 ... n-mac-os-x

Code: Select all

    void *p = mmap&#40;&#40;void *) 0x000200000000, 8 * 1024 * 1024,
                   PROT_READ | PROT_WRITE,
                   MAP_ANON | MAP_FIXED | MAP_PRIVATE,
                   VM_FLAGS_SUPERPAGE_SIZE_2MB, 0&#41;;
One thing I am clearly doing wrong: I should test against MAP_FAILED (which is (void *)-1) and not against NULL.

What is the problem on your system? Is VM_FLAGS_SUPERPAGE_SIZE_2MB not defined? Or does the program crash?

I should probably anyway test if VM_FLAGS_SUPERPAGE_SIZE_2MB is defined. And I should of course test against MAP_FAILED.

Code: Select all

tt.c&#58;96&#58;48&#58; error&#58; use of undeclared identifier 'VM_SUPERPAGE_SIZE_2MB'
                  MAP_PRIVATE | MAP_ANONYMOUS, VM_SUPERPAGE_SIZE_2MB, 0&#41;;
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: New CFish Windows binary (from today's code)

Post by syzygy »

MikeB wrote:

Code: Select all

tt.c&#58;96&#58;48&#58; error&#58; use of undeclared identifier 'VM_SUPERPAGE_SIZE_2MB'
                  MAP_PRIVATE | MAP_ANONYMOUS, VM_SUPERPAGE_SIZE_2MB, 0&#41;;
Oops, it should have been VM_FLAGS_SUPERPAGE_SIZE_2MB.

I'll fix this and probably anyway test for the presence of this #define.