[postgis-devel] Re: [PostGIS] #167: shp2pgsql double frees on medford buildings.shp

PostGIS trac at osgeo.org
Tue Jun 9 04:06:06 PDT 2009


#167: shp2pgsql double frees on medford buildings.shp
----------------------+-----------------------------------------------------
  Reporter:  pramsey  |       Owner:  pramsey      
      Type:  defect   |      Status:  new          
  Priority:  high     |   Milestone:  postgis 1.4.0
 Component:  postgis  |     Version:  1.4          
Resolution:           |    Keywords:               
----------------------+-----------------------------------------------------
Comment (by robe):

 I get an error too Mark and just svn
 uped/autogen/configure/compile/install

 I'm testing on 8.2 on OpenSUSE 10.3
 If I do this:
 postgis-1.4SVN/loader/shp2pgsql buildings_oops public.buildings | psql -h
 localhost -d testpostgis -U postgres

 I get this error

                       addgeometrycolumn
 -------------------------------------------------------------
  public.buildings.the_geom SRID:-1 TYPE:MULTIPOLYGON DIMS:4
 (1 row)

 ERROR:  syntax error at end of input
 LINE 1: ...S-BUILDING','1384.22300000','0.00000000000','0.00000000000',

 If I do this
 postgis-1.4SVN/loader/shp2pgsql buildings_oops public.buildings >
 buildings.sql

 I get
 Shapefile type: PolygonZ
 Postgis type: MULTIPOLYGON[4]
 *** glibc detected *** postgis-1.4SVN/loader/shp2pgsql: double free or
 corruption (fasttop): 0x08079f40 ***
 ======= Backtrace: =========
 /lib/libc.so.6[0xb7eb94b6]
 /lib/libc.so.6(cfree+0x89)[0xb7ebb179]
 postgis-1.4SVN/loader/shp2pgsql(default_freeor+0x1d)[0x805e2fd]
 postgis-1.4SVN/loader/shp2pgsql(lwfree+0x20)[0x805e100]
 postgis-1.4SVN/loader/shp2pgsql[0x805e9f0]
 postgis-1.4SVN/loader/shp2pgsql(output_wkb_polygon_collection+0x27)[0x805ea97]
 postgis-1.4SVN/loader/shp2pgsql[0x805eb7c]
 postgis-1.4SVN/loader/shp2pgsql(output_wkb+0x145)[0x805ecd5]
 postgis-1.4SVN/loader/shp2pgsql[0x805eb7c]
 postgis-1.4SVN/loader/shp2pgsql(output_wkb+0x145)[0x805ecd5]
 postgis-1.4SVN/loader/shp2pgsql[0x805ef41]
 postgis-1.4SVN/loader/shp2pgsql[0x805771f]
 postgis-1.4SVN/loader/shp2pgsql[0x80529e5]
 postgis-1.4SVN/loader/shp2pgsql[0x8053135]
 postgis-1.4SVN/loader/shp2pgsql[0x8053239]
 /lib/libc.so.6(__libc_start_main+0xe0)[0xb7e68fe0]
 postgis-1.4SVN/loader/shp2pgsql[0x804a371]
 ======= Memory map: ========
 08048000-08077000 r-xp 00000000 08:01 1591187
 /projects/postgis-1.4SVN/loader/shp2pgsql
 08077000-08078000 r--p 0002f000 08:01 1591187
 /projects/postgis-1.4SVN/loader/shp2pgsql
 08078000-08079000 rw-p 00030000 08:01 1591187
 /projects/postgis-1.4SVN/loader/shp2pgsql
 08079000-0809a000 rw-p 08079000 00:00 0          [heap]
 b7d00000-b7d21000 rw-p b7d00000 00:00 0
 b7d21000-b7e00000 ---p b7d21000 00:00 0
 b7e2d000-b7e2e000 rw-p b7e2d000 00:00 0
 b7e2e000-b7e51000 r-xp 00000000 08:01 1556613    /lib/libm-2.6.1.so
 b7e51000-b7e53000 rw-p 00022000 08:01 1556613    /lib/libm-2.6.1.so
 b7e53000-b7f80000 r-xp 00000000 08:01 1557842    /lib/libc-2.6.1.so
 b7f80000-b7f81000 r--p 0012c000 08:01 1557842    /lib/libc-2.6.1.so
 b7f81000-b7f83000 rw-p 0012d000 08:01 1557842    /lib/libc-2.6.1.so
 b7f83000-b7f87000 rw-p b7f83000 00:00 0
 b7f87000-b7f91000 r-xp 00000000 08:01 1556721    /lib/libgcc_s.so.1
 b7f91000-b7f93000 rw-p 00009000 08:01 1556721    /lib/libgcc_s.so.1
 b7f93000-b7f97000 rw-p b7f93000 00:00 0
 b7f97000-b7fb1000 r-xp 00000000 08:01 1556546    /lib/ld-2.6.1.so
 b7fb1000-b7fb3000 rw-p 0001a000 08:01 1556546    /lib/ld-2.6.1.so
 bf86e000-bf884000 rw-p bf86e000 00:00 0          [stack]
 ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
 Aborted

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/167#comment:8>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS


More information about the postgis-devel mailing list