Search found 2210 matches

by Michel
Tue Oct 21, 2008 7:03 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Linux port of newer versions of TogaII
Replies: 54
Views: 16395

Re: Linux port of newer versions of TogaII

Another thing, one thread is always running at 100% of one core...... (this already starts when isready is entered). That is very interesting. Are you saying that one of the threads starts running (searching presumably) right after "isready" and before any "go" commands? This is not supposed to hap...
by Michel
Mon Oct 20, 2008 6:25 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: SEE
Replies: 18
Views: 4846

Re: SEE

Where can I read about SEE? I do not even know what SEE stands for, and predictably Google does not help.
by Michel
Mon Oct 20, 2008 5:38 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Linux port of newer versions of TogaII
Replies: 54
Views: 16395

Re: Linux port of newer versions of TogaII

colour=33554431 I think this cannot possibly happen. I think the stack has become corrupted and gdb is confused. Did you use libefence? Here are the macros that define the colour of a piece. I don't think they can yield colour=33554431, whatever weird value piece might have. #define PIECE_COLOUR...
by Michel
Mon Oct 20, 2008 4:27 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Linux port of newer versions of TogaII
Replies: 54
Views: 16395

Re: Linux port of newer versions of TogaII

A quick observation: if you apply the macros then -2 seems to be the opposite color of a None piece (presumably encoded by 0). The None piece itself has color -1. Reading the source of see_move this would seem to imply that see_move is called with a move from a square that is empty. So it is not nec...
by Michel
Mon Oct 20, 2008 4:12 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Linux port of newer versions of TogaII
Replies: 54
Views: 16395

Re: Linux port of newer versions of TogaII

You are right that this is an illegal access. However as Zack pointed out it seems that the argument colour=-2 in the function invocation see_rec (alists=0xb0080a88, board=0x38b48, colour=-2, to=153, piece_value=0) can only come from board corruption (colour is the colour of a piece which is...
by Michel
Mon Oct 20, 2008 3:08 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Linux port of newer versions of TogaII
Replies: 54
Views: 16395

Re: Linux port of newer versions of TogaII

Really? I can't say I have ever seen it. This is just from BSD experience though, not Linux, and usually when I debug I have optimizations off. Well it is quite possible that an incorrect memory access still falls within the memory owned by a process. Hence it does not cause a segfault. But the inc...
by Michel
Mon Oct 20, 2008 2:21 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Linux port of newer versions of TogaII
Replies: 54
Views: 16395

Re: Linux port of newer versions of TogaII

It seems the source of libefence needs a small modification to work on MACOSX.

This is supposedly a modified source.

http://www.sanger.ac.uk/Users/lh3/efenc ... 13.tar.bz2

Regards,
Michel
by Michel
Mon Oct 20, 2008 1:29 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Linux port of newer versions of TogaII
Replies: 54
Views: 16395

Re: Linux port of newer versions of TogaII

It seems gdb is thoroughly confused. Presumably the segfault does not occur at the actual memory access error (this very often happens in my experience). To debug this one should link with libefence http://perens.com/works/software/ElectricFence/ (LDFLAGS+=-lefence). If you then run gdb (after compi...
by Michel
Mon Oct 20, 2008 9:11 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Linux port of newer versions of TogaII
Replies: 54
Views: 16395

Re: Linux port of newer versions of TogaII

Ok I really can't reproduce this on Linux. Neither valgrind, libefence or gdb notices anything suspicious when running a 2 thread binary. These are the commands polyglot sends uci setoption name Hash value 64 isready ucinewgame position startpos moves g1f3 go wtime 60000 btime 60000 movestogo 40 pos...
by Michel
Mon Oct 20, 2008 7:08 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Linux port of newer versions of TogaII
Replies: 54
Views: 16395

Re: Linux port of newer versions of TogaII

Thanks for the info, You didn't specify if your computer is 32/64 bit. How many CPU's? Unfortunately for the moment I cannot reproduce the problem on Linux. But it must definitely be a bug in the toga sources which must be squashed. I will try to think about what it can possibly be. For the record, ...