Closed
Bug 104741
Opened 23 years ago
Closed 22 years ago
NSS leaks on shutdown()
Categories
(NSS :: Libraries, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
3.5
People
(Reporter: dbaron, Assigned: rrelyea)
References
Details
(Keywords: memory-leak)
Attachments
(1 file)
8.83 KB,
patch
|
Details | Diff | Splinter Review |
I attempted to merge the leak fixes provided by jeff@NerdOne.com (Jeff
Hostetler) into a single patch. It did reduce the shutdown leaks I observed
from NSS by a bit (I think around 200K), although it still didn't fix the
largest leak, which I'll try to file as a separate bug. I'll attach the patch
and mark the bugs that the patch covers as depending on this one.
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Updated•23 years ago
|
Updated•23 years ago
|
Assignee: wtc → relyea
Comment 2•23 years ago
|
||
Assigned the bug to Bob.
Updated•23 years ago
|
Priority: -- → P1
Target Milestone: --- → 3.4
Version: unspecified → 3.3.1
Assignee | ||
Comment 3•23 years ago
|
||
I've expanded the meaning of this bug. The new NSS 3.4 code base leaks even more
on shutdown(). Many of the data structures have changed, but there are still
many that this patch still applies to.
bob
Summary: NSS leak fixes → NSS leaks on shutdown()
Reporter | ||
Comment 4•23 years ago
|
||
cc:ing ccarlen@netscape.com, since these leaks might be a real issue if we want
to start up and shut down NSS multiple times due to profile changes in turbo mode.
Assignee | ||
Comment 5•23 years ago
|
||
Most of these are not 'real' leaks. Most are data elements that NSS needs to
run. They are created on the fly as needed, and one instance is ever created for
each of these objects. If this data is freed then reallocated on profile changes
and turbo mode it may affect performance in these cases.
One particular type of memory allocation is the free lists. NSS keeps a free
list of keys and objects that it allocates for reuse. This was to keep the
malloc contention down in server products (where were trying to do hundreds of
SSL connections a second and contending on malloc). A better fix for mozilla
would be to reduce the watermark for these free lists. That will reduce steady
state heap usage in PSM as well.
Anyway for 3.4 I'm proceeding under the assumption at the malloc's and frees
will not be a significant performance hit against turbo mode and will remove
noise from the leak detection tools. NOTE: one source of leakage: the Random
number generater, will specifically *NOT* be handled. The cost of keeping one
lock and a buffer around is worth keeping the entropy we collected to that point
-- particularly when Mozilla uses shutdown not to shutdown, but to restart with
a different profile.
bob
Assignee | ||
Comment 6•23 years ago
|
||
This should be fixed now with the NSS 3.4 landing.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 7•23 years ago
|
||
I am still seeing many one-time leaks in NSS_Init() reported
by BoundsChecker. We need to examine these memory leaks to
verify that all the one-time leaks reported by jeff@NerdOne.com
have been fixed in NSS 3.4.
I am reopening this bug, targeting NSS 3.4.1, priority P2.
Status: RESOLVED → REOPENED
Priority: P1 → P2
Resolution: FIXED → ---
Target Milestone: 3.4 → 3.4.1
Comment 8•23 years ago
|
||
Changed the QA contact to Bishakha.
QA Contact: sonja.mirtitsch → bishakhabanerjee
Assignee | ||
Updated•23 years ago
|
Target Milestone: 3.4.1 → 3.5
Assignee | ||
Comment 9•22 years ago
|
||
All the leaks associated with this bug has been fixed. There are separate bug
reports for any new leaks already.
Status: REOPENED → RESOLVED
Closed: 23 years ago → 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•