Closed Bug 325395 Opened 19 years ago Closed 15 years ago

Crash when trying to create an instance of cache-service

Categories

(Core :: Networking: Cache, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 494946

People

(Reporter: martijn.martijn, Unassigned)

References

Details

(Keywords: crash, testcase)

Attachments

(2 files)

See upcoming testcase. You need to test the testcase locally to get the crash.
Attached file testcase
Attached file Backtrace
Backtrace from a debug build. First I get an assertion:
###!!! ASSERTION: multiple nsCacheService instances!: 'gService==nsnull', file c
:/mozilla/mozilla/netwerk/cache/src/nsCacheService.cpp, line 493

Then the crash:
#0  0x01314daa in nsCacheService::ServiceLock() ()
    at c:/mozilla/mozilla/netwerk/cache/src/nsCacheService.cpp:1403
#1  0x0130ec6a in nsCacheEntryDescriptor::SetDataSize(unsigned) (
    this=0xe55d8c0, dataSize=0)
    at c:/mozilla/mozilla/netwerk/cache/src/nsCacheEntryDescriptor.cpp:216
#2  0x65d0b8d8 in imgRequest::OnStartDecode(imgIRequest*) (this=0xe55d3e0,
    request=0x0) at c:/mozilla/mozilla/modules/libpr0n/src/imgRequest.cpp:438
#3  0x65d138df in nsGIFDecoder2::BeginGIF(void*, unsigned, unsigned, unsigned ch
ar) (aClientData=0x1034d3c0, aLogicalScreenWidth=16,
    aLogicalScreenHeight=16, aBackgroundRGBIndex=8 '\b')
    at c:/mozilla/mozilla/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp:284
etc.
I don't think this should block bug 181491, because that bug is about the case where no cache service exists yet, I believe.

Assignee: darin → nobody
Yeah, don't call createInstance on services.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
I'd rather make it dependant on that bug, if it is related.
Depends on: 494946
What's special about this service that you think it should have an ad-hoc workaround?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: