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

Issue 1405243002: Fix CRITICAL_SECTION test (Closed)

Created:
5 years, 2 months ago by scottmg
Modified:
5 years, 2 months ago
Reviewers:
Mark Mentovai
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

Fix CRITICAL_SECTION test I thought I had confirmed that this still allocated and ignored the flag on older OSs, but I must have not had the PLOG active yet? I'm not sure what I did. (I might try to blame VMware as it has an annoying habit of caching old binaries when you use it's "Shared Folders" feature to point at the dev machine's build dir.) I confirmed that it does work on Win8 and Win10 but doesn't on Win XP and Win 7. R=mark@chromium.org BUG=crashpad:52 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/d1e49bd221d8584b77566da52ffc293203360c3d

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Total comments: 8

Patch Set 5 : fixes #

Patch Set 6 : comment #

Total comments: 4

Patch Set 7 : . #

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -59 lines) Patch
M client/crashpad_client_win.cc View 1 2 3 4 3 chunks +3 lines, -18 lines 0 comments Download
M handler/handler.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M handler/win/crashy_test_program.cc View 1 2 3 3 chunks +5 lines, -15 lines 0 comments Download
M snapshot/win/end_to_end_test.py View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M util/util.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M util/util_test.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + util/win/critical_section_with_debug_info.h View 1 2 3 4 5 6 1 chunk +10 lines, -13 lines 0 comments Download
A util/win/critical_section_with_debug_info.cc View 1 2 3 4 5 6 7 1 chunk +76 lines, -0 lines 0 comments Download
A + util/win/critical_section_with_debug_info_test.cc View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M util/win/registration_protocol_win.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
scottmg
5 years, 2 months ago (2015-10-16 00:44:05 UTC) #1
Mark Mentovai
We also need to avoid the PLOG in crashpad_client_win.cc, or avoid calling CrashpadInitializeCriticalSectionEx() altogether when ...
5 years, 2 months ago (2015-10-16 03:36:44 UTC) #2
scottmg
Ended up installing and configuring all those VMs after all! Reworked to factor out the ...
5 years, 2 months ago (2015-10-16 19:29:00 UTC) #6
Mark Mentovai
https://codereview.chromium.org/1405243002/diff/120001/client/crashpad_client_win.cc File client/crashpad_client_win.cc (right): https://codereview.chromium.org/1405243002/diff/120001/client/crashpad_client_win.cc#newcode153 client/crashpad_client_win.cc:153: PLOG(ERROR) << "InitializeCriticalSectionWithDebugInfoIfPossible"; I think you should move this ...
5 years, 2 months ago (2015-10-16 19:42:47 UTC) #7
scottmg
https://codereview.chromium.org/1405243002/diff/120001/client/crashpad_client_win.cc File client/crashpad_client_win.cc (right): https://codereview.chromium.org/1405243002/diff/120001/client/crashpad_client_win.cc#newcode153 client/crashpad_client_win.cc:153: PLOG(ERROR) << "InitializeCriticalSectionWithDebugInfoIfPossible"; On 2015/10/16 19:42:47, Mark Mentovai wrote: ...
5 years, 2 months ago (2015-10-16 20:04:11 UTC) #8
Mark Mentovai
LGTM. You're right about GetLastError(). That GetProcAddress(LoadLibrary()) construct has become so familiar that I don't ...
5 years, 2 months ago (2015-10-16 21:47:41 UTC) #9
scottmg
On 2015/10/16 21:47:41, Mark Mentovai wrote: > LGTM. > > You're right about GetLastError(). That ...
5 years, 2 months ago (2015-10-16 21:53:41 UTC) #10
scottmg
https://codereview.chromium.org/1405243002/diff/160001/handler/win/crashy_test_program.cc File handler/win/crashy_test_program.cc (right): https://codereview.chromium.org/1405243002/diff/160001/handler/win/crashy_test_program.cc#newcode27 handler/win/crashy_test_program.cc:27: #include "util/win/critical_section_with_debug_info.h" On 2015/10/16 21:47:41, Mark Mentovai wrote: > ...
5 years, 2 months ago (2015-10-16 21:53:45 UTC) #11
scottmg
Committed patchset #8 (id:200001) manually as d1e49bd221d8584b77566da52ffc293203360c3d (presubmit successful).
5 years, 2 months ago (2015-10-16 21:55:20 UTC) #12
Mark Mentovai
5 years, 2 months ago (2015-10-16 23:19:20 UTC) #13
Message was sent while issue was closed.
scottmg wrote:
> Ended up installing and configuring all those VMs after all!

Yeah, why should I be the only one with ten VMs on a laptop?

(Only two of them are Windows. So far.)

Powered by Google App Engine
This is Rietveld 408576698