Closed Bug 446208 Opened 18 years ago Closed 17 years ago

Crash after upgrading to 3.0.1 [@ sqlite3VdbeIdxRowidLen ]

Categories

(Core :: SQLite and Embedded Database Bindings, defect)

1.9.0 Branch
x86
Windows Vista
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla1.9.2a1

People

(Reporter: ehsan.akhgari, Unassigned)

References

()

Details

(Keywords: crash, topcrash, verified1.9.1)

Crash Data

Attachments

(1 file)

Today I upgraded my 3.0 installation to 3.0.1, and Firefox crashed on me 6 times in a row before I moved backwards to 3.0, which eliminated the crash. All of the crashes (except one noted below with an asterisk) are identical and happen in SQLite. Looking through the list of fixed1.9.0.1, it seems to me that this may be related to the 3.5.9 upgrade of SQLite (bug 435414). The list of reports in time order is as below: 65c33f1c-55b2-11dd-a118-001321b13766 94b2cfca-55b4-11dd-b5e0-0013211cbf8a c20fb85e-55b5-11dd-85cb-001321b13766 * 7d220d40-55b6-11dd-a8f7-001a4bd43ef6 106bde8c-55b7-11dd-9080-001a4bd43ed6 9b5ab305-55b7-11dd-8456-001a4bd43ef6 Stack trace from the first report: 0 sqlite3.dll sqlite3VdbeIdxRowidLen mozilla/db/sqlite3/src/sqlite3.c:40602 1 sqlite3.dll sqlite3VdbeIdxKeyCompare mozilla/db/sqlite3/src/sqlite3.c:40676 2 sqlite3.dll sqlite3VdbeExec mozilla/db/sqlite3/src/sqlite3.c:45864 3 sqlite3.dll sqlite3Step mozilla/db/sqlite3/src/sqlite3.c:41212 4 sqlite3.dll sqlite3_step mozilla/db/sqlite3/src/sqlite3.c:41276 5 xul.dll mozStorageStatement::ExecuteStep mozilla/storage/src/mozStorageStatement.cpp:472 6 xul.dll nsUrlClassifierStore::ReadEntries mozilla/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp:715 7 xul.dll nsUrlClassifierStore::ReadEntries mozilla/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp:766 8 xul.dll nsUrlClassifierDBServiceWorker::SubChunk mozilla/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp:2507 9 xul.dll xul.dll@0x2e6f0a 10 xul.dll nsUrlClassifierDBServiceWorker::UpdateStream mozilla/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp:2941 11 xul.dll NS_InvokeByIndex_P mozilla/xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp:101 12 nspr4.dll PR_Unlock mozilla/nsprpub/pr/src/threads/combined/prulock.c:355 13 xul.dll nsThread::ProcessNextEvent mozilla/xpcom/threads/nsThread.cpp:510 14 xul.dll nsThread::ThreadFunc mozilla/xpcom/threads/nsThread.cpp:254 15 @0xb48fe8f The last two happened in Safe Mode. Restoring the same session on 3.0 doesn't show the crash. Reproducible: Always
Flags: blocking1.9.0.2?
Keywords: topcrash
Is there any more info, such as ad-one, themes, etc.?
The extensions I have installed (and enabled) include: Adblock Plus Ctrl-Tab DOM Inspector DownThemAll Find In Numbers Firebug Force RTL FoxyProxy NoScript Persian Dictionary Weave I only have one theme installed: NASA Night Launch but I don't use it. The only plugin I have installed and enabled is Mozilla Default Plug-in. I'd be happy to provide more info, just let me know what you need to know. Just to be clear, this same crash happened in safe mode with all of these add-ons disabled.
Try re-installing Firefox 3.0.1 in a fresh directory. Please download directly from www.mozilla.com.
There is no need to reinstall. A new profile or the safemode would be different but this is however a topcrash for 3.01
Ok.
(In reply to comment #3) > Try re-installing Firefox 3.0.1 in a fresh directory. Please download directly > from www.mozilla.com. FWIW, I tried both upgrading from Firefox 3.0 and a fresh install of 3.0.1 straight off mozilla.com and they both lead to identical crashes.
Can the OP use the SQLite command-line shell to run PRAGMA integrity_check; against each of the *.sqlite database files used by FF? And if errors or found, please email me the files containing errors.
Sorry for the late reply. I ran PRAGMA integrity_check on all of the sqlite databases, and the only one giving me any errors was urlclassifier.sqlite (which is kind of predictable given the call stack for the crashes). Here are the errors: sqlite> PRAGMA integrity_check; *** in database main *** On tree page 4590 cell 0: invalid page number 218222592 On tree page 5076 cell 305: 2nd reference to page 272 On tree page 5076 cell 305: Child page depth differs On tree page 5076 cell 306: Child page depth differs Fragmented space is 6 byte reported as 0 on page 1146 On tree page 5076 cell 309: 2nd reference to page 1072 On tree page 5076 cell 309: Child page depth differs On tree page 5076 cell 310: Child page depth differs On tree page 5076 cell 393: 2nd reference to page 653 On tree page 5076 cell 393: Child page depth differs On tree page 5076 cell 394: Child page depth differs On tree page 5097 cell 69: 2nd reference to page 5362 On tree page 5097 cell 69: Child page depth differs On tree page 5097 cell 70: Child page depth differs On tree page 5098 cell 158: 2nd reference to page 10313 On tree page 5098 cell 158: Child page depth differs On tree page 5098 cell 159: Child page depth differs Fragmented space is 27 byte reported as 0 on page 10743 Fragmented space is 498 byte reported as 0 on page 12344 Fragmented space is 546 byte reported as 0 on page 222 On tree page 2068 cell 59: 2nd reference to page 1146 On tree page 2068 cell 59: Child page depth differs On tree page 2068 cell 60: Child page depth differs Fragmented space is 6 byte reported as 0 on page 2068 Page 924 is never used Page 926 is never used wrong # of entries in index moz_subs_chunk_index wrong # of entries in index moz_subs_domain_index rowid 10375 missing from index moz_classifier_domain_index rowid 44467 missing from index moz_classifier_domain_index rowid 50879 missing from index moz_classifier_domain_index rowid 85175 missing from index moz_classifier_domain_index rowid 86202 missing from index moz_classifier_domain_index rowid 88869 missing from index moz_classifier_domain_index rowid 90805 missing from index moz_classifier_domain_index rowid 93815 missing from index moz_classifier_domain_index rowid 95757 missing from index moz_classifier_domain_index rowid 99181 missing from index moz_classifier_chunk_index rowid 99181 missing from index moz_classifier_domain_index rowid 99263 missing from index moz_classifier_chunk_index rowid 100912 missing from index moz_classifier_domain_index rowid 101915 missing from index moz_classifier_domain_index rowid 102102 missing from index moz_classifier_domain_index rowid 103970 missing from index moz_classifier_chunk_index rowid 103970 missing from index moz_classifier_domain_index rowid 108244 missing from index moz_classifier_domain_index rowid 116522 missing from index moz_classifier_domain_index rowid 118917 missing from index moz_classifier_chunk_index rowid 119945 missing from index moz_classifier_chunk_index rowid 120177 missing from index moz_classifier_chunk_index rowid 120177 missing from index moz_classifier_domain_index rowid 130817 missing from index moz_classifier_domain_index rowid 131188 missing from index moz_classifier_domain_index rowid 135382 missing from index moz_classifier_chunk_index rowid 135477 missing from index moz_classifier_chunk_index rowid 135477 missing from index moz_classifier_domain_index rowid 135695 missing from index moz_classifier_chunk_index rowid 135799 missing from index moz_classifier_domain_index rowid 136418 missing from index moz_classifier_chunk_index rowid 136418 missing from index moz_classifier_domain_index rowid 136505 missing from index moz_classifier_chunk_index rowid 140979 missing from index moz_classifier_chunk_index rowid 141273 missing from index moz_classifier_chunk_index rowid 146196 missing from index moz_classifier_chunk_index rowid 146196 missing from index moz_classifier_domain_index rowid 146271 missing from index moz_classifier_chunk_index rowid 159121 missing from index moz_classifier_domain_index rowid 164350 missing from index moz_classifier_domain_index rowid 168760 missing from index moz_classifier_chunk_index rowid 168760 missing from index moz_classifier_domain_index rowid 168904 missing from index moz_classifier_chunk_index rowid 169015 missing from index moz_classifier_chunk_index rowid 169015 missing from index moz_classifier_domain_index rowid 173985 missing from index moz_classifier_domain_index rowid 178692 missing from index moz_classifier_domain_index rowid 184441 missing from index moz_classifier_domain_index rowid 195234 missing from index moz_classifier_domain_index rowid 195367 missing from index moz_classifier_domain_index rowid 196864 missing from index moz_classifier_chunk_index rowid 197244 missing from index moz_classifier_chunk_index rowid 197244 missing from index moz_classifier_domain_index rowid 197290 missing from index moz_classifier_chunk_index rowid 197290 missing from index moz_classifier_domain_index rowid 197319 missing from index moz_classifier_chunk_index rowid 197319 missing from index moz_classifier_domain_index rowid 197327 missing from index moz_classifier_chunk_index rowid 197327 missing from index moz_classifier_domain_index rowid 197328 missing from index moz_classifier_chunk_index rowid 197328 missing from index moz_classifier_domain_index rowid 197330 missing from index moz_classifier_chunk_index rowid 197330 missing from index moz_classifier_domain_index rowid 197332 missing from index moz_classifier_chunk_index rowid 197332 missing from index moz_classifier_domain_index rowid 197343 missing from index moz_classifier_chunk_index rowid 197343 missing from index moz_classifier_domain_index rowid 197355 missing from index moz_classifier_chunk_index rowid 197355 missing from index moz_classifier_domain_index rowid 197362 missing from index moz_classifier_chunk_index rowid 197362 missing from index moz_classifier_domain_index rowid 197365 missing from index moz_classifier_chunk_index Please let me know if I can be of further help.
Hey Ehsan - could you attach that corrupted database to the bug please? In order to determine if this was fixed in 3.6.0 or needs to be fixed for a 3.6.1, we need the database file. There is no personal data in the urlclassifier database, so no privacy concerns here.
You can grab it here: <http://ehsanakhgari.org/sites/default/files/file/mozilla/bug/446208/urlclassifier3.rar> I had to upload the database because it was quite large.
The bug in SQLite that was causing it to crash when given the corrupt database file above has been fixed by check-in [5484] in the SQLite source tree: http://www.sqlite.org/cvstrac/chngview?cn=5484 This fix occur earlier today, so it was not in the 3.6.0 release of SQLite.
I've ported the fix from the upstream project as mentioned in comment 11. I think we should consider taking this for 1.9.0.2, unless that version is going to ship with a SQLite version later than 3.6.0, which includes this fix.
Assignee: nobody → ehsan.akhgari
Status: NEW → ASSIGNED
Attachment #331439 - Flags: review?(mconnor)
Blocks: 445042
Version: Trunk → 1.9.0 Branch
Attachment #331439 - Flags: review?(mconnor) → review?(sdwilsh)
(In reply to comment #12) > Created an attachment (id=331439) [details] > Port the fix from upstream > > I've ported the fix from the upstream project as mentioned in comment 11. I > think we should consider taking this for 1.9.0.2, unless that version is going > to ship with a SQLite version later than 3.6.0, which includes this fix. We have traditionally only shipped versions of sqlite that have been vetted by the sqlite developers. This consequentially means that we do not take patches to the sqlite code.
No longer blocks: 445042
(In reply to comment #13) > We have traditionally only shipped versions of sqlite that have been vetted by > the sqlite developers. This consequentially means that we do not take patches > to the sqlite code. So does this mean that we have to wait for SQLite 3.6.1 (assuming that it would include this fix) to land on trunk *and* branch in order for this bug to be fixed? What if it's decided that for the sake of stability, the SQLite version on branch is frozen and never bumped to 3.6.1? Perhaps a SQLite developer can comment here on the safety of this patch being applied to 3.5.9?
(In reply to comment #14) > So does this mean that we have to wait for SQLite 3.6.1 (assuming that it would > include this fix) to land on trunk *and* branch in order for this bug to be > fixed? Yes. We like to get the qa stamp of approval from the sqlite folks. > What if it's decided that for the sake of stability, the SQLite version > on branch is frozen and never bumped to 3.6.1? Then we wouldn't take any other crash fixes either. Let's not bikeshed on this though. Drivers tend to make an educated decision on weather to take something or not for each release.
Attachment #331439 - Flags: review?(sdwilsh)
Not going to block on this, but we should be sure to upgrade when a new sqlite is available so it gets fixed.
Flags: blocking1.9.0.2? → blocking1.9.0.2-
(In reply to comment #16) > Not going to block on this, but we should be sure to upgrade when a new sqlite > is available so it gets fixed. Do we still want to upgrade SQLite? Sadly, we don't have a stable version in any shipping product yet (that isn't Firefox 3).
With bug 449443 fixed on trunk/shirotoko, should this bug be considered fixed? Or does it stay open for 1.9.0?
Fixed on trunk.
Assignee: ehsan.akhgari → nobody
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
(In reply to comment #19) > Fixed on trunk. I assume 1.9.1 too when watching bug 449443.
Keywords: fixed1.9.1
Target Milestone: --- → mozilla1.9.2a1
This was reported in 3.0.7 a few times. One person i know got this crash by simply attempting to login to Gmail. No extensions running. Crash stack: http://crash-stats.mozilla.com/report/index/707c9ab4-bd76-4f19-9c66-644e02090312 Rollup of other reports: http://crash-stats.mozilla.com/report/list?product=Firefox&version=Firefox%3A3.0.7&query_search=signature&query_type=exact&query=sqlite3VdbeIdxRowidLen&date=&range_value=2&range_unit=weeks&do_query=1&signature=sqlite3VdbeIdxRowidLen Can we still land the fix into 1.9.0.8? Meanwhile, i had the person verify it against 3.1b3 just now with the same profile, so i'll verified191 that.
Flags: wanted1.9.0.x?
Flags: blocking1.9.0.8?
I've talked with 1.9.0 drivers about the possibility of taking a SQLite upgrade, and we *might* take it if we don't see any topcrashers in SQLite with the beta 3 release of 3.1.
(In reply to comment #21) > This was reported in 3.0.7 a few times. One person i know got this crash by Just to clarify a "few" times. As given by the query there are about 2400 crash reports listed for Firefox 3.0.7.
Searched on crash-stats against all versions (http://tinyurl.com/d6bz3v), and crashes seem to show up primarily from 3.0.1 to 3.0.7, but not trunk. marking verified on trunk.
Status: RESOLVED → VERIFIED
We will not block a 3.0.x release on this bug.
Flags: blocking1.9.0.8? → blocking1.9.0.8-
Crash Signature: [@ sqlite3VdbeIdxRowidLen ]
Flags: wanted1.9.0.x?
Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: