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
Glaurung 2-epsilon
Moderators: hgm, Rebel, chrisw
-
- Posts: 1808
- Joined: Wed Mar 08, 2006 9:19 pm
- Location: Oslo, Norway
Re: Glaurung 2-epsilon
Hello Bernhard,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.
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
-
- Posts: 658
- Joined: Wed Mar 08, 2006 8:58 pm
Re: Glaurung 2-epsilon
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
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
-
- Posts: 1808
- Joined: Wed Mar 08, 2006 9:19 pm
- Location: Oslo, Norway
Re: Glaurung 2-epsilon
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.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);
Tord
-
- Posts: 658
- Joined: Wed Mar 08, 2006 8:58 pm
Re: Glaurung 2-epsilon
Thank you!
Feel free to contact me if I could help you.
regards
Bernhard
Feel free to contact me if I could help you.
regards
Bernhard
Re: Glaurung 2-epsilon
Brayn, Jim and Dan
We are still waiting for a windows binary.
We are still waiting for a windows binary.
-
- Posts: 1808
- Joined: Wed Mar 08, 2006 9:19 pm
- Location: Oslo, Norway
Re: Glaurung 2-epsilon
Hello all,Tony Thomas wrote:Brayn, Jim and Dan
We are still waiting for a windows binary.
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