[postgis-users] shp2pgsql crashes
Frank Warmerdam
warmerdam at pobox.com
Tue Jul 16 07:43:53 PDT 2002
Alex Rice wrote:
>
> On Tuesday, July 16, 2002, at 07:19 AM, Frank Warmerdam wrote:
>
>> Alex,
>>
>> I am the maintainer of Shapelib (dbfopen.c, shpopen.c, shapefil.h)
>> though not
>> of shp2pgsql. Could you give me any more information on why you think
>> dbfopen
>> has a problem with long filenames? I am looking at the current dbfopen.c
>> source and I can see no limitations about long filenames.
>>
>> If there is a problem in my code, I would be happy to try and fix it.
>
>
> Hi Frank. I looked at dbfopen.c and could not see any particular problem
> either. I'm trying to deduce what's causing the crashes with shp2pgsql.
> Here is what i know. I'm going to cc: the list in case anyone else can
> see it.
>
> - shp2pgsql was crashing on a certain set of shapefiles, on Mac OS X (I
> mentioned these on the list)
> - all of those crashing filenames were > 8.3.
> - some other > 8.3 filenames imported fine, however.
> - renaming the problematic files to 8.3 or shorter removed the crashing
> condition.
> - the stack trace points to DBFReadAttribute() dbfopen.c
>
> Here are a couple of examples:
Alex,
Could you send me a sample set that demonstrates the problem? I can't see
any reasont he filenames *should* make a difference, so it may be some other
sort of memory corruption, and changing the filename length moves stuff around
enough to prevent the crash.
Later,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the postgis-users
mailing list