Closed
Bug 29355
Opened 25 years ago
Closed 18 years ago
leaking nsThread
Categories
(Core :: XPCOM, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
Future
People
(Reporter: sspitzer, Unassigned)
References
Details
(Keywords: memory-leak, verifyme)
Attachments
(3 files)
2.25 KB,
patch
|
Details | Diff | Splinter Review | |
45.86 KB,
text/plain
|
Details | |
9.91 KB,
patch
|
Details | Diff | Splinter Review |
I'm working on a patch to fix the leaking of nsThread.
I've got a little more work to do, before I can hand it off to warren.
most of the nsThread.cpp code is written by warren, so he gets to be the lucky
owner of this bug.
Reporter | ||
Comment 1•25 years ago
|
||
whoops, wrong product.
Component: Back End → XPCOM
Product: MailNews → Browser
Comment 2•25 years ago
|
||
Which nsThread is leaking?
I know they don't leak in general for necko.
Updated•25 years ago
|
Target Milestone: M15
Reporter | ||
Comment 3•25 years ago
|
||
here's a patch.
I just talked to warren, and there are problems with this patch, but I'm
attaching it for completeness.
other problems with this patch are it uses a static nsCOMPtr.
Reporter | ||
Comment 4•25 years ago
|
||
Reporter | ||
Comment 5•25 years ago
|
||
attaching the refcount balanced subtree.
setenv XPCOM_MEM_REFCNT_LOG log-file.dat
setenv XPCOM_MEM_LOG_CLASSES nsThread
./mozilla http://www.yahoo.com
perl -w ~/find-leakers.pl log-file.dat
perl -w ~/make-tree.pl --object 0x0805A260 --ignore-balanced < ./log-file.dat >
~/tree.txt
Reporter | ||
Comment 6•25 years ago
|
||
Reporter | ||
Comment 7•25 years ago
|
||
from a phone conversation with warren:
1) stomp one in the xpcom shutdown (and not by using an nsCOMPtr, like I did in
my patch)
2) is nspr calling our Exit() function?
Comment 8•25 years ago
|
||
I think there are 2 things going on here:
1. nspr isn't calling our destructor (nsThread::Exit) when it quits the main
thread of the app. Cc'ing wtc.
2. I suspect that imap is still going to have thread problems because nowhere in
your code do you join with the imap thread to synchronize shutdown with it.
I'm attaching my patches to work around the first problem. Let me know if they
look ok. I also am cleaning up the global allocator too. Note that I also filed
bug 29621 about the nsDirectoryService leak
Comment 9•25 years ago
|
||
Reporter | ||
Comment 10•25 years ago
|
||
testing / reviewing patch now.
Keywords: mlk
Comment 11•25 years ago
|
||
Moving non-essential, non-beta2 and performance-related bugs to M17.
Target Milestone: M15 → M17
Comment 13•25 years ago
|
||
What happened with this? I forget whether the code went in already or not.
Reporter | ||
Comment 14•25 years ago
|
||
I thought you checked something in a one point.
Comment 15•25 years ago
|
||
Marking this fixed then.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 16•25 years ago
|
||
Anything I can do to verify?
Comment 17•25 years ago
|
||
Maybe look at the bloat log on tinderbox?
Comment 18•24 years ago
|
||
- Per last comments, and no reopen - Marking Verified/Fixed. Please reopen if
still a problem.
Status: RESOLVED → VERIFIED
Comment 19•24 years ago
|
||
You obviously didn't look at tinderbox, because the leak is still there.
Reopening.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Comment 21•24 years ago
|
||
Moving Warren's thread bugs from his circular file to mine, because I was told it
was the thing to do. Anyone who actually wants these bugs, now, feel free to
correct my hastiness.
Assignee: warsome → danm
Status: REOPENED → NEW
Comment 22•24 years ago
|
||
So is this leak still current or fixed?
Comment 23•23 years ago
|
||
This bug seems to have a patch. Could:
- the whiteboad be updated?
- the patch be retested and fixed.
Comment 24•23 years ago
|
||
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1
(you can query for this string to delete spam or retrieve the list of bugs I've
moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
Updated•19 years ago
|
QA Contact: mozilla.5.warren → xpcom
Certainly not a problem anymore after the thread manager landing.
Status: NEW → RESOLVED
Closed: 25 years ago → 18 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•