linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #02036
[Bug 654040] [NEW] Handle leak with mingw, but not msvc (r2251)
Public bug reported:
Running r2251 mingw release build on Windows XP, there seems to be a
handle leak associated with uploading files (and possibly downloading, I
haven't checked).
Using process explorer to monitor, it can be observed that when a
segment of a file completes uploading in DC++, the handle count
decreases by one, then increases by three handles as the next segment
starts uploading. This means a net increase in handles, which after
12-24 hours puts DC++'s handle count at over 10,000 (if you have lots of
users downloading from you).
This may possibly be an issue after longer periods of time, as it may
lead to resource (handle) starvation in the OS. I am not sure when this
started happening, I cannot replicate the problem with the x86 MSVC
release build on XP, or when using the x64 MSVC release build on Win7.
So I'm guessing its something to do with mingw?
Note:
According to process explorers property page, these are not GDI or USER handles, for example, at the moment the affected process says:
handles: 6504
GDI handles: 417
USER handles: 206
if that helps.
** Affects: dcplusplus
Importance: Undecided
Status: New
--
Handle leak with mingw, but not msvc (r2251)
https://bugs.launchpad.net/bugs/654040
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to DC++.
Status in DC++: New
Bug description:
Running r2251 mingw release build on Windows XP, there seems to be a handle leak associated with uploading files (and possibly downloading, I haven't checked).
Using process explorer to monitor, it can be observed that when a segment of a file completes uploading in DC++, the handle count decreases by one, then increases by three handles as the next segment starts uploading. This means a net increase in handles, which after 12-24 hours puts DC++'s handle count at over 10,000 (if you have lots of users downloading from you).
This may possibly be an issue after longer periods of time, as it may lead to resource (handle) starvation in the OS. I am not sure when this started happening, I cannot replicate the problem with the x86 MSVC release build on XP, or when using the x64 MSVC release build on Win7.
So I'm guessing its something to do with mingw?
Note:
According to process explorers property page, these are not GDI or USER handles, for example, at the moment the affected process says:
handles: 6504
GDI handles: 417
USER handles: 206
if that helps.
Follow ups
-
[Bug 654040] Re: Handle leak with mingw, but not msvc (r2251)
From: poy, 2010-11-12
-
[Bug 654040] Re: Handle leak with mingw, but not msvc (r2251)
From: eMTee, 2010-11-12
-
[Bug 654040] Re: Handle leak with mingw, but not msvc (r2251)
From: poy, 2010-11-12
-
[Bug 654040] Re: Handle leak with mingw, but not msvc (r2251)
From: poy, 2010-11-12
-
[Bug 654040] Re: Handle leak with mingw, but not msvc (r2251)
From: eMTee, 2010-10-23
-
[Bug 654040] Re: Handle leak with mingw, but not msvc (r2251)
From: Kris, 2010-10-22
-
[Bug 654040] Re: Handle leak with mingw, but not msvc (r2251)
From: eMTee, 2010-10-22
-
[Bug 654040] Re: Handle leak with mingw, but not msvc (r2251)
From: poy, 2010-10-06
-
[Bug 654040] Re: Handle leak with mingw, but not msvc (r2251)
From: Kris, 2010-10-03
-
[Bug 654040] [NEW] Handle leak with mingw, but not msvc (r2251)
From: Kris, 2010-10-03
References