[postgis-users] shp2pgsql segfault and gdb

strk at refractions.net strk at refractions.net
Mon Aug 29 04:18:12 PDT 2005


What architecture are you running the loader from ?
What RCSID does shp2pgsql report when run w/out arguments ?
Can it be you end out of memory ?

--strk;

On Mon, Aug 29, 2005 at 11:13:55AM +0200, Jorg Heymans wrote:
> Hi,
> 
> shp2pgsql segfaults on several of our shapefiles.
> 
> Here is a backtrace from gdb :
> 
> MULTILINESTRING 1739 as 1 vertices, set to NULL
> MULTILINESTRING 1784 as 1 vertices, set to NULL
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x4008f6e5 in mallopt () from /lib/libc.so.6
> (gdb) backtrace
> #0  0x4008f6e5 in mallopt () from /lib/libc.so.6
> #1  0x4008f0b3 in calloc () from /lib/libc.so.6
> #2  0x0804b5d5 in SHPReadObject (psSHP=0x8054050, hEntity=1786) at
> shpopen.c:1376
> #3  0x0804ecaf in LoadData () at shp2pgsql.c:631
> #4  0x0804e781 in main (ARGC=7, ARGV=0x2) at shp2pgsql.c:408
> 
> 
> I remember someone posting a tutorial here on how to use gdb to pinpoint
> exactly where a program segfaults but i couldn't find it anymore.
> 
> It would help if i could get the exact record number from gdb where it
> fails, is this possible?
> 
> Regards
> Jorg
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list