Open
Bug 424806
Opened 16 years ago
Updated 2 years ago
WARNING: leaking reference to nsTimerImpl
Categories
(Core :: XPCOM, defect)
Tracking
()
NEW
People
(Reporter: bc, Unassigned)
Details
(Keywords: memory-leak)
WARNING: leaking reference to nsTimerImpl: file c:/work/mozilla/builds/1.9.0/mozilla/xpcom/threads/nsTimerImpl.cpp, line 464 Found with the JavaScript tests: <http://test.bclary.com/tests/mozilla.org/js/js-test-driver-standards.html?test=js1_5/extensions/regress-336409-1.js;language=type;text/javascript> : linux|mac|win32 <http://test.bclary.com/tests/mozilla.org/js/js-test-driver-standards.html?test=js1_5/extensions/regress-336410-1.js;language=type;text/javascript> linux|mac|win32 <http://test.bclary.com/tests/mozilla.org/js/js-test-driver-standards.html?test=js1_5/Regress/regress-3649-n.js;language=type;text/javascript> win32
Flags: in-testsuite+
Flags: in-litmus-
Reporter | ||
Comment 1•16 years ago
|
||
These tests also give: WARNING: An event was posted to a thread that will never run it (rejected): file c:/work/mozilla/builds/1.9.0/mozilla/xpcom/threads/nsThread.cpp Does that need a new bug?
Comment 2•16 years ago
|
||
The first warning is bogus given that if nsTimerImpl::PostTimerEvent fails, the weak pointer to the timer that's stored in the created event is released (from the fix for bug 420521). The warning is only valid if the timer runs, but it's not here; we should remove it. The second is the real problem, but it's not obvious from the code what's wrong -- real question is who's posting the event to a dead thread, since that's the only way to trigger the second warning. It's possible the OOMing nature of those tests plays a factor here, but it's hard to tell exactly how.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•