shp2pgsql core dumps when using -G and -g together

Rainer Hurling rhurlin at
Thu Jun 2 06:47:29 UTC 2011

I am trying to use the converter 'shp2pgsql' from database/postgis 
version 1.5.2 to convert an ESRI shapefile into the geography data type 
of postgis/postgresql.

It core dumps when using the two options '-G' and '-g' at the same time, 
at least on FreeBSD. Option '-G' switches from geometry to geography 
data type. With option '-g' I want to set another than the default name 
of the geography column.

shp2pgsql -G -g geog_newname world.shp
shp2pgsql: (malloc) /usr/src/lib/libc/stdlib/malloc.c:4287: Failed 
assertion: "arena != NULL"
Abbruch(core dumped)

This is reproducable with other shapefiles, too. It does not happen, if 
'-G' is used without the '-g' option.

It seems there is a problem with memory allocation? As far as I know 
this works on other platforms than FreeBSD.

As test data may serve the world shape from

Any help is really appreciated. And please let me know if I can help or 
test something.

Rainer Hurling

More information about the freebsd-ports mailing list