|
From: | Teun Burgers |
Subject: | Re: [gnugo-devel] Crash report for OS X Segmentation fault |
Date: | Tue, 08 Jan 2002 18:50:00 +0100 |
Marco Scheurer wrote: > I just made a quick test and tracked it down to this declaration (in > compute_surrounding_moyo_sizes): > > int moyo_is_adjacent[MAX_BOARD * MAX_BOARD][MAX_MOYOS + 1]; > > Smaller values of MAX_MOYOS are OK. Weird. Interesting. I think then this is a problem with stack overflow. We have seen something similar earlier on with the owl stack, which was much larger though. I bet declaring this array as static or allocating it with malloc should also fix this problem. Teun
[Prev in Thread] | Current Thread | [Next in Thread] |