Ticket #2837 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

GDALDatasetPool::~GDALDatasetPool() asserts when an underlying file cannot be opened

Reported by: rouault Owned by: rouault
Priority: normal Milestone: 1.6.1
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:
Cc:

Description

This is due to the fact that in GDALProxyPoolDataset::RefUnderlyingDataset?() we should release the reference to the cache entry when the underlying dataset is NULL.

There are also a few methods in gdalproxypool.cpp that don't check the return value of RefUnderlyingDataset?() is not NULL

Change History

Changed 3 years ago by rouault

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 1.6.1

Fixed in trunk (r16294) and in branches/1.6 (r16295)

Changed 3 years ago by rouault

Test added in r16296

Note: See TracTickets for help on using tickets.