[postgis-users] shp2pgsql segment fault (trunk -r 8924 ) without .shp file

Min Wang ser.basis at gmail.com
Thu Jan 26 12:52:37 PST 2012


HI
    I  built the trunk version 8924  on 64 bit machine.

    The shp2pgsql seems gave me segment fault when there is no .shp 
file. but if pass -n, then it is ok.

    Here is what I did:

   gdb shp2pgsql

   (gdb) set args s 4269 -g the_geom -W latin1 ./tl_2010_11001_featnames.dbf
(gdb) run
   Starting program: /usr/bin/shp2pgsql s 4269 -g the_geom -W latin1 
./tl_2010_11001_featnames.dbf
Unable to open s.shp or s.SHP.
Unable to open s.shx or s.SHX.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7867974 in fclose () from /lib/libc.so.6
(gdb) bt
#0  0x00007ffff7867974 in fclose () from /lib/libc.so.6
#1  0x0000000000405998 in ?? ()
#2  0x0000000000405ecf in ?? ()
#3  0x000000000040bde1 in ?? ()
#4  0x000000000040c906 in ?? ()
#5  0x00007ffff781ec4d in __libc_start_main () from /lib/libc.so.6
#6  0x0000000000402199 in ?? ()
#7  0x00007fffffffe698 in ?? ()
#8  0x000000000000001c in ?? ()
#9  0x0000000000000008 in ?? ()
#10 0x00007fffffffe8f2 in ?? ()
#11 0x00007fffffffe905 in ?? ()
#12 0x00007fffffffe907 in ?? ()
#13 0x00007fffffffe90c in ?? ()
#14 0x00007fffffffe90f in ?? ()
#15 0x00007fffffffe918 in ?? ()
#16 0x00007fffffffe91b in ?? ()
#17 0x00007fffffffe922 in ?? ()
#18 0x0000000000000000 in ?? ()
(gdb)





    any clue?

thanks.


Min Wang



More information about the postgis-users mailing list