Opened 12 years ago

Closed 12 years ago

#4129 closed defect (fixed)

Kernel resource Leak cpl_multiproc.cpp gdal18.dll

Reported by: mayaleonard Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 1.8.0
Severity: normal Keywords: CPLCreateMutex

Description (last modified by warmerdam)

Hi, While debugging my application I get a kernel resource leak. The following is the call stack. The application is only calling GDALAllRegister() and GDALDestoryDriverManager(). The same leak happens with the example applications. I've also tried older versions of gdal. My OS is windows 7 and I tried both x86 and 64bit.

ID	Description	Source	Function	Module	Object Size	State
X2	Synchronization object handle creation site	cpl_multiproc.cpp:480	CPLCreateMutex	gdal18.dll		New

gdal18.dll!CPLCreateMutex - cpl_multiproc.cpp:480
gdal18.dll!CPLCreateOrAcquireMutex - cpl_multiproc.cpp:146
gdal18.dll!CPLMutexHolder - cpl_multiproc.cpp:73
gdal18.dll!PamCleanProxyDB - gdalpamproxydb.cpp:284
gdal18.dll!~GDALDriverManager - gdaldrivermanager.cpp:156
gdal18.dll!`vector deleting destructor' - gdal18.dll:393240
gdal18.dll!GDALDestroyDriverManager - gdaldrivermanager.cpp:687
main - main.cpp:507

Change History (2)

comment:1 by warmerdam, 12 years ago

Description: modified (diff)

comment:2 by warmerdam, 12 years ago

Resolution: fixed
Status: newclosed

I have cleaned up this and a few other mutexes on cleanup (r22812); however, there are still a few that are hard to cleanup properly. Generally speaking I don't take one-time allocations like mutexes too seriously, but it is nice to clean them up to make finding other (serious) leaks easier.

Note: See TracTickets for help on using tickets.