Crafty 23.4

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

Moderator: Ras

bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 23.4

Post by bob »

Jim Ablett wrote:I'm having a lot of trouble running my Linux compiles with the new src. (my Linux system is Mint (debian based). This is 32 bit. I haven't tested
64 bit yet.
I get same error with both GCC & Intel.
Crafty v23.4 JA (1 cpus)

White(1): go
ERROR! board[16]=0, should be -1
ERROR! board[17]=0, should be -1
ERROR! board[18]=0, should be -1
ERROR! board[19]=0, should be -1
ERROR! board[20]=0, should be -1
ERROR! board[21]=0, should be -1
ERROR! board[22]=0, should be -1
ERROR! board[23]=0, should be -1
ERROR! board[25]=0, should be -2
ERROR! board[30]=0, should be -2
ERROR! board[26]=0, should be -3
ERROR! board[29]=0, should be -3
ERROR! board[24]=0, should be -4
ERROR! board[31]=0, should be -4
ERROR! board[27]=0, should be -5
ERROR! board[28]=0, should be -6
processor id: cpu-0
current move:
move= piece=0, from=0, to=0, captured=0, promote=0

+---+---+---+---+---+---+---+---+
8 |<R>|<N>|<B>|<Q>|<K>|<B>|<N>|<R>|
+---+---+---+---+---+---+---+---+
7 |<P>|<P>|<P>|<P>|<P>|<P>|<P>|<P>|
+---+---+---+---+---+---+---+---+
6 | | . | | . | | . | | . |
+---+---+---+---+---+---+---+---+
5 | . | | . | | . | | . | |
+---+---+---+---+---+---+---+---+
4 | | . | | . | | . | | . |
+---+---+---+---+---+---+---+---+
3 | . | | . | | . | | . | |
+---+---+---+---+---+---+---+---+
2 |-P-|-P-|-P-|-P-|-P-|-P-|-P-|-P-|
+---+---+---+---+---+---+---+---+
1 |-R-|-N-|-B-|-Q-|-K-|-B-|-N-|-R-|
+---+---+---+---+---+---+---+---+
a b c d e f g h

called from Main(1), ply=0
node=0
active path:
Jim.
I tried both and see nothing but normal results.

Can you try gcc, use the -g (debug) option on the compile _and_ link commands, then run it under the gnu debugger:

gdb crafty
run
go

and if it fails, try "where" to see exactly where it is crashing? It has been running on both linux and windows platforms during testing with no problems at all... I assume no unusual .craftyrc/crafty.rc file options? No huge hash or anything (since big hash can break on a 32 bit system).

If it works on 64 but fails on 32 bit, let me know. I don't test on 32 bits as I don't have a 32 bit machine left to test with...
User avatar
Jim Ablett
Posts: 2467
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Crafty 23.4

Post by Jim Ablett »

Linux 64 bit is working fine.

Here's the Linux 32 bit debug (doesn't show a lot more)>
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run
Starting program: /home/jimablett/Projects/src/crafty
[Thread debugging using libthread_db enabled]
[New Thread 0x9acc840 (LWP 4654)]
EPD Kit revision date: 1996.04.21
unable to open book file [./book.bin].
book is disabled
unable to open book file [./books.bin].

Crafty v23.4 JA (1 cpus)

White(1): go
ERROR! board[16]=0, should be -1
ERROR! board[17]=0, should be -1
ERROR! board[18]=0, should be -1
ERROR! board[19]=0, should be -1
ERROR! board[20]=0, should be -1
ERROR! board[21]=0, should be -1
ERROR! board[22]=0, should be -1
ERROR! board[23]=0, should be -1
ERROR! board[25]=0, should be -2
ERROR! board[30]=0, should be -2
ERROR! board[26]=0, should be -3
ERROR! board[29]=0, should be -3
ERROR! board[24]=0, should be -4
ERROR! board[31]=0, should be -4
ERROR! board[27]=0, should be -5
ERROR! board[28]=0, should be -6
processor id: cpu-0
current move:
move= piece=0, from=0, to=0, captured=0, promote=0

+---+---+---+---+---+---+---+---+
8 |<R>|<N>|<B>|<Q>|<K>|<B>|<N>|<R>|
+---+---+---+---+---+---+---+---+
7 |<P>|<P>|<P>|<P>|<P>|<P>|<P>|<P>|
+---+---+---+---+---+---+---+---+
6 | | . | | . | | . | | . |
+---+---+---+---+---+---+---+---+
5 | . | | . | | . | | . | |
+---+---+---+---+---+---+---+---+
4 | | . | | . | | . | | . |
+---+---+---+---+---+---+---+---+
3 | . | | . | | . | | . | |
+---+---+---+---+---+---+---+---+
2 |-P-|-P-|-P-|-P-|-P-|-P-|-P-|-P-|
+---+---+---+---+---+---+---+---+
1 |-R-|-N-|-B-|-Q-|-K-|-B-|-N-|-R-|
+---+---+---+---+---+---+---+---+
a b c d e f g h

called from Main(1), ply=0
node=0
active path:

Program exited with code 01.
(gdb)

I'm going to run it through Valgrind and report back.

Jim.
User avatar
Jim Ablett
Posts: 2467
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Crafty 23.4

Post by Jim Ablett »

Don't know if this shows anything useful.

Here is Valgrind output >
Crafty v23.4 JA (1 cpus)

==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x81443C6: __vfprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80635C7: Print (stdio2.h:128)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144433: __vfprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80635C7: Print (stdio2.h:128)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x812D4C0: fflush (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80635D8: Print (utility.c:1734)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x812D510: fflush (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80635D8: Print (utility.c:1734)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x814415F: __printf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80A1824: main (stdio2.h:105)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x81441DD: __printf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80A1824: main (stdio2.h:105)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x812D4C0: fflush (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80A1832: main (main.c:4189)
White(1): ==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x812D510: fflush (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80A1832: main (main.c:4189)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8117498: read (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068A21: ReadInput (unistd.h:45)
go
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144296: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80A1892: main (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144303: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80A1892: main (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x813A392: malloc (in /home/jimablett/Projects/src/crafty)
==5654== by 0x808392A: EPDStringAppendChar (epd.c:166)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x813A3C7: malloc (in /home/jimablett/Projects/src/crafty)
==5654== by 0x808392A: EPDStringAppendChar (epd.c:166)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8137B9A: free (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8083948: EPDStringAppendChar (epd.c:175)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8137BBA: free (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8083948: EPDStringAppendChar (epd.c:175)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x813A392: malloc (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8083BD0: EPDTokenize (epd.c:166)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x813A3C7: malloc (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8083BD0: EPDTokenize (epd.c:166)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8137B9A: free (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8083C1A: EPDTokenize (epd.c:175)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8137BBA: free (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8083C1A: EPDTokenize (epd.c:175)
ERROR! board[16]=0, should be -1
ERROR! board[17]=0, should be -1
ERROR! board[18]=0, should be -1
ERROR! board[19]=0, should be -1
ERROR! board[20]=0, should be -1
ERROR! board[21]=0, should be -1
ERROR! board[22]=0, should be -1
ERROR! board[23]=0, should be -1
ERROR! board[25]=0, should be -2
ERROR! board[30]=0, should be -2
ERROR! board[26]=0, should be -3
ERROR! board[29]=0, should be -3
ERROR! board[24]=0, should be -4
ERROR! board[31]=0, should be -4
ERROR! board[27]=0, should be -5
ERROR! board[28]=0, should be -6
processor id: cpu-0
current move:
move= piece=0, from=0, to=0, captured=0, promote=0
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x812DD33: fwrite (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80686A2: DisplayChessBoard (utility.c:614)

+---+---+---+---+---+---+---+---+
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x812DDE7: fwrite (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80686A2: DisplayChessBoard (utility.c:614)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144296: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80686D9: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144303: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80686D9: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144296: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068707: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144303: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068707: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144296: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068736: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144303: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068736: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144296: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068765: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144303: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068765: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144296: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068794: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144303: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068794: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144296: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80687C3: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144303: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80687C3: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144296: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80687F2: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144303: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80687F2: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144296: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068821: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144303: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068821: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144296: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068858: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8144303: __fprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068858: DisplayChessBoard (stdio2.h:98)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x812DD33: fwrite (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068877: DisplayChessBoard (utility.c:619)
8 |<R>|<N>|<B>|<Q>|<K>|<B>|<N>|<R>|
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x812DDE7: fwrite (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8068877: DisplayChessBoard (utility.c:619)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x812DD33: fwrite (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80688A0: DisplayChessBoard (utility.c:620)
+---+---+---+---+---+---+---+---+
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x812DDE7: fwrite (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80688A0: DisplayChessBoard (utility.c:620)
7 |<P>|<P>|<P>|<P>|<P>|<P>|<P>|<P>|
+---+---+---+---+---+---+---+---+
6 | | . | | . | | . | | . |
+---+---+---+---+---+---+---+---+
5 | . | | . | | . | | . | |
+---+---+---+---+---+---+---+---+
4 | | . | | . | | . | | . |
+---+---+---+---+---+---+---+---+
3 | . | | . | | . | | . | |
+---+---+---+---+---+---+---+---+
2 |-P-|-P-|-P-|-P-|-P-|-P-|-P-|-P-|
+---+---+---+---+---+---+---+---+
1 |-R-|-N-|-B-|-Q-|-K-|-B-|-N-|-R-|
+---+---+---+---+---+---+---+---+
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x812DD33: fwrite (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80688D0: DisplayChessBoard (utility.c:622)
a b c d e f g h

==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x812DDE7: fwrite (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80688D0: DisplayChessBoard (utility.c:622)
called from Main(1), ply=0
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8153FE4: _itoa (in /home/jimablett/Projects/src/crafty)
==5654== by 0x81574E2: vfprintf (in /home/jimablett/Projects/src/crafty)
==5654== by 0x81443FF: __vfprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8063619: Print (stdio2.h:118)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x815609F: vfprintf (in /home/jimablett/Projects/src/crafty)
==5654== by 0x81443FF: __vfprintf_chk (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8063619: Print (stdio2.h:118)
node=0
active path:
==5654==
==5654== Use of uninitialised value of size 4
==5654== at 0x812841F: exit (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80689DB: CraftyExit (utility.c:404)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x8134F26: _IO_cleanup (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8128479: exit (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80689DB: CraftyExit (utility.c:404)
==5654==
==5654== Conditional jump or move depends on uninitialised value(s)
==5654== at 0x813500F: _IO_cleanup (in /home/jimablett/Projects/src/crafty)
==5654== by 0x8128479: exit (in /home/jimablett/Projects/src/crafty)
==5654== by 0x80689DB: CraftyExit (utility.c:404)
==5654==
==5654== ERROR SUMMARY: 4135 errors from 229 contexts (suppressed: 0 from 0)
==5654== malloc/free: in use at exit: 0 bytes in 0 blocks.
==5654== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==5654== For counts of detected errors, rerun with: -v
==5654== Use --track-origins=yes to see where uninitialised values come from
==5654== All heap blocks were freed -- no leaks are possible.

Jim.
User avatar
fern
Posts: 8755
Joined: Sun Feb 26, 2006 4:07 pm

Re: Crafty 23.4

Post by fern »

Hi Jim:
When are you going to have a win exec.?
Or already you did it?
If then, where I can download it.
cheers
Fern
User avatar
Jim Ablett
Posts: 2467
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Crafty 23.4

Post by Jim Ablett »

fern wrote:Hi Jim:
When are you going to have a win exec.?
Or already you did it?
If then, where I can download it.
cheers
Fern
Hi Fernando,

Yes, I have compiled it now for Windows (64/32 bit) & Linux (64 bit only).

http://dl.dropbox.com/u/5047625/crafty-234-ja.zip
Mirror:
http://www.mediafire.com/?znw63zdqf81aaoe

or at my homepage below >

Jim.
User avatar
beachknight
Posts: 3533
Joined: Tue Jan 09, 2007 8:33 pm
Location: Antalya, Turkey

Re: Crafty 23.4

Post by beachknight »

fern wrote:Hi Jim:
When are you going to have a win exec.?
Or already you did it?
If then, where I can download it.
cheers
Fern
Fern, what about checking Jims www page?

:)
hi, merhaba, hallo HT
Pablo Vazquez
Posts: 155
Joined: Thu May 31, 2007 9:05 pm
Location: Madrid, Spain

Re: Crafty 23.4

Post by Pablo Vazquez »

In version 23.4, line 70 in chess.h was changed to #define HAS_64BITS. This makes it use unsigned longs for bitboards when compiling for linux, and long is 32 bits in 32 bit mode.
Martin Thoresen
Posts: 1833
Joined: Thu Jun 22, 2006 12:07 am

Re: Crafty 23.4

Post by Martin Thoresen »

The .exe crashes if I assign 4096 MB hash in the .rc file.

Is this supposed to happen?

Using crafty-234-64-ja.exe
User avatar
fern
Posts: 8755
Joined: Sun Feb 26, 2006 4:07 pm

Re: Crafty 23.4

Post by fern »

Thanks Jim...
F