[postgis-devel] [PostGIS] #1406: shp2pgsql crashes when loading into geography

PostGIS trac at osgeo.org
Fri Dec 23 22:12:00 PST 2011


#1406: shp2pgsql crashes when loading into geography
---------------------+------------------------------------------------------
 Reporter:  pcreso   |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  1.5.X        
 Keywords:           |  
---------------------+------------------------------------------------------
 I was trying to load a GSHHS global shapefile into postgis geography using
 shp2pgsql. It fails with the message below, but it succeeds when writing
 geometries.

 shp2pgsql -s 4326 -g geom -G -I ./GSHHS_shp/i/GSHHS_i_L1.shp coast1
 *** glibc detected *** shp2pgsql: free(): invalid pointer:
 0x00007fff201f52bd ***
 ======= Backtrace: =========
 /lib64/libc.so.6(+0x74c06)[0x7f377c754c06]
 shp2pgsql[0x4032fc]
 /lib64/libc.so.6(__libc_start_main+0xed)[0x7f377c70123d]
 shp2pgsql[0x4036b9]
 ======= Memory map: ========
 00400000-0043b000 r-xp 00000000 08:05 15873871
 /usr/bin/shp2pgsql
 0063a000-0063b000 r--p 0003a000 08:05 15873871
 /usr/bin/shp2pgsql
 0063b000-0063c000 rw-p 0003b000 08:05 15873871
 /usr/bin/shp2pgsql
 0063c000-0065d000 rw-p 00000000 00:00 0
 [heap]
 7f377c273000-7f377c288000 r-xp 00000000 08:05 26738973
 /lib64/libgcc_s.so.1
 7f377c288000-7f377c487000 ---p 00015000 08:05 26738973
 /lib64/libgcc_s.so.1
 7f377c487000-7f377c488000 r--p 00014000 08:05 26738973
 /lib64/libgcc_s.so.1
 7f377c488000-7f377c489000 rw-p 00015000 08:05 26738973
 /lib64/libgcc_s.so.1
 7f377c489000-7f377c4df000 r-xp 00000000 08:05 26738823
 /lib64/libm-2.14.1.so
 7f377c4df000-7f377c6de000 ---p 00056000 08:05 26738823
 /lib64/libm-2.14.1.so
 7f377c6de000-7f377c6df000 r--p 00055000 08:05 26738823
 /lib64/libm-2.14.1.so
 7f377c6df000-7f377c6e0000 rw-p 00056000 08:05 26738823
 /lib64/libm-2.14.1.so
 7f377c6e0000-7f377c865000 r-xp 00000000 08:05 26738975
 /lib64/libc-2.14.1.so
 7f377c865000-7f377ca65000 ---p 00185000 08:05 26738975
 /lib64/libc-2.14.1.so
 7f377ca65000-7f377ca69000 r--p 00185000 08:05 26738975
 /lib64/libc-2.14.1.so
 7f377ca69000-7f377ca6a000 rw-p 00189000 08:05 26738975
 /lib64/libc-2.14.1.so
 7f377ca6a000-7f377ca6f000 rw-p 00000000 00:00 0
 7f377ca6f000-7f377ca8f000 r-xp 00000000 08:05 26738846
 /lib64/ld-2.14.1.so
 7f377cc69000-7f377cc6c000 rw-p 00000000 00:00 0
 7f377cc8d000-7f377cc8f000 rw-p 00000000 00:00 0
 7f377cc8f000-7f377cc90000 r--p 00020000 08:05 26738846
 /lib64/ld-2.14.1.so
 7f377cc90000-7f377cc91000 rw-p 00021000 08:05 26738846
 /lib64/ld-2.14.1.so
 7f377cc91000-7f377cc92000 rw-p 00000000 00:00 0
 7fff201d5000-7fff201f6000 rw-p 00000000 00:00 0
 [stack]
 7fff201ff000-7fff20200000 r-xp 00000000 00:00 0
 [vdso]
 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
 [vsyscall]
 Aborted



 Versions used (installed from the standard OpenSUSE 12.1 AMD64 & factory
 repositories (incl GEO):

 psql pablo
 psql (9.1.1)
 Type "help" for help.

 pablo=# select version();
                                         version
 ---------------------------------------------------------------------------------------
  PostgreSQL 9.1.1 on x86_64-suse-linux-gnu, compiled by gcc (SUSE Linux)
 4.6.2, 64-bit
 (1 row)

 pablo=# select postgis_full_version();
                                          postgis_full_version
 -------------------------------------------------------------------------------------------------------
  POSTGIS="1.5.3" GEOS="3.3.0-CAPI-1.7.0" PROJ="Rel. 4.7.1, 23 September
 2009" LIBXML="2.7.8" USE_STATS
 (1 row)

 pablo=#

 RCSID: $Id: shp2pgsql-core.h 5983 2010-09-19 11:27:05Z mcayland $ RELEASE:
 1.5 USE_GEOS=1 USE_PROJ=1 USE_STATS=1

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1406>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list