Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#33 Segfault

CVS
closed-duplicate
5
2006-12-16
2006-11-18
Anonymous
No

Hi,

i'm using the cvs version/tag: nimble knight and it always segfaults after approx. 20 moves.

bt:
Program received signal SIGSEGV, Segmentation fault.
Board::getKing (this=0xb62d29a8, color=Piece::BLACK) at board.cpp:669
669 if (p->type() == Piece::KING && p->color() == color) {
(gdb) bt
#0 Board::getKing (this=0xb62d29a8, color=Piece::BLACK) at board.cpp:669
#1 0x08057a57 in BrutalPlayer::queenBonus (this=0xb5724440, bp=@0x81deac8,
board=@0xb62d29a8, turn=Piece::WHITE, endgame=true) at brutalplayer.cpp:167
#2 0x08057ca0 in BrutalPlayer::evaluateBoard (this=0xb5724440,
board=@0xb62d29a8, turn=Piece::WHITE) at brutalplayer.cpp:135
#3 0x080581bf in BrutalPlayer::search (this=0xb5724440, board=@0xb62d2be0,
color=Piece::WHITE, depth=0, alpha=-140, beta=2147483647, move=@0xb62d2c78)
at brutalplayer.cpp:54
#4 0x08058322 in BrutalPlayer::search (this=0xb5724440, board=@0xb62d2d80,
color=Piece::BLACK, depth=1, alpha=-2147483647, beta=140, move=@0xb62d2e18)
at brutalplayer.cpp:56
#5 0x08058322 in BrutalPlayer::search (this=0xb5724440, board=@0xb62d2f20,
color=Piece::WHITE, depth=2, alpha=-140, beta=2147483647, move=@0xb62d2fb8)
at brutalplayer.cpp:56
#6 0x08058322 in BrutalPlayer::search (this=0xb5724440, board=@0xb62d30ac,
color=Piece::BLACK, depth=3, alpha=-2147483647, beta=2147483647,
move=@0xb62d3144) at brutalplayer.cpp:56
#7 0x08058455 in BrutalPlayer::think (this=0xb5724440, cgs=@0xb62d318c)
at brutalplayer.cpp:27
#8 0x080610a2 in callThink (pt=0x81d2a68) at gamecore.cpp:800
#9 0xb7bfc53b in SDL_GetThreadID () from /usr/lib/libSDL-1.2.so.0
#10 0xb7c4764d in SDL_ThreadID () from /usr/lib/libSDL-1.2.so.0
#11 0xb7bdb31b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#12 0xb79b23ee in clone () from /lib/tls/i686/cmov/libc.so.6

uname:
Linux a 2.6.17-10-generic #2 SMP Fri Oct 13 18:45:35 UTC 2006 i686 GNU/Linux

btw, very nice game, keep it up.

-Gerd

Discussion

  • Joe Flint
    Joe Flint
    2006-12-16

    • status: open --> closed-duplicate