Processed: Re: Bug#817146: gdal-bin: ogr2ogr segfault
Processing control commands: > tags -1 - moreinfo Bug #817146 [gdal-bin] gdal-bin: ogr2ogr segfault Removed tag(s) moreinfo. > tags -1 + confirmed upstream Bug #817146 [gdal-bin] gdal-bin: ogr2ogr segfault Added tag(s) upstream and confirmed. > forwarded -1 https://trac.osgeo.org/gdal/ticket/6408 Bug #817146 [gdal-bin] gdal-bin: ogr2ogr segfault Set Bug forwarded-to-address to 'https://trac.osgeo.org/gdal/ticket/6408'. > severity -1 important Bug #817146 [gdal-bin] gdal-bin: ogr2ogr segfault Severity set to 'important' from 'grave' -- 817146: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817146 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#817146: gdal-bin: ogr2ogr segfault
Control: tags -1 - moreinfo Control: tags -1 + confirmed upstream Control: forwarded -1 https://trac.osgeo.org/gdal/ticket/6408 Control: severity -1 important Hi Andy, On 08-03-16 15:14, Andy G Wood wrote: > Reducing a much larger data set, attached argos_trip.csv which is used by > attached argos.xml which generates the segfault with: > > ogr2ogr -a_srs WGS84 -f GeoJSON -where "ID=098530" -nln "098530" \ > p098530.json argos.xml Thanks for the reproducible test case. I've forwarded this bugreport to the upstream issue tracker to help get the segfault resolved. I'm downgrading the severity to important because this issue because it doesn't render the package completely unusable to everyone. I don't have systems with GDAL 1.11 at hand any more, but with GDAL 1.10.1 on jessie your command still fails with the same error messages, ogr2ogr just doesn't segfault: $ ogr2ogr -a_srs WGS84 -f GeoJSON -where "ID=098530" \ -nln "098530" p098530.json argos.xml ; echo $? ERROR 1: Type mismatch or improper type of arguments to = operator. FAILURE: SetAttributeFilter(ID=098530) on layer 'argos_trip' failed. 1 Because the ID column is of type String, you should quote the value to not have it interpreted as an integer: $ ogr2ogr -a_srs WGS84 -f GeoJSON -where "ID='098530'" \ -nln "098530" p098530.json argos.xml ; echo $? 0 This doesn't trigger the type mismatch error and SetAttributeFilter() failure, and the subsequent segfault (which should not happen either way). Kind Regards, Bas -- GPG Key ID: 4096R/6750F10AE88D4AF1 Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
Bug#817146: gdal-bin: ogr2ogr segfault
Hi Bas, Reducing a much larger data set, attached argos_trip.csv which is used by attached argos.xml which generates the segfault with: ogr2ogr -a_srs WGS84 -f GeoJSON -where "ID=098530" -nln "098530" \ p098530.json argos.xml Andy. On Tuesday 08 March 2016 14:58:47 Bas Couwenberg wrote: > Control: tags -1 moreinfo > > Hi Andy, > > > Running an ogr2ogr command that had been working until the most recent > > update in testing: > > > > ogr2ogr -a_srs WGS84 -f GeoJSON -where "ID=098530" -nln "098530" > > p098530.json argos.xml > > Can you provide the data file(s) to reproduce this issue? > > Kind Regards, > > Bas argos.xml Description: XML document ID,DIST,THEGEOM 098530,32,"LINESTRING(-72.303 -69.499, -72.295 -69.506, -72.316 -69.511, -72.343 -69.513, -72.280 -69.510, -72.269 -69.497, -72.271 -69.500, -72.322 -69.490, -72.327 -69.510, -72.317 -69.515, -72.290 -69.507, -72.300 -69.504, -72.298 -69.493, -72.297 -69.498, -72.298 -69.506, -72.308 -69.508, -72.306 -69.507, -72.306 -69.506, -72.319 -69.503, -72.305 -69.506, -72.299 -69.509, -72.342 -69.501, -72.280 -69.511, -72.279 -69.527, -72.247 -69.530, -72.206 -69.528, -72.264 -69.528, -72.242 -69.520, -72.245 -69.519)"
Bug#817146: gdal-bin: ogr2ogr segfault
Control: tags -1 moreinfo Hi Andy, Running an ogr2ogr command that had been working until the most recent update in testing: ogr2ogr -a_srs WGS84 -f GeoJSON -where "ID=098530" -nln "098530" p098530.json argos.xml Can you provide the data file(s) to reproduce this issue? Kind Regards, Bas
Processed: Re: Bug#817146: gdal-bin: ogr2ogr segfault
Processing control commands: > tags -1 moreinfo Bug #817146 [gdal-bin] gdal-bin: ogr2ogr segfault Added tag(s) moreinfo. -- 817146: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817146 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#817146: gdal-bin: ogr2ogr segfault
Package: gdal-bin Version: 2.0.2+dfsg-2 Severity: grave Justification: renders package unusable Dear Maintainer, * What led up to the situation? Running an ogr2ogr command that had been working until the most recent update in testing: ogr2ogr -a_srs WGS84 -f GeoJSON -where "ID=098530" -nln "098530" p098530.json argos.xml * What was the outcome of this action? Segfault and error message. In /var/log/syslog: kernel: [1918421.641659] ogr2ogr[11691]: segfault at ceb3f0 ip 00ceb3f0 sp 7fffbd837758 error 15 At command line: ERROR 1: Type mismatch or improper type of arguments to = operator. FAILURE: SetAttributeFilter(ID=098530) on layer 'argos_trip' failed. Segmentation fault -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (900, 'testing'), (300, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages gdal-bin depends on: ii libc6 2.21-9 ii libgcc1 1:5.3.1-10 ii libgdal20 [gdal-abi-2-0-2] 2.0.2+dfsg-2 ii libstdc++6 5.3.1-10 gdal-bin recommends no packages. Versions of packages gdal-bin suggests: ii python-gdal 2.0.2+dfsg-2 -- no debconf information