ogrinfo assert failure: *** buffer overflow detected ***: ogrinfo terminated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdal (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Source of shape file is:
http://
I will continue to investigate with OSGeo folks if they have any ideas.
ProblemType: Crash
Architecture: i386
AssertionMessage: *** buffer overflow detected ***: ogrinfo terminated
CheckboxSubmission: 02cc59152aab0e0
CheckboxSystem: e9607098f9cbddf
CrashCounter: 1
Date: Fri Oct 23 11:35:11 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/ogrinfo
NonfreeKernelMo
Package: gdal-bin 1.5.4-4
ProcCmdline: ogrinfo -al fed308_a.shp
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_CA.UTF-8
ProcVersionSign
Signal: 6
SourcePackage: gdal
StacktraceTop:
__kernel_vsyscall ()
raise () from /lib/tls/
abort () from /lib/tls/
?? () from /lib/tls/
__fortify_fail () from /lib/tls/
Title: ogrinfo assert failure: *** buffer overflow detected ***: ogrinfo terminated
Uname: Linux 2.6.31-14-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
XsessionErrors:
(gnome-
(gnome-
(nautilus:16291): Eel-CRITICAL **: eel_preferences
(polkit-
At http:// geogratis. cgdi.gc. ca/geogratis/ en/option/ select. do?id=1169 there are shapefiles which represent the electoral districts of Canada, for election years 2000, 2004, 2006 and 2008.
In 2000 it was not the same boundaries as they are now (they changed in
2003 -- and will again in 2013).
In 2004 it is the right boundaries, with only the electoral ID as data: FED_NUM: Integer (9.0)
This worked: fed308. 2004/fed308_ a.prj" -t_srs WGS84 -f KML fed308.2004_a.kml fed308. 2004/fed308_ a.shp -dsco NameField=FED_NUM -dsco DescriptionFiel d=FED_NUM
ogr2ogr -s_srs "ESRI::
The output KML can be browsed with Google Earth (too big for Google Maps)
In 2006 they added more information, and now ogr tools core dump with a buffer overflow.
AREA: Real (20.5)
PERIMETER: Real (20.5)
FED308_A_: Real (11.0)
FED308_A_I: Real (11.0)
FED_NUM: Real (11.0)
ED_NAMEE: String (100.0)
ED_NAMEF: String (100.0)
In 2008 they added even more information:
AREA: Real (19.5)
PERIMETER: Real (19.5)
FED_NUM: Integer (9.0)
FED_TYPE: String (4.0)
ED_ID: Integer (7.0)
ED_NAMEE: String (100.0)
ED_NAMEF: String (100.0)
ELCT_CNT: Integer (6.0)
OBJECTID: Integer (10.0)
SHAPE_AREA: Real (19.11)
SHAPE_LEN: Real (19.11)
PARTY_WIN: String (1.0)
Here is what happens with the 2008 data:
$ ogr2ogr -s_srs "ESRI:: fed308. 2008/fed308_ a.prj" -t_srs WGS84 -f KML fed308.2008_a.kml fed308. 2008/fed308_ a.shp -dsco NameField=FED_NUM -dsco DescriptionFiel d=FED_NUM i686/cmov/ libc.so. 6(__fortify_ fail+0x48) [0x80ede8] i686/cmov/ libc.so. 6[0x80de20] i686/cmov/ libc.so. 6[0x80d779] i686/cmov/ libc.so. 6(__snprintf_ chk+0x34) [0x80d664] libgdal1. 5.0.so. 1(_ZN10OGRFeatu re16GetFieldAsS tringEi+ 0x34e)[ 0x4d93be] libgdal1. 5.0.so. 1(_ZN11OGRKMLLa yer13CreateFeat ureEP10OGRFeatu re+0x2ec) [0x46cffc] i686/cmov/ libc.so. 6(__libc_ start_main+ 0xe6)[0x744b56]
*** buffer overflow detected ***: ogr2ogr terminated
======= Backtrace: =========
/lib/tls/
/lib/tls/
/lib/tls/
/lib/tls/
/usr/lib/
/usr/lib/
ogr2ogr[0x80496d2]
ogr2ogr[0x804a541]
/lib/tls/
ogr2ogr[0x80491b1]