Crash in sqlite3_extended_result_codes
Categories
(Toolkit :: Places, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr52 | --- | unaffected |
| firefox-esr60 | --- | unaffected |
| firefox61 | --- | unaffected |
| firefox62 | --- | wontfix |
| firefox63 | --- | wontfix |
| firefox64 | --- | fix-optional |
People
(Reporter: philipp, Unassigned)
References
Details
(Keywords: crash, regression, Whiteboard: [sng])
Crash Data
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Updated•7 years ago
|
Updated•6 years ago
|
Comment 5•3 years ago
|
||
Since the crash volume is low (less than 5 per week), the severity is downgraded to S3. Feel free to change it back if you think the bug is still critical.
For more information, please visit auto_nag documentation.
Updated•1 year ago
|
Comment 6•1 year ago
|
||
There's very few crashes left.
All of them are on shutdown, and it looks like cases where we are executing an async task, but it's late on shutdown:
- mozilla::storage::(anonymous namespace)::AsyncInitializeClone::Run()
- mozilla::places::AsyncGetFaviconDataForPage::Run()
It's all cases where we should likely give up, since we're shutting down, but we're not handling that case correctly.
I imagine sqlite3_extended_result_codes is crashing because the sqlite3* is a dangling pointer.
I think we should wrap up the readonly cloned connections into a separate object, that handles shutdown internally, and then reuse this connection for both favicons and history links.
In addition at least AsyncInitializeClone::Run is missing some checks as it should not be try to use a dead sqlite3 pointer, so this check may be wrong, or better it's not holding a mutex to check connectionReady(), it should probably lock sharedAsyncExecutionMutex?
https://searchfox.org/mozilla-central/rev/754074e05178e017ef6c3d8e30428ffa8f1b794d/storage/mozStorageConnection.cpp#1623
Updated•1 year ago
|
Comment 7•19 hours ago
|
||
Closing because no crashes reported for 12 weeks.
Description
•