My favorites | Sign in
Project Home Downloads Wiki Issues Code Search
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 47059: Crash because of corrupted history in r50325
12 people starred this issue and may be notified of changes. Back to list
 
Project Member Reported by rdsmith@chromium.org, Jun 21, 2010
What steps will reproduce the problem?
1.  Build chromium on the mac from r50325
2.  Nuke the application support directory for Chromium (rm -rf ~/Library/Application\ Support/Chromium)
3.  Startup the browser.
4.  Navigate to a Livejournal account (for which you have access and have visited with another browser on the same computer) friends page
5.  Allow Chromium to use the keychain.
6.  Type in the user name to log in to livejournal and tab.  The password should be auto-filled in.
7.  Hit return to accept the password.  You should be logged in to livejournal.
8.  Quit chromium.
9.  Restart chromium and enter a web address (e.g. www.facebook.com) into the omnibar.  Chromium will usually crash on the first w.

This sequence has worked for me about 4 times out of five, but it did fail once; I suspect that I may have moved too fast and quit from Chromium before the history was saved (happens about every 10 seconds from code inspection.)

What is the expected output? What do you see instead?

Expected: Continuing to let me enter a web address, with auto-complete suggestions.
Actual:

rdsmith-macbookpro:../chrome/src $ xcodebuild/Debug/Chromium.app/Contents/MacOS/Chromium 
[4853:2307:2531386885229:ERROR:/Users/rdsmith/Sandboxen/chrome/src/chrome/browser/first_run_mac.mm(63)] Not implemented reached in static bool FirstRun::ProcessMasterPreferences(const FilePath&, FirstRun::MasterPrefs*)
[4853:20231:2535130251916:WARNING:/Users/rdsmith/Sandboxen/chrome/src/net/base/file_stream_posix.cc(349)] Failed to open file: 2 (/Users/rdsmith/Library/Application Support/Chromium/Default/Last Tabs)
[4853:20995:2536464163346:WARNING:/Users/rdsmith/Sandboxen/chrome/src/net/spdy/spdy_session.cc(942)] Received data frame for invalid stream 1
[4853:20995:2536464243934:WARNING:/Users/rdsmith/Sandboxen/chrome/src/net/spdy/spdy_session.cc(942)] Received data frame for invalid stream 1
[4857:519:2536687179249:ERROR:/Users/rdsmith/Sandboxen/chrome/src/base/platform_thread_mac.mm(68)] pthread_setname_np: Error 22 while retrieving error -1
[4857:15875:2536687748341:ERROR:/Users/rdsmith/Sandboxen/chrome/src/base/platform_thread_mac.mm(68)] pthread_setname_np: Error 22 while retrieving error -1
LEAK: 5 CachedResource
LEAK: 179 WebCoreNode
[4858:519:2563437788781:WARNING:/Users/rdsmith/Sandboxen/chrome/src/chrome/common/resource_dispatcher.cc(499)] unknown request
[4858:519:2563439325343:WARNING:/Users/rdsmith/Sandboxen/chrome/src/chrome/common/resource_dispatcher.cc(278)] Got response for a nonexistant or finished request
rdsmith-macbookpro:../chrome/src $ xcodebuild/Debug/Chromium.app/Contents/MacOS/Chromium 
[4859:32263:2574132678298:FATAL:../app/sql/diagnostic_error_delegate.h(29)] Check failed: false. sqlite error 11
Backtrace:
	0   Chromium Framework                  0x00a104d2 StackTrace::StackTrace() + 32
	1   Chromium Framework                  0x00a29203 logging::LogMessage::~LogMessage() + 63
	2   Chromium Framework                  0x0035ff14 sql::DiagnosticErrorDelegate<(anonymous namespace)::HistogramUniquifier<3ul> >::OnError(int, sql::Connection*, sql::Statement*) + 170
	3   Chromium Framework                  0x00e069cc sql::Connection::OnSqliteError(int, sql::Statement*) + 86
	4   Chromium Framework                  0x00e0ab18 sql::Statement::CheckError(int) + 140
	5   Chromium Framework                  0x00e0bae9 sql::Statement::Step() + 75
	6   Chromium Framework                  0x005028b2 history::TextDatabase::GetTextMatches(std::string const&, history::QueryOptions const&, std::vector<history::TextDatabase::Match, std::allocator<history::TextDatabase::Match> >*, std::set<GURL, std::less<GURL>, std::allocator<GURL> >*, base::Time*) + 1274
	7   Chromium Framework                  0x00505a16 history::TextDatabaseManager::GetTextMatches(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, history::QueryOptions const&, std::vector<history::TextDatabase::Match, std::allocator<history::TextDatabase::Match> >*, base::Time*) + 600
	8   Chromium Framework                  0x004d8e1d history::HistoryBackend::QueryHistoryFTS(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, history::QueryOptions const&, history::QueryResults*) + 139
	9   Chromium Framework                  0x004d94d9 history::HistoryBackend::QueryHistory(scoped_refptr<CancelableRequest1<CallbackRunner<Tuple2<int, history::QueryResults*> >, history::QueryResults> >, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, history::QueryOptions const&) + 327
	10  Chromium Framework                  0x004cc4a0 void DispatchToMethod<history::HistoryBackend, void (history::HistoryBackend::*)(scoped_refptr<CancelableRequest1<CallbackRunner<Tuple2<int, history::QueryResults*> >, history::QueryResults> >, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, history::QueryOptions const&), scoped_refptr<CancelableRequest1<CallbackRunner<Tuple2<int, history::QueryResults*> >, history::QueryResults> >, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, history::QueryOptions>(history::HistoryBackend*, void (history::HistoryBackend::*)(scoped_refptr<CancelableRequest1<CallbackRunner<Tuple2<int, history::QueryResults*> >, history::QueryResults> >, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, history::QueryOptions const&), Tuple3<scoped_refptr<CancelableRequest1<CallbackRunner<Tuple2<int, history::QueryResults*> >, history::QueryResults> >, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, history::QueryOptions> const&) + 105
	11  Chromium Framework                  0x004cc4eb RunnableMethod<history::HistoryBackend, void (history::HistoryBackend::*)(scoped_refptr<CancelableRequest1<CallbackRunner<Tuple2<int, history::QueryResults*> >, history::QueryResults> >, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, history::QueryOptions const&), Tuple3<scoped_refptr<CancelableRequest1<CallbackRunner<Tuple2<int, history::QueryResults*> >, history::QueryResults> >, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, history::QueryOptions> >::Run() + 57
	12  Chromium Framework                  0x00a2e601 MessageLoop::RunTask(Task*) + 315
	13  Chromium Framework                  0x00a2e6b1 MessageLoop::DeferOrRunPendingTask(MessageLoop::PendingTask const&) + 53
	14  Chromium Framework                  0x00a2e941 MessageLoop::DoWork() + 253
	15  Chromium Framework                  0x00a362d7 base::MessagePumpDefault::Run(base::MessagePump::Delegate*) + 223
	16  Chromium Framework                  0x00a2f14c MessageLoop::RunInternal() + 212
	17  Chromium Framework                  0x00a2f167 MessageLoop::RunHandler() + 17
	18  Chromium Framework                  0x00a2f1cb MessageLoop::Run() + 35
	19  Chromium Framework                  0x00a61aad base::Thread::Run(MessageLoop*) + 17
	20  Chromium Framework                  0x00a61f5f base::Thread::ThreadMain() + 337
	21  Chromium Framework                  0x00a3e55e ThreadFunc(void*) + 30
	22  libSystem.B.dylib                   0x94564a19 _pthread_start + 345
	23  libSystem.B.dylib                   0x9456489e thread_start + 34

[4859:32263:2574406571891:ERROR:/Users/rdsmith/Sandboxen/chrome/src/base/logging.cc(373)] Not implemented reached in void logging::DisplayDebugMessageInDialog(const std::string&)
rdsmith-macbookpro:../chrome/src $ 

I caught the above under the debugger and went looking around, and the error code in frame 4 is SQLITE_CORRUPT.

Please use labels and text to provide additional information.

Jun 21, 2010
#1 asdfihqf...@gmail.com
Another way to reproduce this problem. Crashes 100% of the time.

What steps will reproduce the problem?
1.  Build chromium on linux from r50268
2.  Run: ./Debug/chrome --user-data-dir=(empty dir)
3.  Uncheck "import setting from..." 
4.  Click "Start Chromium"
5.  Click "keep google as default search..."
6.  Type "hi". Click "google search." (You may need to press ESC to get rid of autocomplete options)
7.  Press CTRL+L. Type "w".

Expect: autocomplete happiness.
Actual: same output as above.
Labels: -Pri-2 -OS-Mac Pri-1 OS-Linux
Jun 23, 2010
#2 evan@chromium.org
Linux + Mac => All
Labels: -OS-Linux OS-All
Jun 24, 2010
#3 mrossetti@chromium.org
I've been able to recreate this problem on the Mac starting with 1) a 'virgin' Chrome install after navigating to an URL and then typing an autocomplete term which occurs in that URL's title, and 2) a 'virgin' Chrome after importing Safari settings and doing an autocomplete term.
Jun 24, 2010
#4 pinkerton@chromium.org
This seems super bad and we should probably find out when this regressed to confirm if it's a dev-channel blocker. Marking as such until we can find how long it's been around.

krisr, can you guys narrow down a window?
Cc: k...@chromium.org da...@chromium.org kr...@chromium.org pinker...@chromium.org
Labels: -Area-Undefined Area-Internals Regression ReleaseBlock-Dev
Jun 24, 2010
#5 j...@chromium.org
+ jcivelli@chromium.org, autocomplete master
Cc: jcive...@chromium.org
Jun 24, 2010
#6 jcive...@chromium.org
I can repro on Windows with the steps reported by erikchen.
It does not look autocomplete (as in page autocomplete) related since in these steps do not trigger page autocomplete.
Since like the Text DB gets corrupted somehow.

Adding Scott and Brett which I believe know about text indexing and DB.

Cc: sh...@chromium.org bre...@chromium.org
Jun 24, 2010
#7 rohi...@chromium.org
We are not able to repro this on Mac Chrome.
Jun 24, 2010
#8 songchro...@gmail.com
It works fine on Chrome 6.0.447.2(b50633)/Ubuntu9.04, 6.0.447.0 (r50594)/WinXP
Jun 24, 2010
#9 evan@chromium.org
Reproed on a trunk Linux build, same stacktrace as in the original report.
[5989:6007:1142620407736:FATAL:./app/sql/diagnostic_error_delegate.h(29)] Check failed: false. sqlite error 11
Backtrace:
        StackTrace::StackTrace() [0x187d0b2]
        logging::LogMessage::~LogMessage() [0x18942b3]
        sql::DiagnosticErrorDelegate<>::OnError() [0xe8787f]
        sql::Connection::OnSqliteError() [0x19480c2]
        sql::Statement::CheckError() [0x194c296]
        sql::Statement::Step() [0x194b29e]
        history::TextDatabase::GetTextMatches() [0x1482804]
        history::TextDatabaseManager::GetTextMatches() [0x1031edb]
        history::HistoryBackend::QueryHistoryFTS() [0x100879e]
        history::HistoryBackend::QueryHistory() [0x100821b]
Jun 24, 2010
#10 evan@chromium.org
(I followed the steps in comment 1)
Jun 24, 2010
#11 mrossetti@chromium.org
Note: The SQLite error is ignored in release builds.  The debug break and error report only occur for debug builds.
Jun 25, 2010
#12 shess@chromium.org
I could repro on Mac this morning.  Will not be able to look at it today, but maybe next week.
Jun 29, 2010
#13 lafo...@chromium.org
Scott, can you please take a look at this ASAP.
Status: Assigned
Owner: sh...@chromium.org
Jul 2, 2010
#14 brettw@chromium.org
Dumi recently changed to using FTS3 which could be related. Some possibilities
- FTS3 has a bug
- FTS3 has a bug reading our old FTS2 databases
- FTS3 writing to a FTS2 database confuses FTS2 if you use an older version
- FTS2 corrupts a FTS3 database if you use an older version
- FTS2 thinks FTS3 databases are corrupted if you made it with a newer version
- etc.
Jul 2, 2010
#15 shess@chromium.org
Wait - I understood that Dumi had integrated FTS3 for stuff being exposed to WebDatabase.  We should NOT be using it for this database.  [Added dumi to CC line.]

Note that fts3 cannot read an fts2 database, nor vice versa, and it won't happen accidentally.  You have to migrate the data over manually.  So this should not happen by accident.
Cc: d...@chromium.org
Jul 2, 2010
#16 mirandac@chromium.org
Compiling with fts2 and using a fresh profile seems to make everything work again.  (Using a fresh profile with fts3, OTOH, does *not* work).
Jul 2, 2010
#17 shess@chromium.org
OK, you made me look.  I had pressed the fts3 change because I understood we were exposing fts to developers, and I didn't want to generate a long-term maintenance problem (once developers are using fts2, how do we force migration to fts3, ever?).  I didn't realize that changes would start landing in our own usage.

I don't think there is anything intrinsically wrong with converting our usage to fts3 for new databases, but such a change should definitely version the database it's made in.

Moving bug to dumi.
Owner: d...@chromium.org
Jul 2, 2010
#18 eroman@chromium.org
I am hitting this all the time while debugging.

I can reproduce it 100% as follows:

(1) Clear user data dir
(2) Do an unclean shutdown of Chrome (for me I am launching chrome under debugger, and then killing the debug target).
(3) Relaunch Chrome.

Kaboom!

[12532:5464:1816608336:FATAL:app/sql/diagnostic_error_delegate.h(29)] Check failed: false. sqlite error 11: database disk image is malformed

I am using a debug built from ToT @ r51435.
Cc: ero...@chromium.org
Jul 2, 2010
#19 eroman@chromium.org
To make my steps a bit clearer (missing a step between (1) and (2)):

(1) Clear user data dir
(2) Launch Chrome
(3) Do an unclean shutdown of Chrome (for me I am launching chrome under debugger, and then killing the debug target).
(4) Relaunch Chrome.
Jul 2, 2010
#20 d...@chromium.org
Looking.

Scott: we don't convert any old DB to fts3, we let them use fts2. However, all new index files are created using fts3. Also, we remove any index file older than 1 year. So basically, in a year, there shouldn't be any fts2 indexes around.
Jul 2, 2010
#21 shess@chromium.org
Mainly I was surprised because I could have assigned this bug to you a
week ago if I had realized that the conversion was underway.
Jul 2, 2010
#22 d...@chromium.org
Oh, sorry about that. I thought I mentioned something about this to you too, but maybe I just talked to Brett...

Will try to figure this out today.
Jul 2, 2010
#23 mirandac@chromium.org
Until this is corrected, if you just change fts3 to fts2 in text_database.cc, you can debug without problems (I was hitting it while debugging as well).
Jul 2, 2010
#24 d...@chromium.org
Found the problem. It's caused by a bug in fts3.patch. I'm diffing fts3.patch against fts2.patch and _carefully_ looking at every single line that's different, to hopefully catch all other similar problems. Will upload a fix later tonight.
Status: Started
Jul 2, 2010
#25 d...@chromium.org
http://codereview.chromium.org/2829042 should fix the problem.

Took a look at the diffs, and didn't find anything else suspicious. Hopefully it's the last fts3-related bug...

And thanks for such good bug reports!
Jul 2, 2010
#26 bugdroid1@gmail.com
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=51584 

------------------------------------------------------------------------
r51584 | dumi@chromium.org | 2010-07-02 18:40:10 -0700 (Fri, 02 Jul 2010) | 7 lines
Changed paths:
   M http://src.chromium.org/viewvc/chrome/trunk/src/third_party/sqlite/ext/fts3/fts3.c?r1=51584&r2=51583
   M http://src.chromium.org/viewvc/chrome/trunk/src/third_party/sqlite/fts3.patch?r1=51584&r2=51583

Fix a fts3 typo/bug.

TEST=crash doesn't seem to happen anymore
BUG=47059


Review URL: http://codereview.chromium.org/2829042
------------------------------------------------------------------------

Jul 2, 2010
#27 d...@chromium.org
Should be fixed now.
Status: Fixed
Mar 18, 2011
#28 lafo...@chromium.org
<b>What steps will reproduce the problem?</b>
1.  Build chromium on the mac from r50325
2.  Nuke the application support directory for Chromium (rm -rf ~/Library/Application\ Support/Chromium)
3.  Startup the browser.
4.  Navigate to a Livejournal account (for which you have access and have visited with another browser on the same computer) friends page
5.  Allow Chromium to use the keychain.
6.  Type in the user name to log in to livejournal and tab.  The password should be auto-filled in.
7.  Hit return to accept the password.  You should be logged in to livejournal.
8.  Quit chromium.
9.  Restart chromium and enter a web address (e.g. www.facebook.com) into the omnibar.  Chromium will usually crash on the first w.

This sequence has worked for me about 4 times out of five, but it did fail once; I suspect that I may have moved too fast and quit from Chromium before the history was saved (happens about every 10 seconds from code inspection.)

<b>What is the expected output? What do you see instead?</b>

Expected: Continuing to let me enter a web address, with auto-complete suggestions.
Actual:

rdsmith-macbookpro:../chrome/src $ xcodebuild/Debug/Chromium.app/Contents/MacOS/Chromium 
[4853:2307:2531386885229:ERROR:/Users/rdsmith/Sandboxen/chrome/src/chrome/browser/first_run_mac.mm(63)] Not implemented reached in static bool FirstRun::ProcessMasterPreferences(const FilePath&amp;, FirstRun::MasterPrefs*)
[4853:20231:2535130251916:WARNING:/Users/rdsmith/Sandboxen/chrome/src/net/base/file_stream_posix.cc(349)] Failed to open file: 2 (/Users/rdsmith/Library/Application Support/Chromium/Default/Last Tabs)
[4853:20995:2536464163346:WARNING:/Users/rdsmith/Sandboxen/chrome/src/net/spdy/spdy_session.cc(942)] Received data frame for invalid stream 1
[4853:20995:2536464243934:WARNING:/Users/rdsmith/Sandboxen/chrome/src/net/spdy/spdy_session.cc(942)] Received data frame for invalid stream 1
[4857:519:2536687179249:ERROR:/Users/rdsmith/Sandboxen/chrome/src/base/platform_thread_mac.mm(68)] pthread_setname_np: Error 22 while retrieving error -1
[4857:15875:2536687748341:ERROR:/Users/rdsmith/Sandboxen/chrome/src/base/platform_thread_mac.mm(68)] pthread_setname_np: Error 22 while retrieving error -1
LEAK: 5 CachedResource
LEAK: 179 WebCoreNode
[4858:519:2563437788781:WARNING:/Users/rdsmith/Sandboxen/chrome/src/chrome/common/resource_dispatcher.cc(499)] unknown request
[4858:519:2563439325343:WARNING:/Users/rdsmith/Sandboxen/chrome/src/chrome/common/resource_dispatcher.cc(278)] Got response for a nonexistant or finished request
rdsmith-macbookpro:../chrome/src $ xcodebuild/Debug/Chromium.app/Contents/MacOS/Chromium 
[4859:32263:2574132678298:FATAL:../app/sql/diagnostic_error_delegate.h(29)] Check failed: false. sqlite error 11
Backtrace:
	0   Chromium Framework                  0x00a104d2 StackTrace::StackTrace() + 32
	1   Chromium Framework                  0x00a29203 logging::LogMessage::~LogMessage() + 63
	2   Chromium Framework                  0x0035ff14 sql::DiagnosticErrorDelegate&lt;(anonymous namespace)::HistogramUniquifier&lt;3ul&gt; &gt;::OnError(int, sql::Connection*, sql::Statement*) + 170
	3   Chromium Framework                  0x00e069cc sql::Connection::OnSqliteError(int, sql::Statement*) + 86
	4   Chromium Framework                  0x00e0ab18 sql::Statement::CheckError(int) + 140
	5   Chromium Framework                  0x00e0bae9 sql::Statement::Step() + 75
	6   Chromium Framework                  0x005028b2 history::TextDatabase::GetTextMatches(std::string const&amp;, history::QueryOptions const&amp;, std::vector&lt;history::TextDatabase::Match, std::allocator&lt;history::TextDatabase::Match&gt; &gt;*, std::set&lt;GURL, std::less&lt;GURL&gt;, std::allocator&lt;GURL&gt; &gt;*, base::Time*) + 1274
	7   Chromium Framework                  0x00505a16 history::TextDatabaseManager::GetTextMatches(std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; const&amp;, history::QueryOptions const&amp;, std::vector&lt;history::TextDatabase::Match, std::allocator&lt;history::TextDatabase::Match&gt; &gt;*, base::Time*) + 600
	8   Chromium Framework                  0x004d8e1d history::HistoryBackend::QueryHistoryFTS(std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; const&amp;, history::QueryOptions const&amp;, history::QueryResults*) + 139
	9   Chromium Framework                  0x004d94d9 history::HistoryBackend::QueryHistory(scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; const&amp;, history::QueryOptions const&amp;) + 327
	10  Chromium Framework                  0x004cc4a0 void DispatchToMethod&lt;history::HistoryBackend, void (history::HistoryBackend::*)(scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; const&amp;, history::QueryOptions const&amp;), scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt;, history::QueryOptions&gt;(history::HistoryBackend*, void (history::HistoryBackend::*)(scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; const&amp;, history::QueryOptions const&amp;), Tuple3&lt;scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt;, history::QueryOptions&gt; const&amp;) + 105
	11  Chromium Framework                  0x004cc4eb RunnableMethod&lt;history::HistoryBackend, void (history::HistoryBackend::*)(scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; const&amp;, history::QueryOptions const&amp;), Tuple3&lt;scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt;, history::QueryOptions&gt; &gt;::Run() + 57
	12  Chromium Framework                  0x00a2e601 MessageLoop::RunTask(Task*) + 315
	13  Chromium Framework                  0x00a2e6b1 MessageLoop::DeferOrRunPendingTask(MessageLoop::PendingTask const&amp;) + 53
	14  Chromium Framework                  0x00a2e941 MessageLoop::DoWork() + 253
	15  Chromium Framework                  0x00a362d7 base::MessagePumpDefault::Run(base::MessagePump::Delegate*) + 223
	16  Chromium Framework                  0x00a2f14c MessageLoop::RunInternal() + 212
	17  Chromium Framework                  0x00a2f167 MessageLoop::RunHandler() + 17
	18  Chromium Framework                  0x00a2f1cb MessageLoop::Run() + 35
	19  Chromium Framework                  0x00a61aad base::Thread::Run(MessageLoop*) + 17
	20  Chromium Framework                  0x00a61f5f base::Thread::ThreadMain() + 337
	21  Chromium Framework                  0x00a3e55e ThreadFunc(void*) + 30
	22  libSystem.B.dylib                   0x94564a19 _pthread_start + 345
	23  libSystem.B.dylib                   0x9456489e thread_start + 34

[4859:32263:2574406571891:ERROR:/Users/rdsmith/Sandboxen/chrome/src/base/logging.cc(373)] Not implemented reached in void logging::DisplayDebugMessageInDialog(const std::string&amp;)
rdsmith-macbookpro:../chrome/src $ 

I caught the above under the debugger and went looking around, and the error code in frame 4 is SQLITE_CORRUPT.

<b>Please use labels and text to provide additional information.</b>
Labels: -Regression bulkmove Type-Regression
Mar 18, 2011
#29 lafo...@chromium.org
<b>What steps will reproduce the problem?</b>
1.  Build chromium on the mac from r50325
2.  Nuke the application support directory for Chromium (rm -rf ~/Library/Application\ Support/Chromium)
3.  Startup the browser.
4.  Navigate to a Livejournal account (for which you have access and have visited with another browser on the same computer) friends page
5.  Allow Chromium to use the keychain.
6.  Type in the user name to log in to livejournal and tab.  The password should be auto-filled in.
7.  Hit return to accept the password.  You should be logged in to livejournal.
8.  Quit chromium.
9.  Restart chromium and enter a web address (e.g. www.facebook.com) into the omnibar.  Chromium will usually crash on the first w.

This sequence has worked for me about 4 times out of five, but it did fail once; I suspect that I may have moved too fast and quit from Chromium before the history was saved (happens about every 10 seconds from code inspection.)

<b>What is the expected output? What do you see instead?</b>

Expected: Continuing to let me enter a web address, with auto-complete suggestions.
Actual:

rdsmith-macbookpro:../chrome/src $ xcodebuild/Debug/Chromium.app/Contents/MacOS/Chromium 
[4853:2307:2531386885229:ERROR:/Users/rdsmith/Sandboxen/chrome/src/chrome/browser/first_run_mac.mm(63)] Not implemented reached in static bool FirstRun::ProcessMasterPreferences(const FilePath&amp;, FirstRun::MasterPrefs*)
[4853:20231:2535130251916:WARNING:/Users/rdsmith/Sandboxen/chrome/src/net/base/file_stream_posix.cc(349)] Failed to open file: 2 (/Users/rdsmith/Library/Application Support/Chromium/Default/Last Tabs)
[4853:20995:2536464163346:WARNING:/Users/rdsmith/Sandboxen/chrome/src/net/spdy/spdy_session.cc(942)] Received data frame for invalid stream 1
[4853:20995:2536464243934:WARNING:/Users/rdsmith/Sandboxen/chrome/src/net/spdy/spdy_session.cc(942)] Received data frame for invalid stream 1
[4857:519:2536687179249:ERROR:/Users/rdsmith/Sandboxen/chrome/src/base/platform_thread_mac.mm(68)] pthread_setname_np: Error 22 while retrieving error -1
[4857:15875:2536687748341:ERROR:/Users/rdsmith/Sandboxen/chrome/src/base/platform_thread_mac.mm(68)] pthread_setname_np: Error 22 while retrieving error -1
LEAK: 5 CachedResource
LEAK: 179 WebCoreNode
[4858:519:2563437788781:WARNING:/Users/rdsmith/Sandboxen/chrome/src/chrome/common/resource_dispatcher.cc(499)] unknown request
[4858:519:2563439325343:WARNING:/Users/rdsmith/Sandboxen/chrome/src/chrome/common/resource_dispatcher.cc(278)] Got response for a nonexistant or finished request
rdsmith-macbookpro:../chrome/src $ xcodebuild/Debug/Chromium.app/Contents/MacOS/Chromium 
[4859:32263:2574132678298:FATAL:../app/sql/diagnostic_error_delegate.h(29)] Check failed: false. sqlite error 11
Backtrace:
	0   Chromium Framework                  0x00a104d2 StackTrace::StackTrace() + 32
	1   Chromium Framework                  0x00a29203 logging::LogMessage::~LogMessage() + 63
	2   Chromium Framework                  0x0035ff14 sql::DiagnosticErrorDelegate&lt;(anonymous namespace)::HistogramUniquifier&lt;3ul&gt; &gt;::OnError(int, sql::Connection*, sql::Statement*) + 170
	3   Chromium Framework                  0x00e069cc sql::Connection::OnSqliteError(int, sql::Statement*) + 86
	4   Chromium Framework                  0x00e0ab18 sql::Statement::CheckError(int) + 140
	5   Chromium Framework                  0x00e0bae9 sql::Statement::Step() + 75
	6   Chromium Framework                  0x005028b2 history::TextDatabase::GetTextMatches(std::string const&amp;, history::QueryOptions const&amp;, std::vector&lt;history::TextDatabase::Match, std::allocator&lt;history::TextDatabase::Match&gt; &gt;*, std::set&lt;GURL, std::less&lt;GURL&gt;, std::allocator&lt;GURL&gt; &gt;*, base::Time*) + 1274
	7   Chromium Framework                  0x00505a16 history::TextDatabaseManager::GetTextMatches(std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; const&amp;, history::QueryOptions const&amp;, std::vector&lt;history::TextDatabase::Match, std::allocator&lt;history::TextDatabase::Match&gt; &gt;*, base::Time*) + 600
	8   Chromium Framework                  0x004d8e1d history::HistoryBackend::QueryHistoryFTS(std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; const&amp;, history::QueryOptions const&amp;, history::QueryResults*) + 139
	9   Chromium Framework                  0x004d94d9 history::HistoryBackend::QueryHistory(scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; const&amp;, history::QueryOptions const&amp;) + 327
	10  Chromium Framework                  0x004cc4a0 void DispatchToMethod&lt;history::HistoryBackend, void (history::HistoryBackend::*)(scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; const&amp;, history::QueryOptions const&amp;), scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt;, history::QueryOptions&gt;(history::HistoryBackend*, void (history::HistoryBackend::*)(scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; const&amp;, history::QueryOptions const&amp;), Tuple3&lt;scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt;, history::QueryOptions&gt; const&amp;) + 105
	11  Chromium Framework                  0x004cc4eb RunnableMethod&lt;history::HistoryBackend, void (history::HistoryBackend::*)(scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt; const&amp;, history::QueryOptions const&amp;), Tuple3&lt;scoped_refptr&lt;CancelableRequest1&lt;CallbackRunner&lt;Tuple2&lt;int, history::QueryResults*&gt; &gt;, history::QueryResults&gt; &gt;, std::basic_string&lt;wchar_t, std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt;, history::QueryOptions&gt; &gt;::Run() + 57
	12  Chromium Framework                  0x00a2e601 MessageLoop::RunTask(Task*) + 315
	13  Chromium Framework                  0x00a2e6b1 MessageLoop::DeferOrRunPendingTask(MessageLoop::PendingTask const&amp;) + 53
	14  Chromium Framework                  0x00a2e941 MessageLoop::DoWork() + 253
	15  Chromium Framework                  0x00a362d7 base::MessagePumpDefault::Run(base::MessagePump::Delegate*) + 223
	16  Chromium Framework                  0x00a2f14c MessageLoop::RunInternal() + 212
	17  Chromium Framework                  0x00a2f167 MessageLoop::RunHandler() + 17
	18  Chromium Framework                  0x00a2f1cb MessageLoop::Run() + 35
	19  Chromium Framework                  0x00a61aad base::Thread::Run(MessageLoop*) + 17
	20  Chromium Framework                  0x00a61f5f base::Thread::ThreadMain() + 337
	21  Chromium Framework                  0x00a3e55e ThreadFunc(void*) + 30
	22  libSystem.B.dylib                   0x94564a19 _pthread_start + 345
	23  libSystem.B.dylib                   0x9456489e thread_start + 34

[4859:32263:2574406571891:ERROR:/Users/rdsmith/Sandboxen/chrome/src/base/logging.cc(373)] Not implemented reached in void logging::DisplayDebugMessageInDialog(const std::string&amp;)
rdsmith-macbookpro:../chrome/src $ 

I caught the above under the debugger and went looking around, and the error code in frame 4 is SQLITE_CORRUPT.

<b>Please use labels and text to provide additional information.</b>
Labels: -Crash Stability-Crash
Oct 12, 2012
#30 bugdroid1@chromium.org
This issue has been closed for some time. No one will pay attention to new comments.
If you are seeing this bug or have new data, please click New Issue to start a new bug.
Labels: Restrict-AddIssueComment-Commit
Mar 9, 2013
#31 bugdroid1@chromium.org
(No comment was entered for this change.)
Labels: -Area-Internals -Type-Regression Cr-Internals Type-Bug-Regression
Sign in to add a comment

Powered by Google Project Hosting