the full information as following:
1. my gtkmozilla program based mozilla-2.0.0.10
2. how to disable CacheService ?
3. i guess that the servMgr object cause a core
#14 0x000000000040c27c in NS_ShutdownXPCOM (servMgr=0x0) at
nsXPCOMGlue.cpp:159
NS_METHOD NS_TermEmbedding()
{
// Reentrant calls to this method do nothing except decrement a
counter
if (sInitCounter > 1)
{
sInitCounter--;
return NS_OK;
}
sInitCounter = 0;
NS_IF_RELEASE(sServiceManager); ---------> it release
sServiceManager so servMgr is null
// Terminate XPCOM & cleanup
#ifndef HACK_AROUND_NONREENTRANT_INITXPCOM
nsresult rv = NS_ShutdownXPCOM(sServiceManager);
NS_ENSURE_SUCCESS(rv, rv);
#endif
return NS_OK;
}
On Jan 5, 2:33 pm, Brightman <[EMAIL PROTECTED]> wrote:
> when the browser loaded url "http://13602849046.bokee.com/" and exit,
> it core dump
>
> #0 0x0000002a95bf37e2 in nsDiskCacheRecord::HashNumber (this=0x400)
> at nsDiskCacheMap.h:139
> 139 PRUint32 HashNumber() const { return
> mHashNumber; }
> (gdb) bt
> #0 0x0000002a95bf37e2 in nsDiskCacheRecord::HashNumber (this=0x400)
> at nsDiskCacheMap.h:139
> #1 0x0000002a95bf8158 in nsDiskCacheMap::UpdateRecord (this=0x909220,
> mapRecord=0x5e5cd0) at nsDiskCacheMap.cpp:430
> #2 0x0000002a95bfc11a in nsDiskCacheStreamIO::UpdateFileSize
> (this=0x5e5d00) at nsDiskCacheStreams.cpp:647
> #3 0x0000002a95bfbb70 in nsDiskCacheStreamIO::Flush (this=0x5e5d00)
> at nsDiskCacheStreams.cpp:489
> #4 0x0000002a95bfb959 in nsDiskCacheStreamIO::ClearBinding
> (this=0x5e5d00) at nsDiskCacheStreams.cpp:437
> #5 0x0000002a95bf2cd2 in ~nsDiskCacheBinding (this=0x5e5ca0) at
> nsDiskCacheBinding.cpp:136
> #6 0x0000002a95bf277c in nsDiskCacheBinding::Release (this=0x5e5ca0)
> at nsDiskCacheBinding.cpp:205
> #7 0x0000002a95bed788 in nsCacheService::Unlock () at
> nsCacheService.cpp:1902
> #8 0x0000002a95be86c9 in ~nsCacheServiceAutoLock (this=0x7fbfffe3b0)
> at nsCacheService.h:328
> #9 0x0000002a95beafbd in nsCacheService::Shutdown (this=0x906600) at
> nsCacheService.cpp:672
> #10 0x0000002a95be9981 in nsCacheProfilePrefObserver::Observe
> (this=0x908790, subject=0x564568,
> topic=0x2a96d69ae0 "xpcom-shutdown", data_unicode=0x0) at
> nsCacheService.cpp:255
> #11 0x0000002a9690d8ba in nsObserverList::NotifyObservers
> (this=0x84de28, aSubject=0x564568,
> aTopic=0x2a96d69ae0 "xpcom-shutdown", someData=0x0) at
> nsObserverList.cpp:128
> #12 0x0000002a9690ee21 in nsObserverService::NotifyObservers
> (this=0x5c7800, aSubject=0x564568,
> aTopic=0x2a96d69ae0 "xpcom-shutdown", someData=0x0) at
> nsObserverService.cpp:181
> #13 0x0000002a969034c7 in NS_ShutdownXPCOM_P (servMgr=0x0) at
> nsXPComInit.cpp:724
> #14 0x000000000040c27c in NS_ShutdownXPCOM (servMgr=0x0) at
> nsXPCOMGlue.cpp:159
> #15 0x000000000040f878 in NS_TermEmbedding () at nsEmbedAPI.cpp:215
> #16 0x0000000000403eb5 in main (argc=1, argv=0x7fbffff928) at
> test1.cpp:763
> (gdb) f 16
> #16 0x0000000000403eb5 in main (argc=1, argv=0x7fbffff928) at
> test1.cpp:763
> 763 NS_TermEmbedding();
> (gdb) p url
> $7 = "http://13602849046.bokee.com/\n\000\000\020èÿ¿\177", '\0'
> <repeats 11 times>
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding