Discussion of chess software programming and technical issues.
Moderators: hgm, Dann Corbit, Harvey Williamson
Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
-
Michel
- Posts: 2141
- Joined: Sun Sep 28, 2008 11:50 pm
Post
by Michel » Wed Oct 01, 2008 11:11 am
Hi ,
I ported Toga 14b5c and Toga 142JD back to linux

. See
http://emis.uhasselt.be/~webby/Toga/
I think these sources will still compile under windows. Perhaps someone can verify this.
The porting was not hard. The windows thread api and the posix thread api are more
or less equivalent.
Regards,
Michel
-
krazyken
Post
by krazyken » Wed Oct 01, 2008 6:22 pm
Hey thanks! They compile fine on Mac OS X.
How do you set the number of threads? They seem to default to 2.
-
Michel
- Posts: 2141
- Joined: Sun Sep 28, 2008 11:50 pm
Post
by Michel » Wed Oct 01, 2008 7:00 pm
There is a line
const int NumberThreads = 2;
in search.h.
You can change it.
Regards,
Michel
-
IanO
- Posts: 487
- Joined: Wed Mar 08, 2006 8:45 pm
- Location: Portland, OR
-
Contact:
Post
by IanO » Mon Oct 13, 2008 9:05 pm
krazyken wrote:Hey thanks! They compile fine on Mac OS X.
How do you set the number of threads? They seem to default to 2.
Could you stick your build of 1.4 for the Mac somewhere public? The last version for the Mac made available was 1.2b2a.
Ian
-
Michel
- Posts: 2141
- Joined: Sun Sep 28, 2008 11:50 pm
Post
by Michel » Tue Oct 14, 2008 12:55 pm
Could you stick your build of 1.4 for the Mac somewhere public? The last version for the Mac made available was 1.2b2a.
If you do please take the latest version from
http://alpha.uhasselt.be/Research/Algeb ... _versions/
I found a bug in the book handling code in the MP versions of Toga. This bug is
also present in the Windows versions but apparently went unnoticed.
Michel
-
krazyken
Post
by krazyken » Thu Oct 16, 2008 3:08 pm
I can probably do that. Although it would be nicer if someone like Tord who has the Intel compiler did it. I'll post up something later today anyway. You want 32 or 64 bits? and how many threads? And do you have a preference for some version?
-
krazyken
Post
by krazyken » Sun Oct 19, 2008 8:41 pm
Now that I've had time to work with it a bit, it seems that although these compile, they crash after a few moves when playing. I'll look into it a bit more...
-
Michel
- Posts: 2141
- Joined: Sun Sep 28, 2008 11:50 pm
Post
by Michel » Sun Oct 19, 2008 9:08 pm
Now that I've had time to work with it a bit, it seems that although these compile, they crash after a few moves when playing. I'll look into it a bit more...
I have heard from someone else who had the same problem. Sadly he couldn't supply any details and I don't have access to a Mac.
I am curious what "crashing" means. Whether the engine hangs or just sends incorrect information to the GUI?
Does the crash also happen if you execute the UCI commands directly in the terminal?
Does the crash also happen if the number of threads is 1?
Did you take the latest version from from
http://alpha.uhasselt.be/Research/Algeb ... _versions/? There was a bug in which is some cases Toga would report a1a1 as a move making polyglot unhappy for example. It happens only on a MP version using its own book.
-
krazyken
Post
by krazyken » Sun Oct 19, 2008 11:12 pm
the engine terminates. Tried with threads =1 and it does not crash. It appears to be happening while thinking about the second non-book move of the game. And yes I'm using the latest patch.
crash report:
Code: Select all
Process: Toga2 [76014]
Path: ./Toga2
Identifier: Toga2
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: polyglotw [76013]
Date/Time: 2008-10-19 16:46:40.232 -0600
OS Version: Mac OS X 10.5.5 (9F33)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000bcf0e694
Crashed Thread: 1
Thread 0:
0 Toga2 0x0000f4a7 gen_captures(list_t*, board_t const*) + 2503
Thread 1 Crashed:
0 Toga2 0x00019b32 see_move(int, board_t const*) + 1554
1 ??? 0000000000 0 + 0
Thread 1 crashed with X86 Thread State (32-bit):
eax: 0x6f3bb81e ebx: 0x0001952f ecx: 0x000000b6 edx: 0xffffff80
edi: 0x00000039 esi: 0x90909090 ebp: 0x00020440 esp: 0xb00808f0
ss: 0x0000001f efl: 0x00010217 eip: 0x00019b32 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
cr2: 0xbcf0e694
Binary Images:
0x1000 - 0x1ffff +Toga2 ??? (???) <68181c67370ebed68a88275266877b50> /Volumes/Ferk/Chess/ChessApps/TogaII/Toga2
0x8fe00000 - 0x8fe2da53 dyld 96.2 (???) <7af47d3b00b2268947563c7fa8c59a07> /usr/lib/dyld
0x9067a000 - 0x9067efff libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
0x90c3b000 - 0x90d9bff3 libSystem.B.dylib ??? (???) <a12f397abf2285077b89bd726bff5b18> /usr/lib/libSystem.B.dylib
0x97086000 - 0x9708dfe9 libgcc_s.1.dylib ??? (???) <a9ab135a5f81f6e345527df87f51bfc9> /usr/lib/libgcc_s.1.dylib
0xffff0000 - 0xffff1780 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib