[GRASS5] [bug #3140] (grass) g.parser: SegFault
glynn at gclements.plus.com
Fri Apr 8 23:28:38 EDT 2005
Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=3140
> Subject: g.parser: SegFault
> I get a seg fault from the g.parser module if I have a stray
> in the script before the call to g.parser.
What do you mean by "stray"? Without a "%key:" line?
> Obviously wrong syntax, but maybe it should fail in a more graceful manner...
My guess is that G_parser() dereferences the "key" field without
checking that it is non-NULL.
I suspect there are probably other ways in which you can construct
options which G_parser() won't like. I'm not sure how practical it is
to fix this in g.parser rather than G_parser() itself.
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev