id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
2155,Segmentation fault in OGRGeometry::dumpReadable() Version 1.5,roman,warmerdam,"
Hallo,

I have found a segfault in OGRGeometry::dumpReadable (), when I try to read shape files with the example code from [http://www.gdal.org/ogr/ogr_apitut.html].

The shape files, seems to be valid, since I can use them with other tools (QGIS).

I get the following stack trace


{{{
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208625472 (LWP 30436)]
0x0078b837 in vfprintf () from /lib/libc.so.6
#0  0x0078b837 in vfprintf () from /lib/libc.so.6
#1  0x007946a6 in fprintf () from /lib/libc.so.6
#2  0x0472c8f6 in OGRGeometry::dumpReadable () from /usr/lib/libgdal.so.1
#3  0x080489f9 in main () at test.cpp:49
}}}


{{{
Line 48: poGeometry = poFeature->GetGeometryRef();
Line 49:         if( poGeometry != NULL 
Line 50:             && wkbFlatten(poGeometry->getGeometryType()) == wkbPoint )
}}}


Thanks

Roman
",defect,closed,normal,,OGR_SF,1.5.0,normal,invalid,,
