[GRASS-dev] r.gwflow

Soeren Gebbert soerengebbert at googlemail.com
Sat Mar 20 15:34:47 EDT 2010


2010/3/20 Glynn Clements <glynn at gclements.plus.com>:
>
> Soeren Gebbert wrote:
>
>> Problem solved in Revision 41496.
>
> So ...
>
>> > param.type = G_define_option();
>> > param.type->key = "type";
>> > param.type->type = TYPE_STRING;
>> > param.type->required = NO;
>> > param.type->answer = "confined"; <----- this parameter is the reason for the segfault
>
> ... is this statement incorrect?

First i thought my code is wrong, but now i think this is correct. The
reason for the segfault was in parser.c. I reproduced it with other
modules setting a default answer.

>
> Because this appears to have nothing to do with  r41496.

The segfault in parser.c only appeared in case a module set a default
answer. So IMHO this is related to the problem which was reported by
Massimo. Now r.gwflow works as expected.

Soeren

>
> --
> Glynn Clements <glynn at gclements.plus.com>
>


More information about the grass-dev mailing list