Opened 10 years ago

Closed 10 years ago

#3350 closed defect (duplicate)

ogrinfo and python bindings segfault on certain shapefile

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

Description

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]                                                                                                      
/usr/lib/python2.5/site-packages/GDAL-1.6.3-py2.5-linux-x86_64.egg/osgeo/_ogr.so[0x7fa7736b846e]            
python(PyObject_Call+0x13)[0x4186a3]                                                                        
python(PyEval_EvalFrameEx+0x36ef)[0x48db4f]                                                                 
python(PyEval_EvalCodeEx+0x69c)[0x4904ac]                                                                   
python(PyEval_EvalFrameEx+0x4ae8)[0x48ef48]                                                                 
python(PyEval_EvalFrameEx+0x5873)[0x48fcd3]                                                                 
======= Memory map: ========                                                                                
00400000-00521000 r-xp 00000000 08:05 72867                              /usr/bin/python2.5                 
00720000-00752000 rw-p 00120000 08:05 72867                              /usr/bin/python2.5                 
00752000-0075a000 rw-p 00752000 00:00 0                                                                     
00db9000-069f4000 rw-p 00db9000 00:00 0                                  [heap]                             
7fa768000000-7fa76acd7000 rw-p 7fa768000000 00:00 0                                                         
7fa76acd7000-7fa76c000000 ---p 7fa76acd7000 00:00 0                                                         
7fa76c997000-7fa76c998000 ---p 7fa76c997000 00:00 0                                                         
7fa76c998000-7fa76d198000 rw-p 7fa76c998000 00:00 0                                                         
7fa76d198000-7fa76d19a000 r-xp 00000000 08:05 233533                     /usr/lib/python2.5/lib-dynload/_bisect.so                                                                                                      
7fa76d19a000-7fa76d399000 ---p 00002000 08:05 233533                     /usr/lib/python2.5/lib-dynload/_bisect.so                                                                                                      
7fa76d399000-7fa76d39a000 rw-p 00001000 08:05 233533                     /usr/lib/python2.5/lib-dynload/_bisect.so                                                                                                      
7fa76d39a000-7fa76d39d000 r-xp 00000000 08:05 233802                     /usr/lib/python2.5/lib-dynload/_random.so                                                                                                      
7fa76d39d000-7fa76d59c000 ---p 00003000 08:05 233802                     /usr/lib/python2.5/lib-dynload/_random.so                                                                                                      
7fa76d59c000-7fa76d59d000 rw-p 00002000 08:05 233802                     /usr/lib/python2.5/lib-dynload/_random.so                                                                                                      
7fa76d59d000-7fa76d59e000 ---p 7fa76d59d000 00:00 0                                                         
7fa76d59e000-7fa76dd9e000 rw-p 7fa76d59e000 00:00 0                                                         
7fa76dd9e000-7fa76dd9f000 ---p 7fa76dd9e000 00:00 0                                                         
7fa76dd9f000-7fa76e59f000 rw-p 7fa76dd9f000 00:00 0                                                         
7fa76e59f000-7fa76e5a0000 ---p 7fa76e59f000 00:00 0                                                         
7fa76e5a0000-7fa76eda0000 rw-p 7fa76e5a0000 00:00 0                                                         
7fa76f5a1000-7fa76f5a2000 ---p 7fa76f5a1000 00:00 0                                                         
7fa76f5a2000-7fa76fda2000 rw-p 7fa76f5a2000 00:00 0                                                         
7fa76fda2000-7fa76fda3000 ---p 7fa76fda2000 00:00 0                                                         
7fa76fda3000-7fa7705a3000 rw-p 7fa76fda3000 00:00 0                                                         
7fa7705a3000-7fa7705a4000 ---p 7fa7705a3000 00:00 0                                                         
7fa7705a4000-7fa770da4000 rw-p 7fa7705a4000 00:00 0                                                         
7fa770da4000-7fa770da9000 r-xp 00000000 08:01 6037                       /lib/libnss_dns-2.10.2.so          
7fa770da9000-7fa770fa8000 ---p 00005000 08:01 6037                       /lib/libnss_dns-2.10.2.so          
7fa770fa8000-7fa770fa9000 r--p 00004000 08:01 6037                       /lib/libnss_dns-2.10.2.so          
7fa770fa9000-7fa770faa000 rw-p 00005000 08:01 6037                       /lib/libnss_dns-2.10.2.so          
7fa770faa000-7fa770fb5000 r-xp 00000000 08:01 6057                       /lib/libnss_files-2.10.2.so        
7fa770fb5000-7fa7711b4000 ---p 0000b000 08:01 6057                       /lib/libnss_files-2.10.2.so        
7fa7711b4000-7fa7711b5000 r--p 0000a000 08:01 6057                       /lib/libnss_files-2.10.2.so        
7fa7711b5000-7fa7711b6000 rw-p 0000b000 08:01 6057                       /lib/libnss_files-2.10.2.so        
7fa7711b6000-7fa7711c0000 r-xp 00000000 08:01 6040                       /lib/libnss_nis-2.10.2.so          
7fa7711c0000-7fa7713bf000 ---p 0000a000 08:01 6040                       /lib/libnss_nis-2.10.2.so          
7fa7713bf000-7fa7713c0000 r--p 00009000 08:01 6040                       /lib/libnss_nis-2.10.2.so          
7fa7713c0000-7fa7713c1000 rw-p 0000a000 08:01 6040                       /lib/libnss_nis-2.10.2.so          
7fa7713c1000-7fa7713c8000 r-xp 00000000 08:01 6038                       /lib/libnss_compat-2.10.2.so       
7fa7713c8000-7fa7715c7000 ---p 00007000 08:01 6038                       /lib/libnss_compat-2.10.2.so       
7fa7715c7000-7fa7715c8000 r--p 00006000 08:01 6038                       /lib/libnss_compat-2.10.2.so       
7fa7715c8000-7fa7715c9000 rw-p 00007000 08:01 6038                       /lib/libnss_compat-2.10.2.so       
7fa7715c9000-7fa7715df000 r-xp 00000000 08:05 227226                     /usr/lib/libICE.so.6.3.0           
7fa7715df000-7fa7717df000 ---p 00016000 08:05 227226                     /usr/lib/libICE.so.6.3.0           
7fa7717df000-7fa7717e0000 rw-p 00016000 08:05 227226                     /usr/lib/libICE.so.6.3.0           
7fa7717e0000-7fa7717e4000 rw-p 7fa7717e0000 00:00 0                                                         
7fa7717e4000-7fa7717ec000 r-xp 00000000 08:05 227228                     /usr/lib/libSM.so.6.0.0            
7fa7717ec000-7fa7719eb000 ---p 00008000 08:05 227228                     /usr/lib/libSM.so.6.0.0            
7fa7719eb000-7fa7719ec000 rw-p 00007000 08:05 227228                     /usr/lib/libSM.so.6.0.0            
7fa7719ec000-7fa7719fb000 r-xp 00000000 08:01 50202                      /lib/libbz2.so.1.0.4               
7fa7719fb000-7fa771bfa000 ---p 0000f000 08:01 50202                      /lib/libbz2.so.1.0.4               
7fa771bfa000-7fa771bfc000 rw-p 0000e000 08:01 50202                      /lib/libbz2.so.1.0.4               
7fa771bfc000-7fa771c57000 r-xp 00000000 08:05 227230                     /usr/lib/libXt.so.6.0.0            
7fa771c57000-7fa771e56000 ---p 0005b000 08:05 227230                     /usr/lib/libXt.so.6.0.0            
7fa77Aborted                                         

That strange shape is attached.

Change History (1)

comment:1 Changed 10 years ago by sonicx

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.