Opened 9 years ago

Closed 9 years ago

#6121 closed defect (duplicate)

gdal_sieve.py segfaulting in GDALSieveFilter

Reported by: flewellyn Owned by: warmerdam
Priority: high Milestone:
Component: GDAL_Raster Version: 2.0.0
Severity: major Keywords: segfault
Cc:

Description

Running the gdal_sieve.py program distributed with GDAL/OGR (version 2.0.0, compiled from source, x86_64 using GCC 4.8.4 on Ubuntu 14.04) with the attached raster as the input file, I get a segfault.

To avoid cluttering this ticket's text, I have placed a GDB backtrace at this pastebin location:

http://pastebin.com/DCYvkY76

Here is the command line I used to run the program:

gdb -ex r --args python /usr/local/bin/gdal_sieve.py -q -st 1500 dissolvetest.tif dissolveout.tif

I have attached the file "dissolvetest.tif" to this ticket.

Attachments (1)

dissolvetest.tif (26.2 KB ) - added by flewellyn 9 years ago.

Download all attachments as: .zip

Change History (4)

by flewellyn, 9 years ago

Attachment: dissolvetest.tif added

comment:1 by flewellyn, 9 years ago

Component: defaultGDAL_Raster
Priority: normalhigh

comment:2 by Kurt Schwehr, 9 years ago

I think the issue is resolved in trunk. Probably fixed by r30151

gdb -ex r --args python /usr/local/bin/gdal_sieve.py -q -st 1500 dissolvetest.tif dissolveout.tif

[snip]

Skipping loading of libstdc++ pretty-printers for now.
Non-google3 binary detected.
Starting program: /usr/bin/python /usr/local/bin/gdal_sieve.py -q -st 1500 dissolvetest.tif dissolveout.tif
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/grte/v4/lib64/libthread_db.so.1".
Unable to determine compiler version.
Defaulting to gdb's copy of None libstdc++ pretty-printers.
[Inferior 1 (process 1662) exited normally]

svn info | grep Rev
Revision: 30505

comment:3 by Even Rouault, 9 years ago

Resolution: duplicate
Status: newclosed

Exactly. I confirm this is a duplicate of https://trac.osgeo.org/gdal/ticket/6096 due to the presence of nodata value. Fixed by GDAL 2.0.1

Note: See TracTickets for help on using tickets.