On Sat, Oct 14, 2006 at 10:21:55PM +0200, Falk Hueffner wrote:
> [...]
> cat test | ./gnushogi -R -b _tmp_t -B ./gnushogi.bbk -S 8000 -P 40 3 0
> /bin/sh: line 1: 12000 Done                    cat test
>      12001 Segmentation fault      | ./gnushogi -R -b _tmp_t -B 
> ./gnushogi.bbk -S 8000 -P 40 3 0
> make[2]: *** [gnushogi.bbk] Error 139
> [...]
> /usr/bin/install: cannot stat `gnushogi.bbk': No such file or directory
> make[1]: *** [install] Error 1
> 
> Full log at 
> http://buildd.debian.org/fetch.cgi?pkg=gnushogi;ver=1.3-7;arch=alpha;stamp=1160581797

I tried to debug this:

(gdb) run
Program received signal SIGSEGV, Segmentation fault.
Initialize_moves () at init.c:561
561                                 if ((nunmap[p0] < (small_short)0)
(gdb) bt
#0  Initialize_moves () at init.c:561
#1  0x000000012002a7bc in InitMain () at init.c:1299
#2  0x000000012003b958 in main (argc=1, argv=0x9) at main.c:394
(gdb) frame 0
#0  Initialize_moves () at init.c:561
561                                 if ((nunmap[p0] < (small_short)0)
(gdb) print p0
$1 = <value optimized out>
(gdb) print nunmap
$2 = 'ÿ' <repeats 23 times>,
"\000\001\002\003\004\005\006\a\bÿÿ\t\n\v\f\r\016\017\020\021ÿÿ\022\023\024\025\026\027\030\031\032ÿÿ\033\034\035\036\037
 !\"#ÿÿ$%&'()*+,ÿÿ-./012345ÿÿ6789:;<=>[EMAIL PROTECTED]", 'ÿ'
<repeats 23 times>

Compile with -O0 instead of -O2, and the problem disappears.

That might be a work-around if you want a quick'n dirty fix.

Cheers,
-- 
Julien Danjou
.''`.  Debian Developer
: :' : http://julien.danjou.info
`. `'  http://people.debian.org/~acid
  `-   9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD

Attachment: signature.asc
Description: Digital signature

Reply via email to