[GRASS5] d.legend and d.out.png
Moritz Lennert
mlennert at club.worldonline.be
Thu Aug 26 17:29:34 EDT 2004
>
> Moritz Lennert wrote:
>
>> > I'v seen this too, but can't trigger it now. Any chance of running the
>> > command line version through a debugger?
>> >
>> > CFLAGS="-ggdb -Wall" ./configure \
>> > ...
>> > make
>> >
>> >
>> > GRASS:~> gdb $GISBASE/etc/bin/cmd/d.what.vect
>>
>> I haven't had the time to recompile with -ggdb, but my version was
>> compiled with -g. So I ran d.what.vect through gdb and behold: it works
>> like a charm !
>> To make it clear:
>>
>> I run d.what.vect once: no problem, I quit.
>> I run it again: no reaction on first click, command terminates on the
>> second click.
>> I run gdb $GISBASE/etc/bin/cmd/d.what.vect, then "run" and it works
>> perfectly, even rerunning it several times.
>
> So the problem goes away if you run it under gdb. So much for
> debugging.
>
> If you have strace, ltrace or equivalent, you could try using those.
>
I've attached the strace output.
At the end I get:
[...]
write(6, "\0\0\0\0", 4) = 4
read(7, "\332\1\0\0", 4) = 4
read(7, "\27\1\0\0", 4) = 4
read(7, "\0\0\0\0", 4) = 4
write(6, "\0\0\0\0", 4) = 4
read(7, "\332\1\0\0", 4) = 4
read(7, "\27\1\0\0", 4) = 4
read(7, "\1\0\0\0", 4) = 4
write(6, "\177-", 2) = 2
read(7, "\177", 1) = 1
write(9, "C", 1) = -1 EPIPE (Broken pipe)
--- SIGPIPE (Broken pipe) @ 0 (0) ---
+++ killed by SIGPIPE +++
Moritz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d.what.vect.strace.crash.gz
Type: application/gzip
Size: 11406 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20040826/ffb9eab7/d.what.vect.strace.crash.bin
More information about the grass-dev
mailing list