Glaurung 2-epsilon

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

Moderators: hgm, Rebel, chrisw

BBauer
Posts: 658
Joined: Wed Mar 08, 2006 8:58 pm

Re: Glaurung 2-epsilon

Post by BBauer »

I'm running Ubuntu 7.04 64-bit system.
Glaurung 2-epsilon compiles whithout any warnings,
but gives
Segmentation fault (core dumped)
immediatly.

kind regards
Bernhard
Tord Romstad
Posts: 1808
Joined: Wed Mar 08, 2006 9:19 pm
Location: Oslo, Norway

Re: Glaurung 2-epsilon

Post by Tord Romstad »

BBauer wrote:I'm running Ubuntu 7.04 64-bit system.
Glaurung 2-epsilon compiles whithout any warnings,
but gives
Segmentation fault (core dumped)
immediatly.
Hello Bernhard,

You are the second person to report this. The program seems to work well in 32-bit Linux (Volker Pittlik managed to compile it and reports promising early results; his binary will be added to the downloadable package from my web site later today), but clearly there are problems in 64-bit Linux.

Could you please try to comment out the line with #define USE_32BIT_ATTACKS near the top of bitboard.h and recompile everything (you have to do a "make clean" before recompiling, I think)? If this does not help, could you try running the program in gdb and inspect where the crash occurs?

Tord
BBauer
Posts: 658
Joined: Wed Mar 08, 2006 8:58 pm

Re: Glaurung 2-epsilon

Post by BBauer »

Change in .h doesn't help.

running gdb gives:

GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/bbauer/64/g2-epsilon/src/glaurung
[Thread debugging using libthread_db enabled]
[New Thread 47609559313184 (LWP 9713)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47609559313184 (LWP 9713)]
0x0000000000402a3f in pop_1st_bit (b=0x7fffb4bd71a0) at bitboard.cpp:134
134 *b &= (*b - 1);

kind regards
bernhard
Tord Romstad
Posts: 1808
Joined: Wed Mar 08, 2006 9:19 pm
Location: Oslo, Norway

Re: Glaurung 2-epsilon

Post by Tord Romstad »

BBauer wrote: Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47609559313184 (LWP 9713)]
0x0000000000402a3f in pop_1st_bit (b=0x7fffb4bd71a0) at bitboard.cpp:134
134 *b &= (*b - 1);
Thanks! I don't understand why this happens, but I have posted about the problem in the programming sub-forum. I hope someone will be able to give us advice.

Tord
BBauer
Posts: 658
Joined: Wed Mar 08, 2006 8:58 pm

Re: Glaurung 2-epsilon

Post by BBauer »

Thank you!

Feel free to contact me if I could help you.

regards
Bernhard
Tony Thomas

Re: Glaurung 2-epsilon

Post by Tony Thomas »

Brayn, Jim and Dan

We are still waiting for a windows binary.
Tord Romstad
Posts: 1808
Joined: Wed Mar 08, 2006 9:19 pm
Location: Oslo, Norway

Re: Glaurung 2-epsilon

Post by Tord Romstad »

Tony Thomas wrote:Brayn, Jim and Dan

We are still waiting for a windows binary.
Hello all,

I actually advise Bryan, Jim and Dann to wait a little longer with the Windows binary. There are some compatibility issues I'm working to solve first; I plan to prepare an updated version of my source code later today.

Tord