Testcase for gdal crash at exit