Closed
Bug 1256049
Opened 9 years ago
Closed 9 years ago
crash in mozilla::dom::indexedDB::`anonymous namespace''::DatabaseConnection::Close
Categories
(Core :: Storage: IndexedDB, defect)
Tracking
()
RESOLVED
FIXED
mozilla48
People
(Reporter: MatsPalmgren_bugz, Assigned: khuey)
References
Details
(Keywords: crash, regression, Whiteboard: btpp-active)
Crash Data
Attachments
(1 file, 4 obsolete files)
1.84 KB,
patch
|
janv
:
review+
lizzard
:
approval-mozilla-aurora+
lizzard
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
[Tracking Requested - why for this release]:
This bug was filed from the Socorro interface and is
report bp-9fa004dd-a325-4820-ad19-3f1832160312.
=============================================================
About 200 reported crashes in the past 28 days, all on Windows.
Looks like a regression in v46.
Stack:
mozilla::dom::indexedDB::`anonymous namespace'::DatabaseConnection::Close()
mozilla::dom::indexedDB::`anonymous namespace'::ConnectionPool::CloseConnectionRunnable::Run()
nsThread::ProcessNextEvent(bool, bool*)
NS_ProcessNextEvent(nsIThread*, bool)
mozilla::dom::indexedDB::`anonymous namespace'::ConnectionPool::ThreadRunnable::Run()
nsThread::ProcessNextEvent(bool, bool*)
NS_ProcessNextEvent(nsIThread*, bool)
mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*)
MessageLoop::RunHandler()
MessageLoop::Run()
nsThread::ThreadFunc(void*)
PR_NativeRunThread
Comment 1•9 years ago
|
||
This is about #40 on the beta 46 topcrash list. 47 and 48 are affected too.
I'd like to find an owner to look into this bug but I'm not sure we need to track it for 46. We could still uplift it if there is a good fix though.
status-firefox46:
--- → affected
status-firefox47:
--- → affected
status-firefox48:
--- → affected
tracking-firefox47:
--- → +
tracking-firefox48:
--- → +
Comment 2•9 years ago
|
||
Sure does look like a regression in 46 though. I added the keyword.
Keywords: regression
Comment 3•9 years ago
|
||
Ugh I feel too guilty not tracking it. Maybe we can find a regression range.
Keywords: regressionwindow-wanted
Assignee | ||
Comment 4•9 years ago
|
||
I made this assertion fatal in bug 1195149 so we could see it.
Keywords: regressionwindow-wanted
Comment 6•9 years ago
|
||
Comment on attachment 8731494 [details] [diff] [review]
Diagnostics
Review of attachment 8731494 [details] [diff] [review]:
-----------------------------------------------------------------
Good old debugging methods.
Attachment #8731494 -
Flags: review?(jvarga) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: leave-open
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/35a5691320bc
Backed out for bustage: https://treeherder.mozilla.org/logviewer.html#?job_id=24056333&repo=mozilla-inbound
Flags: needinfo?(khuey)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(khuey)
Comment 10•9 years ago
|
||
bugherder |
Assignee | ||
Comment 11•9 years ago
|
||
3 crashes have happened so far with that diagnostic. All of them crashed at 0x5, pointing to ConnectionPool::CloseDatabaseWhenIdleInternal.
Assignee | ||
Comment 12•9 years ago
|
||
Attachment #8732973 -
Flags: review?(jvarga)
Updated•9 years ago
|
Attachment #8732973 -
Flags: review?(jvarga) → review+
Comment 13•9 years ago
|
||
Updated•9 years ago
|
Assignee: nobody → khuey
Comment 14•9 years ago
|
||
bugherder |
Assignee | ||
Comment 15•9 years ago
|
||
Ok, our premature close is getting triggered from Database::CloseInternal, which calls ConnectionPool::CloseDatabaseWhenIdle, which seems to believe we are already idle. Either we're not, or we get a late transaction constructor. Either way, we have assertions, which we should enable.
Assignee | ||
Comment 16•9 years ago
|
||
Attachment #8731494 -
Attachment is obsolete: true
Attachment #8732973 -
Attachment is obsolete: true
Attachment #8734604 -
Flags: review?(jvarga)
Assignee | ||
Comment 17•9 years ago
|
||
Attachment #8734605 -
Flags: review?(jvarga)
Updated•9 years ago
|
Attachment #8734604 -
Flags: review?(jvarga) → review+
Updated•9 years ago
|
Attachment #8734605 -
Flags: review?(jvarga) → review+
Comment 18•9 years ago
|
||
Comment 19•9 years ago
|
||
bugherder |
Updated•9 years ago
|
Whiteboard: btpp-active
Comment 20•9 years ago
|
||
I don't see any crashes on Nightly after this landed, though maybe it is too early to say for sure. Is this ready to be backported?
Comment 21•9 years ago
|
||
(In reply to Andrew McCreight [:mccr8] from comment #20)
> I don't see any crashes on Nightly after this landed, though maybe it is too
> early to say for sure. Is this ready to be backported?
These patches are not real fixes, just helping to identify the issue.
Assignee | ||
Comment 22•9 years ago
|
||
Yeah, all I did was chase this signature elsewhere.
Comment 23•9 years ago
|
||
Comment 24•9 years ago
|
||
Backed out because the assertion occurs so often that many mochitests fail.
https://hg.mozilla.org/integration/mozilla-inbound/rev/76134d6ad636
Flags: needinfo?(khuey)
Assignee | ||
Comment 26•9 years ago
|
||
This should do it, I think.
Attachment #8734604 -
Attachment is obsolete: true
Attachment #8734605 -
Attachment is obsolete: true
Attachment #8737985 -
Flags: review?(jvarga)
Comment 27•9 years ago
|
||
Comment on attachment 8737985 [details] [diff] [review]
Patch
Review of attachment 8737985 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me. I tested it locally on my mac, no failures.
Attachment #8737985 -
Flags: review?(jvarga) → review+
Comment 28•9 years ago
|
||
Comment 30•9 years ago
|
||
bugherder |
Assignee | ||
Comment 32•9 years ago
|
||
ni? myself to look at crash stats next week.
Flags: needinfo?(khuey)
Assignee | ||
Comment 33•9 years ago
|
||
Comment on attachment 8737985 [details] [diff] [review]
Patch
This is looking good so far. I'd like to take it to Aurora.
Approval Request Comment
[Feature/regressing bug #]: Possibly Bug 858680
[User impact if declined]: More crashes
[Describe test coverage new/current, TreeHerder]: IDB is pretty well tested in automation.
[Risks and why]: Low risk. This is a pretty simple patch and is unlikely to mess anything up.
[String/UUID change made/needed]: N/A
Attachment #8737985 -
Flags: approval-mozilla-aurora?
Comment 34•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(khuey)
Keywords: leave-open
Assignee | ||
Updated•9 years ago
|
Crash Signature: [@ mozilla::dom::indexedDB::`anonymous namespace''::DatabaseConnection::Close] → [@ mozilla::dom::indexedDB::`anonymous namespace''::DatabaseConnection::Close]
[@ PLDHashTable::Search | nsInterfaceHashtable<T>::Get]
\o/
Comment 38•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Hi Kyle, I was trying to check whether the crash signatures have appeared since this landed in Nightly before taking this to Aurora 47. If I am not wrong, this fix should have been in 4/13 Nightly build. Right? I was not able to find the first signature but the 2nd crash sig is still occurring on 4/13 Nightly build: https://crash-stats.mozilla.com/report/index/89a9a6c1-7cc7-43c3-85ee-941cf2160413. Am I reading the data wrong? Please let me know.
Flags: needinfo?(khuey)
Comment 40•9 years ago
|
||
(In reply to Ritu Kothari (:ritu) from comment #39)
> Hi Kyle, I was trying to check whether the crash signatures have appeared
> since this landed in Nightly before taking this to Aurora 47. If I am not
> wrong, this fix should have been in 4/13 Nightly build. Right? I was not
> able to find the first signature but the 2nd crash sig is still occurring on
> 4/13 Nightly build:
> https://crash-stats.mozilla.com/report/index/89a9a6c1-7cc7-43c3-85ee-
> 941cf2160413. Am I reading the data wrong? Please let me know.
The "[@ PLDHashTable::Search | nsInterfaceHashtable<T>::Get ]" signature is a very generic one that can match lots of crashes. I've filed bug 1263781 to get an extra frame in that signature.
The crash report you cited appears to have a different cause. It doesn't involve DB connection closing, AFAICT.
Flags: needinfo?(khuey)
Assignee | ||
Comment 41•9 years ago
|
||
That crash looks related. We did fix an actual problem here, and I'd like to get that into Aurora, even if there might be more things that still need to be fixed.
Comment 42•9 years ago
|
||
Kyle what do you think about taking this for beta 11? I would like to bring down our crash rate and this looks promising. If you think it's too risky then please wontfix for 46 though.
Flags: needinfo?(khuey)
Assignee | ||
Comment 43•9 years ago
|
||
I think the downside risk here is limited to "doesn't fix all the crashes", so I'd be comfortable taking it for 46 if desired.
Flags: needinfo?(khuey)
Assignee | ||
Comment 44•9 years ago
|
||
For posterity, this is number 35 and 0.32% of browser process crashes on 46.b.
Comment 45•9 years ago
|
||
Fixing some of the crashes sounds great to me. Kyle can you request beta uplift?
Flags: needinfo?(khuey)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(khuey)
Attachment #8737985 -
Flags: approval-mozilla-beta?
Comment 46•9 years ago
|
||
Comment on attachment 8737985 [details] [diff] [review]
Patch
Crash fixes, looks good to me, and ritu says OK for aurora. Please uplift to aurora and beta, hoping to make it into beta 11.
Attachment #8737985 -
Flags: approval-mozilla-beta?
Attachment #8737985 -
Flags: approval-mozilla-beta+
Attachment #8737985 -
Flags: approval-mozilla-aurora?
Attachment #8737985 -
Flags: approval-mozilla-aurora+
Assignee | ||
Comment 47•9 years ago
|
||
And to be precise, the changeset to be uplifted is in comment 30. None of the other things that landed should be uplifted.
Comment 48•9 years ago
|
||
bugherder uplift |
Comment 49•9 years ago
|
||
bugherder uplift |
You need to log in
before you can comment on or make changes to this bug.
Description
•