Opened 7 years ago

Last modified 15 months ago

#4519 reopened defect

gdal_translate crashes when working with MSG/SEVIRI native data

Reported by: simon84 Owned by: warmerdam
Priority: normal Milestone:
Component: Utilities Version: 2.2.3
Severity: major Keywords:
Cc:

Description

Hi, I am trying to use gdal_translate to convert native format MSG/SEVIRI data into TIFF files. The native data comes from the UMARF archive and only contains the HRV channel (channel 12). My OS is Ubuntu 11.04.

I spawn gdal_translate with: gdal_translate HRV:MSG2-SEVI-MSG15-0100-NA-20111102121240.303000000Z-1024478.nat /media/D1/SEV_NAT/TEST.tiff

gdal_translate correctly identifies the image dimensions: Input file size is 11136, 11136

But then crashes. This occurs both with the GDAL distributed with through Ubuntu (1.6.3 I think) and with the 1.9.0 version that I compiled. Here is the crashdump: 0* glibc detected * gdal_translate: double free or corruption (!prev): 0x0000000001ef46c0 * ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x78a8f)[0x7ff472276a8f] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x73)[0x7ff47227a8e3] /usr/lib/libgdal1.6.0.so.1(+0x28037d)[0x7ff4731d137d] /usr/lib/libgdal1.6.0.so.1(_ZN14GDALRasterBand17GetLockedBlockRefEiii+0x123)[0x7ff47329cd93] /usr/lib/libgdal1.6.0.so.1(_ZN14GDALRasterBand9IRasterIOE10GDALRWFlagiiiiPvii12GDALDataTypeii+0x82e)[0x7ff4732a764e] /usr/lib/libgdal1.6.0.so.1(_ZN11GDALDataset9IRasterIOE10GDALRWFlagiiiiPvii12GDALDataTypeiPiiii+0xfb)[0x7ff4732880eb] /usr/lib/libgdal1.6.0.so.1(_ZN11GDALDataset8RasterIOE10GDALRWFlagiiiiPvii12GDALDataTypeiPiiii+0x453)[0x7ff473289073] /usr/lib/libgdal1.6.0.so.1(GDALDatasetCopyWholeRaster+0x8c9)[0x7ff4732a9309] /usr/lib/libgdal1.6.0.so.1(+0x1f4baa)[0x7ff473145baa] /usr/lib/libgdal1.6.0.so.1(_ZN10GDALDriver10CreateCopyEPKcP11GDALDatasetiPPcPFidS1_PvES6_+0x98)[0x7ff47328cf48] gdal_translate[0x403b5a] /lib/x86_64-linux-gnu/libc.so.6(libc_start_main+0xff)[0x7ff47221ceff] gdal_translate[0x401c59] ======= Memory map: ======== 00400000-00405000 r-xp 00000000 08:01 9046791 /usr/bin/gdal_translate 00604000-00605000 r--p 00004000 08:01 9046791 /usr/bin/gdal_translate 00605000-00606000 rw-p 00005000 08:01 9046791 /usr/bin/gdal_translate 01edd000-01f9a000 rw-p 00000000 00:00 0 [heap] 7ff464000000-7ff464021000 rw-p 00000000 00:00 0 7ff464021000-7ff468000000 ---p 00000000 00:00 0 7ff4699ac000-7ff46a331000 rw-p 00000000 00:00 0 7ff46a331000-7ff46a334000 r-xp 00000000 08:01 5377741 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0 7ff46a334000-7ff46a533000 ---p 00003000 08:01 5377741 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0 7ff46a533000-7ff46a534000 r--p 00002000 08:01 5377741 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0 7ff46a534000-7ff46a535000 rw-p 00003000 08:01 5377741 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0 7ff46a535000-7ff46a544000 r-xp 00000000 08:01 9052424 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.9 7ff46a544000-7ff46a744000 ---p 0000f000 08:01 9052424 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.9 7ff46a744000-7ff46a745000 r--p 0000f000 08:01 9052424 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.9 7ff46a745000-7ff46a746000 rw-p 00010000 08:01 9052424 /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.9 7ff46a746000-7ff46a75f000 r-xp 00000000 08:01 9048327 /usr/lib/libsasl2.so.2.0.23 7ff46a75f000-7ff46a95e000 ---p 00019000 08:01 9048327 /usr/lib/libsasl2.so.2.0.23 7ff46a95e000-7ff46a95f000 r--p 00018000 08:01 9048327 /usr/lib/libsasl2.so.2.0.23 7ff46a95f000-7ff46a960000 rw-p 00019000 08:01 9048327 /usr/lib/libsasl2.so.2.0.23 7ff46a960000-7ff46a977000 r-xp 00000000 08:01 5377774 /lib/x86_64-linux-gnu/libresolv-2.13.so 7ff46a977000-7ff46ab77000 ---p 00017000 08:01 5377774 /lib/x86_64-linux-gnu/libresolv-2.13.so 7ff46ab77000-7ff46ab78000 r--p 00017000 08:01 5377774 /lib/x86_64-linux-gnu/libresolv-2.13.so 7ff46ab78000-7ff46ab79000 rw-p 00018000 08:01 5377774 /lib/x86_64-linux-gnu/libresolv-2.13.so 7ff46ab79000-7ff46ab7b000 rw-p 00000000 00:00 0 7ff46ab7b000-7ff46ab7d000 r-xp 00000000 08:01 5377743 /lib/x86_64-linux-gnu/libkeyutils.so.1.3 7ff46ab7d000-7ff46ad7c000 ---p 00002000 08:01 5377743 /lib/x86_64-linux-gnu/libkeyutils.so.1.3 7ff46ad7c000-7ff46ad7d000 r--p 00001000 08:01 5377743 /lib/x86_64-linux-gnu/libkeyutils.so.1.3 7ff46ad7d000-7ff46ad7e000 rw-p 00002000 08:01 5377743 /lib/x86_64-linux-gnu/libkeyutils.so.1.3 7ff46ad7e000-7ff46ad85000 r-xp 00000000 08:01 9044442 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1 7ff46ad85000-7ff46af84000 ---p 00007000 08:01 9044442 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1 7ff46af84000-7ff46af85000 r--p 00006000 08:01 9044442 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1 7ff46af85000-7ff46af86000 rw-p 00007000 08:01 9044442 /usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1 7ff46af86000-7ff46afab000 r-xp 00000000 08:01 9043986 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1 7ff46afab000-7ff46b1ab000 ---p 00025000 08:01 9043986 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1 7ff46b1ab000-7ff46b1ac000 r--p 00025000 08:01 9043986 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1 7ff46b1ac000-7ff46b1ad000 rw-p 00026000 08:01 9043986 /usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1 7ff46b1ad000-7ff46bfed000 r--p 00000000 08:01 9044270 /usr/lib/libicudata.so.44.2 7ff46bfed000-7ff46c1ec000 ---p 00e40000 08:01 9044270 /usr/lib/libicudata.so.44.2 7ff46c1ec000-7ff46c1ed000 rw-p 00e3f000 08:01 9044270 /usr/lib/libicudata.so.44.2 7ff46c1ed000-7ff46c263000 r-xp 00000000 08:01 5377737 /lib/x86_64-linux-gnu/libgcrypt.so.11.6.0 7ff46c263000-7ff46c463000 ---p 00076000 08:01 5377737 /lib/x86_64-linux-gnu/libgcrypt.so.11.6.0 7ff46c463000-7ff46c464000 r--p 00076000 08:01 5377737 /lib/x86_64-linux-gnu/libgcrypt.so.11.6.0 7ff46c464000-7ff46c467000 rw-p 00077000 08:01 5377737 /lib/x86_64-linux-gnu/libgcrypt.so.11.6.0 7ff46c467000-7ff46c501000 r-xp 00000000 08:01 9052364 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.14.12 7ff46c501000-7ff46c701000 ---p 0009a000 08:01 9052364 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.14.12 7ff46c701000-7ff46c707000 r--p 0009a000 08:01 9052364 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.14.12 7ff46c707000-7ff46c708000 rw-p 000a0000 08:01 9052364 /usr/lib/x86_64-linux-gnu/libgnutls.so.26.14.12 7ff46c708000-7ff46c715000 r-xp 00000000 08:01 9048102 /usr/lib/liblber-2.4.so.2.5.6 7ff46c715000-7ff46c914000 ---p 0000d000 08:01 9048102 /usr/lib/liblber-2.4.so.2.5.6 7ff46c914000-7ff46c915000 r--p 0000c000 08:01 9048102 /usr/lib/liblber-2.4.so.2.5.6 7ff46c915000-7ff46c916000 rw-p 0000d000 08:01 9048102 /usr/lib/liblber-2.4.so.2.5.6 7ff46c916000-7ff46c947000 r-xp 00000000 08:01 9048082 /usr/lib/libidn.so.11.6.1 7ff46c947000-7ff46cb47000 ---p 00031000 08:01 9048082 /usr/lib/libidn.so.11.6.1 7ff46cb47000-7ff46cb48000 r--p 00031000 08:01 9048082 /usr/lib/libidn.so.11.6.1Aborted

Change History (7)

comment:1 Changed 7 years ago by simon84

Version: 1.6.31.9.0

comment:2 Changed 4 years ago by Jukka Rahkonen

Could it be possible to get sample data? Can you repeat your own test with GDAL 1.11.1?

comment:3 Changed 4 years ago by srp84

At present I can't supply sample data, but after the Christmas vacation I'll see what I can do.

This bug is still present on the latest builds (1.11.1 built from source and also 1.10 from the Ubuntu package repository). It has changed though, rather than crashing it now displays this error: Input file size is 3712, 3712 Input file has no bands, and so cannot be translated.

This is incorrect as: The file contains one band and is 11136x11136, not 3712.

Hope that helps, Simon

comment:4 Changed 15 months ago by Jukka Rahkonen

I fear that this ticket won't fix without data to reproduce the issue.

comment:5 Changed 15 months ago by Even Rouault

Resolution: invalid
Status: newclosed

Closing due to lack of feedback from reporter. Reopen if you can provide a test sample

comment:6 Changed 15 months ago by simon84

I no longer use GDAL but for testing I downloaded the latest version. This bug is still present. Sample data is available here: http://weatherstationdata.physics.ox.ac.uk/MSG3-SEVI-MSG15-0100-NA-20171122111240.604000000Z-20171122111256-1253256.nat I'm somewhat surprised that this has not been resolved.

The above link is valid until 15UTC on the 24th Nov.

comment:7 Changed 15 months ago by simon84

Resolution: invalid
Status: closedreopened
Version: 1.9.02.2.3
Note: See TracTickets for help on using tickets.