[postgis-users] shp2pgsql problem

Steffen Macke sdteffen at web.de
Mon Aug 12 12:53:57 PDT 2002


Horst Duester has a problem with shp2pgsql (CVS version):

A file that loads fine when loaded from the same directory
crashes shp2pgsql when used with a long absolute path.
I was not able to reproduce this behaviour.

Any ideas? Below is the backtrace from gdb.

Steffen


Program received signal SIGSEGV, Segmentation fault.
chunk_free (ar_ptr=0x464c457f, p=0x40025ff8) at malloc.c:3049
3049    malloc.c: Datei oder Verzeichnis nicht gefunden.

The backtrace:
#0  chunk_free (ar_ptr=0x464c457f, p=0x40025ff8) at malloc.c:3049
#1  0x4012afba in __libc_free (mem=0x40026000) at malloc.c:3023
#2  0x40127ba3 in __underflow (fp=0x8050ed0) at genops.c:167
#3  0x401272ba in _IO_file_xsgetn (fp=0x8050ed0, data=0x8051da8, n=28) at
fileops.c:875
#4  0x401281f6 in _IO_sgetn (fp=0x8050ed0, data=0x8051da8, n=28) at
genops.c:431
#5  0x40123b94 in _IO_fread (buf=0x8051da8, size=28, count=1, fp=0x8050ed0)
at iofread.c:42
#6  0x804a806 in SHPReadObject (psSHP=0x8050db0, hEntity=142) at
shpopen.c:1289
#7  0x804dff0 in main (ARGC=6, ARGV=0xbffff9f4) at shp2pgsql.c:744





More information about the postgis-users mailing list