My favorites | Sign in
Project Home Downloads Wiki Issues Code Search
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 50537: AutoFillManagerTest.GetProfileSuggestionsEmptyValue crashes in official builds
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  georgey@chromium.org
Closed:  Aug 2010
Cc:  dhollowa@chromium.org, rohitrao@chromium.org, j...@chromium.org
M-6

Restricted
  • Only users with EditIssue permission may comment.


Sign in to add a comment
 
Project Member Reported by rohitrao@chromium.org, Jul 28, 2010
AutoFillManagerTest.GetProfileSuggestionsEmptyValue crashes.  I am able to reproduce this locally.  Email me if you need directions on how to set up a local official build.

Looks like it crashes on all platforms.

[96255:2307:0727/211853:1149669133686808:ERROR:/b/slave/chrome-official-mac/build/src/chrome/common/json_pref_store.cc(44)] Error reading Preferences: File doesn't exist. /var/folders/WQ/WQoFL9NVG1Wi1YGeJKauuU+++TI/-Tmp-/TestingProfilePath/TestPreferences: No such file or directory
[96255:2307:0727/211853:1149669134778865:FATAL:/b/slave/chrome-official-mac/build/src/chrome/common/net/url_fetcher.cc(157)] Check failed: request_context_getter_. We need an URLRequestContext!
[96255:2307:0727/211853:1149669134778865:FATAL:/b/slave/chrome-official-mac/build/src/chrome/common/net/url_fetcher.cc(157)] Check failed: request_context_getter_. We need an URLRequestContext!

Jul 28, 2010
#1 rohitrao@chromium.org
The offending lines are in AutoFillDownloadManager::StartRequest():

  if (!request_url.compare(DISABLED_REQUEST_URL) && !is_testing_) {
    // We have it disabled - return true as if it succeeded, but do nothing.     
    return true;
  }

In branded builds, request_url is never equal to DISABLED_REQUEST_URL, so we never exit early.  We continue on to actually fetch the url, which leads to the crash.  We couldn't figure out what the intent of this code snippet was.  It sounds like we do not special-case unittests, so we should not be returning early in tests.  However, because the disabled url test triggers, we do in fact return early for non-branded tests.  Two possibilities come to mind:

1) We should be returning early for _all_ unittests.
2) We should never be returning early in unittests, in which case all of the non-branded tests are broken and do not do what we think they're doing.

I've written up a CL to disable all of the AutoFillManagerTest tests in branded builds, because crashy tests are worse than no tests.
Owner: jhawk...@chromium.org
Jul 29, 2010
#2 bugdroid1@gmail.com
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=54054 

------------------------------------------------------------------------
r54054 | rohitrao@chromium.org | 2010-07-28 15:53:09 -0700 (Wed, 28 Jul 2010) | 5 lines
Changed paths:
   M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/autofill/autofill_manager_unittest.cc?r1=54054&r2=54053

Disable AutoFillManagerTest tests in branded builds.

BUG=50537
TEST=Should not crash on official builds.
Review URL: http://codereview.chromium.org/3032034
------------------------------------------------------------------------

Jul 29, 2010
#3 bugdroid1@gmail.com
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=54088 

------------------------------------------------------------------------
r54088 | rohitrao@chromium.org | 2010-07-28 18:31:43 -0700 (Wed, 28 Jul 2010) | 8 lines
Changed paths:
   M http://src.chromium.org/viewvc/chrome/branches/472/src/chrome/browser/autofill/autofill_manager_unittest.cc?r1=54088&r2=54087

Merge 54054 - Disable AutoFillManagerTest tests in branded builds.

BUG=50537
TEST=Should not crash on official builds.
Review URL: http://codereview.chromium.org/3032034

TBR=rohitrao@chromium.org
Review URL: http://codereview.chromium.org/2806089
------------------------------------------------------------------------

Jul 30, 2010
#4 dhollowa@chromium.org
Fixes have been merged.  But I'm leaving this open while we investigate fixing the tests properly.
Jul 30, 2010
#5 bugdroid1@gmail.com
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=54340 

------------------------------------------------------------------------
r54340 | rohitrao@chromium.org | 2010-07-30 10:45:27 -0700 (Fri, 30 Jul 2010) | 5 lines
Changed paths:
   M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/autofill/autofill_manager_unittest.cc?r1=54340&r2=54339

Exclude AutoFillManagerTest.GetBillingSuggestionsAddress1 from running in branded builds.

BUG=50537
TEST=unit_tests should pass in branded builds.
Review URL: http://codereview.chromium.org/3068013
------------------------------------------------------------------------

Jul 30, 2010
#6 bugdroid1@gmail.com
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=54347 

------------------------------------------------------------------------
r54347 | rohitrao@chromium.org | 2010-07-30 11:19:17 -0700 (Fri, 30 Jul 2010) | 8 lines
Changed paths:
   M http://src.chromium.org/viewvc/chrome/branches/472/src/chrome/browser/autofill/autofill_manager_unittest.cc?r1=54347&r2=54346

Merge 54340 - Exclude AutoFillManagerTest.GetBillingSuggestionsAddress1 from running in branded builds.

BUG=50537
TEST=unit_tests should pass in branded builds.
Review URL: http://codereview.chromium.org/3068013

TBR=rohitrao@chromium.org
Review URL: http://codereview.chromium.org/3026037
------------------------------------------------------------------------

Aug 12, 2010
#7 dhollowa@chromium.org
(No comment was entered for this change.)
Owner: geor...@chromium.org
Labels: Feature-Autofill Mstone-7
Aug 12, 2010
#8 dhollowa@chromium.org
(No comment was entered for this change.)
Status: Assigned
Aug 17, 2010
#9 bugdroid1@gmail.com
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=56435 

------------------------------------------------------------------------
r56435 | georgey@chromium.org | 2010-08-17 15:44:29 -0700 (Tue, 17 Aug 2010) | 5 lines
Changed paths:
   M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/autofill/autofill_manager.cc?r1=56435&r2=56434
   M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/autofill/autofill_manager.h?r1=56435&r2=56434
   M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/autofill/autofill_manager_unittest.cc?r1=56435&r2=56434

AutoFillManagerTest.GetProfileSuggestionsEmptyValue crashes in official builds
BUG=50537
TEST=In the bug: unit test should work on any brand.

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

Aug 17, 2010
#10 georgey@chromium.org
(No comment was entered for this change.)
Status: Fixed
Aug 18, 2010
#11 dhollowa@chromium.org
Merging to 472 for additional coverage, particularly on branded builds.
Labels: -Mstone-7 Mstone-6
Aug 18, 2010
#12 bugdroid1@gmail.com
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=56553 

------------------------------------------------------------------------
r56553 | dhollowa@chromium.org | 2010-08-18 10:32:08 -0700 (Wed, 18 Aug 2010) | 8 lines
Changed paths:
   M http://src.chromium.org/viewvc/chrome/branches/472/src/chrome/browser/autofill/autofill_manager.cc?r1=56553&r2=56552
   M http://src.chromium.org/viewvc/chrome/branches/472/src/chrome/browser/autofill/autofill_manager.h?r1=56553&r2=56552
   M http://src.chromium.org/viewvc/chrome/branches/472/src/chrome/browser/autofill/autofill_manager_unittest.cc?r1=56553&r2=56552

Merge 56435 - AutoFillManagerTest.GetProfileSuggestionsEmptyValue crashes in official builds
BUG=50537
TEST=In the bug: unit test should work on any brand.

Review URL: http://codereview.chromium.org/3160022

TBR=georgey@chromium.org
Review URL: http://codereview.chromium.org/3157025
------------------------------------------------------------------------

Mar 18, 2011
#13 lafo...@chromium.org
AutoFillManagerTest.GetProfileSuggestionsEmptyValue crashes.  I am able to reproduce this locally.  Email me if you need directions on how to set up a local official build.

Looks like it crashes on all platforms.

[96255:2307:0727/211853:1149669133686808:ERROR:/b/slave/chrome-official-mac/build/src/chrome/common/json_pref_store.cc(44)] Error reading Preferences: File doesn't exist. /var/folders/WQ/WQoFL9NVG1Wi1YGeJKauuU+++TI/-Tmp-/TestingProfilePath/TestPreferences: No such file or directory
[96255:2307:0727/211853:1149669134778865:FATAL:/b/slave/chrome-official-mac/build/src/chrome/common/net/url_fetcher.cc(157)] Check failed: request_context_getter_. We need an URLRequestContext!
[96255:2307:0727/211853:1149669134778865:FATAL:/b/slave/chrome-official-mac/build/src/chrome/common/net/url_fetcher.cc(157)] Check failed: request_context_getter_. We need an URLRequestContext!
Labels: -Area-BuildTools bulkmove Area-Build
Oct 12, 2012
#14 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
Blocking: -chromium:50469 -chromium:50472 chromium:50469 chromium:50472
Mar 9, 2013
#15 bugdroid1@chromium.org
(No comment was entered for this change.)
Labels: -Area-Internals -Feature-Autofill -Mstone-6 -Area-Build M-6 Cr-Internals Cr-UI-Browser-Autofill Build
Mar 13, 2013
#16 bugdroid1@chromium.org
(No comment was entered for this change.)
Labels: -Restrict-AddIssueComment-Commit Restrict-AddIssueComment-EditIssue
Sign in to add a comment

Powered by Google Project Hosting