Package: postgis
Version: 1.5.1-5
Severity: important

On running shp2pgsql on a particular data set, a segfault occurs.

$ ls
nsw.dbf  nsw.shp  nsw.shx

$ shp2pgsql nsw
Shapefile type: Polygon
Postgis type: MULTIPOLYGON[2]
SET CLIENT_ENCODING TO UTF8;
SET STANDARD_CONFORMING_STRINGS TO ON;
BEGIN;
CREATE TABLE "nsw" (gid serial PRIMARY KEY,
"mb_code11" varchar(11),
"mb_cat11" varchar(50),
"sa1_main11" varchar(11),
"sa1_7dig11" varchar(7),
"sa2_main11" varchar(9),
"sa2_5dig11" varchar(5),
"sa2_name11" varchar(50),
"sa3_code11" varchar(5),
"sa3_name11" varchar(50),
"sa4_code11" varchar(3),
"sa4_name11" varchar(50),
"gcc_code11" varchar(5),
"gcc_name11" varchar(50),
"ste_code11" varchar(1),
"ste_name11" varchar(50),
"albers_sqm" numeric);
SELECT AddGeometryColumn('','nsw','the_geom','-1','MULTIPOLYGON',2);
INSERT INTO "nsw"
("mb_code11","mb_cat11","sa1_main11","sa1_7dig11","sa2_main11","sa2_5dig11","sa2_name11","sa3_code11","sa3_name11","sa4_code11","sa4_name11","gcc_code11","gcc_name11","ste_code11","ste_name11","albers_sqm",the_geom)
VALUES
('10000009499','NOUSUALRESIDENCE','19999949999','1949999','199999499','19499','No
usual address (NSW)','19999','Special Purpose Codes SA3
(NSW)','199','Special Purpose Codes SA4 (NSW)','19499','No usual address
(NSW)','1','New South Wales','0',NULLp        �t      ');
Segmentation fault

-- System Information:
Debian Release: 6.0.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.39.1-linode34 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages postgis depends on:
ii  libc6                   2.11.3-4         Embedded GNU C Library: Shared lib
ii  libpq5                  8.4.13-0squeeze1 PostgreSQL C client library

postgis recommends no packages.

Versions of packages postgis suggests:
pn  postgresql-8.4-postgis        <none>     (no description available)

-- no debconf information

Attachment: nsw.dbf
Description: Binary data

Attachment: nsw.shp
Description: Binary data

Attachment: nsw.shx
Description: application/empty

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to