[postgis-users] shp2pgsql 1.5 is crashing

Stephen Woodbridge woodbri at swoodbridge.com
Tue Oct 12 21:39:58 PDT 2010


Hi all,

I'm running into a crashing problem with shp2pgsql on 1.5 release on a 
CentOS 5

This crashes:
shp2pgsql -s 4326 -c -D  Hydrants_4326.shp data.hydrants

This works ok:
shp2pgsql -s 4326 -c -D -N skip Hydrants_4326.shp data.hydrants

File loads ok in OpenEV and runs through ogr2ogr without a problem.

-Steve W

Linux mapserver 2.6.18-194.11.1.el5xen #1 SMP Tue Aug 10 20:27:58 EDT 
2010 i686 i686 i386 GNU/Linux

[woodbri at mapserver hydrants]$ shp2pgsql
RCSID: $Id: shp2pgsql-core.h 5098 2010-01-04 05:47:04Z pramsey $ 
RELEASE: 1.5 USE_GEOS=1 USE_PROJ=1 USE_STATS=1

[woodbri at mapserver hydrants]$ shp2pgsql -s 4326 -c -D  Hydrants_4326.shp 
data.hydrants > a
Shapefile type: PointZ
Postgis type: POINT[4]
*** glibc detected *** shp2pgsql: free(): invalid pointer: 0x08051c3b ***
======= Backtrace: =========
/lib/i686/nosegneg/libc.so.6[0x8ce1e5]
/lib/i686/nosegneg/libc.so.6(cfree+0x59)[0x8ce629]
shp2pgsql[0x805223b]
shp2pgsql[0x8052f4f]
/lib/i686/nosegneg/libc.so.6(__libc_start_main+0xdc)[0x879e9c]
shp2pgsql[0x80499f1]
======= Memory map: ========
00110000-00112000 r-xp 00000000 fd:00 111345672  /usr/lib/gconv/CP1252.so
00112000-00114000 rw-p 00001000 fd:00 111345672  /usr/lib/gconv/CP1252.so
007a9000-007b4000 r-xp 00000000 fd:00 14188620 
/lib/libgcc_s-4.1.2-20080825.so.1
007b4000-007b5000 rw-p 0000a000 fd:00 14188620 
/lib/libgcc_s-4.1.2-20080825.so.1
00845000-00860000 r-xp 00000000 fd:00 14188551   /lib/ld-2.5.so
00860000-00861000 r--p 0001a000 fd:00 14188551   /lib/ld-2.5.so
00861000-00862000 rw-p 0001b000 fd:00 14188551   /lib/ld-2.5.so
00864000-009ba000 r-xp 00000000 fd:00 14188553 
/lib/i686/nosegneg/libc-2.5.so
009ba000-009bc000 r--p 00155000 fd:00 14188553 
/lib/i686/nosegneg/libc-2.5.so
009bc000-009bd000 rw-p 00157000 fd:00 14188553 
/lib/i686/nosegneg/libc-2.5.so
009bd000-009c0000 rw-p 009bd000 00:00 0
009c9000-009f0000 r-xp 00000000 fd:00 14189781 
/lib/i686/nosegneg/libm-2.5.so
009f0000-009f1000 r--p 00026000 fd:00 14189781 
/lib/i686/nosegneg/libm-2.5.so
009f1000-009f2000 rw-p 00027000 fd:00 14189781 
/lib/i686/nosegneg/libm-2.5.so
00caa000-00cab000 r-xp 00caa000 00:00 0          [vdso]
08048000-08079000 r-xp 00000000 fd:00 82688766   /usr/bin/shp2pgsql
08079000-0807a000 rw-p 00031000 fd:00 82688766   /usr/bin/shp2pgsql
08b8c000-08bad000 rw-p 08b8c000 00:00 0
b7f73000-b7fbe000 rw-p b7f73000 00:00 0
b7fc1000-b7fc2000 rw-p b7fc1000 00:00 0
b7fc2000-b7fc9000 r--s 00000000 fd:00 82739843 
/usr/lib/gconv/gconv-modules.cache
b7fc9000-b7fcd000 rw-p b7fc9000 00:00 0
bfa09000-bfa1e000 rw-p bffea000 00:00 0          [stack]
Aborted



More information about the postgis-users mailing list