[Pachi] Bus overflow error?

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


I did make clean & remade;

"bt full" yields:
(gdb) bt full
#0  0x0000000100002964 in board_play_f (board=0x100462bb0,
m=0x100409550, f=237) at board.c:1334
No locals.
#1  0x000000010003e245 in middle_ladder_walk (b=0x100462bb0,
laddered=<value temporarily unavailable, due to optimizations>,
nextmove=283, lcolor=S_BLACK) at ladder.c:73
	m = {
  coord = 283,
  color = S_BLACK
}
	res = <value temporarily unavailable, due to optimizations>
	liblist = {0, 0}
	libs = <value temporarily unavailable, due to optimizations>
	is_ladder = <value temporarily unavailable, due to optimizations>

Shall i compile with less optimizations?

On Mon, Jul 9, 2012 at 12:18 PM, Petr Baudis <pasky at ucw.cz> wrote:
>   Hi!
>
>   Curious. It works for me...
>
> On Mon, Jul 09, 2012 at 11:56:28AM -0400, Andrew J wrote:
>> 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
>
>   If you didn't build this from scratch, can you try to make clean and
> re-make? Is this backtrace complete or is there more?
>
>                                 Petr "Pasky" Baudis


More information about the Pachi mailing list