Closed Bug 754070 Opened 12 years ago Closed 8 years ago

Shutdown crash for b2g desktop build in nsOfflineCacheDevice::RunSimpleQuery

Categories

(Core :: Networking, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: gwagner, Unassigned)

References

Details

(Keywords: crash, Whiteboard: b2g-desktop-builds, [b2g-crash])

Crash Data

Build details:
https://wiki.mozilla.org/Gaia/Hacking
On OSX 10.7.3


The whole stack:
0   XUL                           	0x0000000101323e5e nsOfflineCacheDevice::RunSimpleQuery(mozIStorageStatement*, unsigned int, unsigned int*, char***) + 38 (nsDiskCacheDeviceSQL.cpp:2067)
1   XUL                           	0x0000000101324135 nsOfflineCacheDevice::GetGroupsTimeOrdered(unsigned int*, char***) + 99 (nsDiskCacheDeviceSQL.cpp:2058)
2   XUL                           	0x000000010133d0d9 nsApplicationCacheService::GetGroupsTimeOrdered(unsigned int*, char***) + 249 (nsApplicationCacheService.cpp:124)
3   XUL                           	0x000000010241d075 nsOfflineCacheUpdate::EvictOneNonPinned() + 213 (nsOfflineCacheUpdate.cpp:1937)
4   XUL                           	0x000000010242403b nsOfflineCacheUpdate::LoadCompleted() + 921 (nsOfflineCacheUpdate.cpp:1450)
5   XUL                           	0x0000000102424741 nsOfflineCacheUpdateItem::Run() + 25 (nsOfflineCacheUpdate.cpp:473)
6   XUL                           	0x0000000102af5918 nsThread::ProcessNextEvent(bool, bool*) + 1294 (nsThread.cpp:656)
7   XUL                           	0x0000000102a85212 NS_ProcessNextEvent_P(nsIThread*, bool) + 120 (nsThreadUtils.cpp:245)
8   XUL                           	0x00000001026ecf92 mozilla::places::(anonymous namespace)::BlockingConnectionCloseCallback::Spin() + 58 (Database.cpp:291)
9   XUL                           	0x00000001026f12bb mozilla::places::Database::Shutdown() + 335 (Database.cpp:1911)
10  XUL                           	0x00000001026f1c8d mozilla::places::Database::Observe(nsISupports*, char const*, unsigned short const*) + 2475 (Database.cpp:2004)
11  XUL                           	0x0000000102aaa30a nsObserverList::NotifyObservers(nsISupports*, char const*, unsigned short const*) + 94 (nsObserverList.cpp:130)
12  XUL                           	0x0000000102aab405 nsObserverService::NotifyObservers(nsISupports*, char const*, unsigned short const*) + 291 (nsObserverService.cpp:185)
13  XUL                           	0x000000010123a2bd nsXREDirProvider::DoShutdown() + 431 (nsXREDirProvider.cpp:854)
14  XUL                           	0x000000010122a013 ScopedXPCOMStartup::~ScopedXPCOMStartup() + 171 (nsAppRunner.cpp:1127)
15  XUL                           	0x0000000101231f31 XREMain::XRE_main(int, char**, nsXREAppData const*) + 585 (nsAppRunner.cpp:3879)
16  XUL                           	0x00000001012320d9 XRE_main + 92 (nsAppRunner.cpp:3933)
17  org.mozilla.b2g               	0x0000000100001d0b _ZL7do_mainiPPc + 829 (nsBrowserApp.cpp:186)
18  org.mozilla.b2g               	0x0000000100001f57 main + 533 (nsBrowserApp.cpp:269)
19  org.mozilla.b2g               	0x000000010000184c start + 52
Crash Signature: [@ nsOfflineCacheDevice::RunSimpleQuery]
I guess this is caused by running code with some resource released for shutdown.  I will try to listen on will shutdown to clean up the work queue.
Preventing nsCacheService::GetOfflineDevice() to return the device when nsCacheDevice::mInitialized is false will fix this bug.
Since Bug 739868 will remove evicting code, I guess this bug would be resolved by it.
Depends on: 739868
Keywords: crash
Whiteboard: b2g-desktop-builds, [b2g-crash]
Depends on: 830391
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.