Ticket #4482 (closed defect: invalid)
gdal_translate failure when compiled with gcc 4.6.x
| Reported by: | bledoux | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | GDAL_Raster | Version: | 1.8.0 |
| Severity: | major | Keywords: | |
| Cc: |
Description
Hello,
We have a problem with gdal translate and the following command line that is supposed to build a JPG preview out of a list of JP2000 tiles referenced by a VRT file. The VRT file is provided as an attachment but the raster data(over 500mb of JP2 tiles ) is too large. We believe that fake jp2 images could be used to reproduce the issue.
Command Line:
gdal_translate jp2_tiles_65lDbU.vrt PREVIEW_SPOT6_MS_20100616170800_ORT_ASTPROD_20110412192656325_1_1.JPG -of JPEG -ot Byte -b 1 -b 2 -b 3 -scale 0 4095 0 255 -outsize 1000 725 -co QUALITY=90 --config JP2KAK_THREADS 0
Result:
Input file size is 15443, 11201 0ERROR 5: Illegal nBlockXOff value (-11184810) in GDALRasterBand::TryGetLockedBlockRef?() ERROR 5: Illegal nBlockXOff value (-11184810) in GDALRasterBand::GetLockedBlockRef?() ERROR 5: Illegal nBlockXOff value (-1048576) in GDALRasterBand::TryGetLockedBlockRef?() ERROR 5: Illegal nBlockXOff value (-1048576) in GDALRasterBand::GetLockedBlockRef?()
Analysis
We have made further tests, using the same command line, but with different gcc and gdal versions (see the following table) and it appears that there is an incompatibility between gdal 1.8.x and gcc 4.6.x :
gcc 4.6.1 + gdal 1.8.1 + geos 3.3.1 Fail
gcc 4.6.1 + gdal 1.8.0 + geos 3.3.1 Fail
gcc 4.6.1 + gdal 1.8.0 + geos 3.1.1 Fail
gcc 4.1.1 + gdal 1.8.0 + geos 3.1.1 OK
gcc 4.1.1 + gdal 1.8.0 + geos 3.3.1 OK
gcc 4.1.1 + gdal 1.8.1 + geos 3.3.1 OK
gcc 4.6.1 + gdal 1.9.0 + geos 3.3.1 Fail
gcc 4.6.2 + gdal 1.9.0 + geos 3.3.1 Fail
gcc 4.5.3 + gdal 1.9.0 + geos 3.3.1 OK

