Opened 14 years ago

Closed 14 years ago

#2768 closed bug (invalid)

crash when opening an invalid file

Reported by: pcav Owned by: nobody
Priority: critical: causes crash or data corruption Milestone: Version 1.5.0
Component: Rasters Version: Trunk
Keywords: Cc:
Must Fix for Release: Yes Platform: Debian
Platform Version: Awaiting user input: no

Description

If one tries to open the accessory .aux file instead of the .adf, QGIS crashes:

Error:

GDAL Error 1: Can't find RasterDMS field in Eimg_Layer with block list.

Segmentation fault

I'm attaching the file causing the crash.

Attachments (1)

dem50.aux (6.4 KB ) - added by pcav 14 years ago.

Download all attachments as: .zip

Change History (17)

by pcav, 14 years ago

Attachment: dem50.aux added

comment:1 by lutra, 14 years ago

Paolo, this should be duplicate of #2688

comment:2 by jef, 14 years ago

Summary: chrash when opening a raster .aux accessory filecrash when opening a raster .aux accessory file

can't reproduce this either. Which GDAL version is in use?

comment:3 by borysiasty, 14 years ago

Paolo, can you test it with gdal 1.7? At mine, this one and #2688 seem to be related to gdal 1.6.x only.

comment:4 by pcav, 14 years ago

Confirmed: it crashes with the above mentioned error with libgdal1-1.7.0 Version: 1.7.1-1 from Debian experimental. It crashes with error:

Error:

GDAL Error 4: `/home/paolo/Desktop/dem50.aux' not recognised as a supported file format.

During startup - Warning message: �w� Segmentation fault

with libgdal1-1.6.0 Version: 1.6.3-4 from Debian testing

comment:5 by borysiasty, 14 years ago

So you get the same behaviour with both gdals 1.6.3 and 1.7.1?

comment:6 by pcav, 14 years ago

Same behaviour, different message.

comment:7 by pcav, 14 years ago

Must Fix for Release: NoYes

in reply to:  4 comment:8 by jef, 14 years ago

Replying to pcav:

Confirmed: it crashes with the above mentioned error with libgdal1-1.7.0 Version: 1.7.1-1 from Debian experimental. It crashes with error:

32 or 64bit?

comment:9 by pcav, 14 years ago

gdal 1.6.3 on 32, 1.7.1 on 64 bit

in reply to:  4 comment:10 by jef, 14 years ago

Does it crash also when you have only the .aux? Maybe that why it doesn't crash here. Does gdalinfo -mm dem50.aux also crash for you?

comment:11 by pcav, 14 years ago

Yes, it crashes also when I have only the .aux:

Error:

GDAL Error 4: `/home/paolo/article.aux' not recognised as a supported file format.

Segmentation fault

gdalinfo -mm /home/paolo/article.aux gives the same error:

ERROR 4: `/home/paolo/article.aux' not recognised as a supported file format.

gdalinfo failed - unable to open '/home/paolo/article.aux'.

comment:12 by pcav, 14 years ago

Summary: crash when opening a raster .aux accessory filecrash when opening an invalid file

BTW, this bug renders the Image Boundary plugin unusable, if in the origin folder there are .tfw or other files.

in reply to:  12 ; comment:13 by jef, 14 years ago

Replying to pcav:

BTW, this bug renders the Image Boundary plugin unusable, if in the origin folder there are .tfw or other files.

could you provider a backtrace? Did you try without any plugins?

in reply to:  13 comment:14 by jef, 14 years ago

Replying to jef:

could you provide a backtrace? Did you try without any plugins?

And a clean ~/.qgis...

comment:15 by pcav, 14 years ago

You are right (as usual): it depends on some plugin - removing the it does not crash, putting them back it does. Now it's a long way to test every one.

comment:16 by pcav, 14 years ago

Resolution: invalid
Status: newclosed

OK, got it: it's SDA4PP

Note: See TracTickets for help on using tickets.