5.7 d.what.vect form problems [was: Re: [GRASS5] d.legend and
d.out.png]
Moritz Lennert
mlennert at club.worldonline.be
Fri Oct 22 04:24:52 EDT 2004
Glynn,
On Wed, September 22, 2004 23:00, Glynn Clements said:
>
> Moritz Lennert wrote:
>
>> >
>> > If the form window never appears, that suggests that it dies shortly
>> > after startup, which is going to make it hard to debug. The only thing
>> > which I can suggest is to add a sleep() call to the top of main() in
>> > lib/form/form.c, so that you get a chance to attach a debugger to it.
>>
>> Ok, I tried using sleep, but now I can't reproduce the error, except
>> when
>> using sleep(0). sleep(1) and upward all make the error disappear. This
>> does not solve my problem on how to debug ;-), but might it be an
>> explanation by itself ?
>
> Another option is to re-compile lib/gis with GDEBUG defined, then set
> the DEBUG and GRASS_DEBUG_FILE environment variables (see
> lib/gis/debug.c).
>
> One thing which stands out is that lib/form/form.c reads from stdin
> using both read() and the ANSI stdio functions, which may well result
> in timing-dependent bugs. Also, I'm unsure whether Tcl may use the
> descriptor itself.
I've finally gotten around to recompiling grass and setting the debug
variable to 3.
I've attached the output. Hope this helps to debug the problem.
Moritz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d_what_vect_error.log.gz
Type: application/gzip
Size: 7068 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20041022/9c85648e/d_what_vect_error.log.bin
More information about the grass-dev
mailing list