Opened 14 years ago

Last modified 11 years ago

#3351 closed defect

ogrinfo and python bindings segfault on certain shapefile — at Version 1

Reported by: sonicx Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: unspecified
Severity: normal Keywords: segfault, shape
Cc:

Description (last modified by warmerdam)

I have a shapefile which makes ogrinfo segfault, python segfaults with the following errors upon trying use ogr module with it:

*** glibc detected *** python: free(): invalid next size (fast): 0x0000000004bc44b0 ***                     
======= Backtrace: =========                                                                                
/lib/libc.so.6[0x7fa781a90d56]                                                                              
/lib/libc.so.6(cfree+0x6c)[0x7fa781a959bc]                                                                  
/usr/lib/libgdal.so.1(DBFOpenLL+0x5da)[0x7fa774f83faa]                                                      
/usr/lib/libgdal.so.1(DBFOpen+0x2f)[0x7fa774f840bf]                                                         
/usr/lib/libgdal.so.1(_ZN18OGRShapeDataSource8OpenFileEPKcii+0xb5)[0x7fa775014a95]                          
/usr/lib/libgdal.so.1(_ZN18OGRShapeDataSource4OpenEPKciii+0xdd)[0x7fa775014e7d]                             
/usr/lib/libgdal.so.1(_ZN14OGRShapeDriver4OpenEPKci+0x42)[0x7fa7750155d2]                                   
/usr/lib/libgdal.so.1(_ZN20OGRSFDriverRegistrar4OpenEPKciPP11OGRSFDriver+0xbd)[0x7fa77501380d]              
/usr/lib/python2.5/site-packages/GDAL-1.6.3-py2.5-linux-x86_64.egg/osgeo/_ogr.so(_Z4OpenPKci+0x24)[0x7fa7736b74a4]                                                                                              

That strange shape is attached.

Change History (2)

by sonicx, 14 years ago

Attachment: shape.tar.bz2 added

The error-producing shapefile.

comment:1 by warmerdam, 14 years ago

Component: defaultOGR_SF
Description: modified (diff)
Status: newassigned

I have been unable to reproduce a problem with ogr trunk. Tested on windows, and on 32bit linux (built from source) under valgrind.

What version are you using?

Things I tried included:

  valgrind ogrinfo -al hydrotop.shp > /dev/null
Note: See TracTickets for help on using tickets.