Bug#695976: postgis: shp2pgsql segfault

2012-12-15 Thread Thomas Chung
 Yep. Used,

 those files with md5sums of

 60c1d5f7a6a36728b88db947359757ba  nsw.dbf
 4b7c97864fdf18acd2bbe0af0d897f7c  nsw.shp
 d41d8cd98f00b204e9800998ecf8427e  nsw.shx

 and running

 shp2pgsql nsw

 gives attached results.

 Using postgis package 1.5.3-2 (unstable)

Ok, the data files are the same but the postgis version is different.
I'm using package version 1.5.1-5 from stable.

I extracted the shp2pgsql binary from the unstable package and tried
running that, and it produced the output you attached. So I guess the
problem was fixed between stable and unstable.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#695976: postgis: shp2pgsql segfault

2012-12-14 Thread Thomas Chung
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
('1009499','NOUSUALRESIDENCE','194','194','19499','19499','No
usual address (NSW)','1','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-postgisnone (no description available)

-- no debconf information


nsw.dbf
Description: Binary data


nsw.shp
Description: Binary data


nsw.shx
Description: application/empty


Bug#695976: postgis: shp2pgsql segfault

2012-12-14 Thread Thomas Chung
On Sat, Dec 15, 2012 at 4:37 PM, Andrew Harvey andrew.harv...@gmail.com wrote:

 Your attached shx file is empty as such,


That empty shx file is part of the setup. It does not segfault if the
file does not exist. Could you confirm that you tried it with all
three files as attached?

I was trying to create a minimal example, and found that an empty shx
file still reproduced the problem.

Thomas


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org