[Pachi] Bus overflow error?

Andrew J andrew.m.jackson at gmail.com
Mon Jul 9 17:56:28 CEST 2012

Hey all!

Trying to get the sgf-analyse.pl & .py scripts updated, and i seem to
be able to reliably crash pachi with the first ten moves of a game.

at debug level 4, it crashes as such:

> Fresh board with random seed 1341834332
> Spawned worker 0
> [1]    14703 bus error  ./pachi -t=10000 -d 4 < tools/genmovetest.gtp

but at debug level 5, it happily chugs along without any problem.

running gdb on it gives the following trace:
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_PROTECTION_FAILURE at address: 0x0000000100400e18
> [Switching to process 14807]
> 0x0000000100002964 in board_play_f (board=0x100462bb0, m=0x100409550, f=237) at board.c:1334
> 1334 {
> (gdb) bt
> #0  0x0000000100002964 in board_play_f (board=0x100462bb0, m=0x100409550, f=237) at board.c:1334
> #1  0x000000010003e245 in middle_ladder_walk (b=0x100462bb0, laddered=<value temporarily unavailable, due to optimizations>, nextmove=283, lcolor=S_BLACK) at ladder.c:73

The "genmovetest.gtp" file is 20 moves of a game i have between BIll
Lin & Feng Yun, followed by the genmove command.
> boardsize 19
> komi 7.50
> play B q16
> play W d4
> play B r4
> play W d17
> play B f3
> play W o4
> play B c6
> play W d6
> play B d7
> play W e6
> play B c3
> play W c5
> play B d3
> play W c7
> play B q6
> play W c14
> genmove B

I'm at this git commit:
built on a mac (e.g., Makefile has MAC=1)

Thanks for any help you can provide!


More information about the Pachi mailing list