[GRASSLIST:2341] Re: r.in.gdal segfault
Paul Kelly
paul-grass at stjohnspoint.co.uk
Fri Jan 23 07:20:14 EST 2004
Hello Andrey
On Fri, 23 Jan 2004, Andrey Kiselev wrote:
> On Fri, Jan 23, 2004 at 10:34:26AM +0100, Markus Neteler wrote:
> > It crashes in wkt_to_grass() in main.c of r.in.gdal (crash
> > in line 1054: free( pszUnitsName ); ). Actually I don't know
> > why, maybe it does not fetch the projection info properly.
>
> pszUnitsName should not be freed. Remove that line to fix the problem.
Well done and thank you for finding that long-standing bug. I'm almost
sure it's the one I've been trying to find for several months (re-using
some of the wkt_to_grass code in new functions for 5.7). There
should be a lot more progress on these now.
I have fixed it in CVS.
Thank you!
Paul
More information about the grass-user
mailing list