Closed
Bug 107820
Opened 24 years ago
Closed 23 years ago
nsIOService:SetOffline is using getService during shutdown; suggest using weakRef
Categories
(Core :: Networking, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 134724
Future
People
(Reporter: depman1, Assigned: dougt)
Details
(Keywords: verifyme)
reproduced in 10/27 debug mozilla build.
1. Set break points in nsWarning messages in nsComponentManager.cpp;
nsComponentManagerImpl::GetService() and
nsComponentManagerImpl::GetServiceByContractID() (lines 1750 & 2075).
2. Launch Mozilla with F5.
3. Quit Mozilla.
4. F5 (twice) until you see stack trace including destructor for nsIOService.
5. Doubleclick on line above ~nsIOService: nsIOService::SetOffline(nsIOService *
const 0x015561e0, int 1) line 788 + 28 bytes.
Result: Calling do_GetService() for the ObserverService. in nsIOService:SetOffline.
Suggest using a weakReference.
note that shutdown of this service is causing a warning msg when shutting down
mozilla (see bug 107391)
*** This bug has been marked as a duplicate of 134724 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
If someone else concurs this is a duplicate, please VERIFY.
Keywords: verifyme
You need to log in
before you can comment on or make changes to this bug.
Description
•