Open Bug 424806 Opened 16 years ago Updated 2 years ago

WARNING: leaking reference to nsTimerImpl

Categories

(Core :: XPCOM, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: bc, Unassigned)

Details

(Keywords: memory-leak)

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?
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.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.