Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Issue 340017: Fix the crashes in interactive_ui_tests on Linux.... (Closed)

Created:
11 years, 1 month ago by jam
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org
Visibility:
Public.

Description

Fix the crashes in interactive_ui_tests on Linux. The cause is really subtle. When I added a db_thread() in BrowserMain, that changed the order that threads were created at. Since interactive ui tests don't run atexitmanager (I filed a bug to make them do), this cascaded into file_posix.cc's InFlightIO singelton caching the first IO MessageLoop pointer. By fluke, previously each IO ML would have the exact same pointer value (must be a unique size for the allocator). My change modified the construction order, so the second run would have a different ChromeThread (file) get the previous IO thread's ML pointer. That led to the asserts. I have added code to start the threads in a predictable manner for now. BUG=25354 TEST=interactive_ui_tests in Linux stop crashing Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30303

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M chrome/browser/browser_main.cc View 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jam
11 years, 1 month ago (2009-10-28 00:22:27 UTC) #1
jam
I'm going to check this in TBR to get the bot green. Will do any ...
11 years, 1 month ago (2009-10-28 01:12:17 UTC) #2
darin (slow to review)
OK, LGTM Did this have any impact on startup time?
11 years, 1 month ago (2009-10-28 05:44:51 UTC) #3
jam
11 years, 1 month ago (2009-10-28 18:21:38 UTC) #4
On Tue, Oct 27, 2009 at 10:44 PM, <darin@chromium.org> wrote:

> OK, LGTM
>
> Did this have any impact on startup time?


All the these threads were getting constructed at startup before, I just
made them start in a specific order at once.  I just looked at the perf
tests and I don't see any regressions.


>
> http://codereview.chromium.org/340017
>

Powered by Google App Engine
This is Rietveld 408576698