gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] arend_3_17.1 crashes


From: bump
Subject: Re: [gnugo-devel] arend_3_17.1 crashes
Date: Tue, 18 Feb 2003 18:31:46 -0800

> > The crashes dissappear on backing out arend_3_17.1.
> 
> I will try to find out what happened, but I didn't get any problems
> here.

If I compile reading.c without optimization, the crash in 
reading:10 occurs at line 2207 of reading.c. This is the line:

   int alib = accuratelib(apos, other, 2, alibs);

I can arrive at the spot where the crash occurs as follows:

set args --quiet -l gnugo-3.3.17/regression/games/incident79.sgf 
del
b reading.c:2218
run
b 2207
c
c 15

(gdb) bt
#0  superstring_moves (str=41, moves=0xbfffe830, liberty_cap=3, does_attack=0)
    at reading.c:2207
#1  0x080911bd in defend2 (str=41, move=0xbfffea54, komaster=0, kom_pos=0)
    at reading.c:1392
#2  0x0808fe54 in do_find_defense (str=41, move=0xbfffeab0, komaster=0, 
    kom_pos=0) at reading.c:1066
#3  0x080958b2 in attack2 (str=41, move=0xbfffefe8, komaster=0, kom_pos=0)
    at reading.c:3279
#4  0x0809481e in do_attack (str=41, move=0xbffff018, komaster=0, kom_pos=0)
    at reading.c:2918
#5  0x0808e417 in attack (str=41, move=0xbffff068) at reading.c:261
#6  0x080ae266 in find_worm_attacks_and_defenses () at worm.c:760
#7  0x080acced in make_worms () at worm.c:106
#8  0x080679a0 in examine_position (color=2, how_much=99) at genmove.c:122
#9  0x08067f24 in do_genmove (move=0xbffff808, color=2, 
    pure_threat_value=0.400000006, allowed_moves=0x0) at genmove.c:346
#10 0x08067c7e in genmove (i=0xbffff830, j=0xbffff834, color=2)
    at genmove.c:240
#11 0x08052a4d in load_and_analyze_sgf_file (gameinfo=0xbffff930)
    at play_solo.c:160
#12 0x0804a43c in main (argc=4, argv=0xbffff9d4) at main.c:1002
#13 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6

gdb) set dump_stack()
Cannot access memory at address 0x4
(gdb) p apos
$8 = 101
(gdb) p alibs
$9 = (int (*)[0]) 0x8
(gdb) p *alibs
$10 = 0x8
(gdb) p board[apos]
$11 = 0 '\0'
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
superstring_moves (str=41, moves=0xbfffe830, liberty_cap=3, does_attack=0)
    at reading.c:2207

Dan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]