[GRASS5] Re: NVIZ + CELL map + gcc >=3.2.2 = SegFault

Hamish hamish_nospam at yahoo.com
Tue Sep 16 22:34:18 EDT 2003


> > It apparently breaks while somewhere in this statement in
> >  src/libes/gis/nme_in_mps.c:
> > 
> > if(strchr(name, '@'))
> >         sprintf (fullname, "%s", name);
> >     else
> >         sprintf (fullname, "%s@%s", name, mapset);
>
> If strchr() segfaults, it means that name is bogus (either the pointer
> itself is invalid or the data to which it points doesn't have a
> terminating NUL).

Upon closer look, it appears to get the segfault when I access 'mapset',
which explains why it would crash on the second+ pass through that
function.

I'll have to work backwards from there.


Hamish




More information about the grass-dev mailing list