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

Issue 8676: By default disable the general protection fault message box when... (Closed)

Created:
12 years, 1 month ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

By default disable the general protection fault message box when running tests on Windows. This requires Added the option --win-error-box to enable general protection fault message box which can be convenient when debugging failing tests on Windows. Added crash detection when running tests on Windows. The output is not fully polished but crashed indications are printed for the different progess indicators. Changed the OS::Abort on Windows from generating a "crash" (int3) to calling abort(). This is to avoid tests which are known to fail with out of memory errors to be detected as crashed tests. Committed: http://code.google.com/p/v8/source/detail?r=633

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -9 lines) Patch
M src/platform-win32.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M tools/test.py View 1 2 12 chunks +54 lines, -6 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Søren Thygesen Gjesse
12 years, 1 month ago (2008-10-28 20:59:58 UTC) #1
Nicolas Sylvain
http://codereview.chromium.org/8676/diff/1/3 File src/platform-win32.cc (right): http://codereview.chromium.org/8676/diff/1/3#newcode786 Line 786: abort(); AFAIK abort is not going to work ...
12 years, 1 month ago (2008-10-28 21:45:38 UTC) #2
sgjesse_gmail.com
http://codereview.chromium.org/8676/diff/1/3 File src/platform-win32.cc (right): http://codereview.chromium.org/8676/diff/1/3#newcode786 Line 786: abort(); On 2008/10/28 21:45:38, Nicolas Sylvain wrote: > ...
12 years, 1 month ago (2008-10-28 22:15:57 UTC) #3
sgjesse_gmail.com
http://codereview.chromium.org/8676/diff/1/3 File src/platform-win32.cc (right): http://codereview.chromium.org/8676/diff/1/3#newcode786 Line 786: abort(); On 2008/10/28 22:15:57, sgjesse wrote: > On ...
12 years, 1 month ago (2008-10-28 22:18:17 UTC) #4
Christian Plesner Hansen
There's a few bugs that have to be fixed before you can submit. Otherwise lgtm. ...
12 years, 1 month ago (2008-10-29 07:53:43 UTC) #5
Søren Thygesen Gjesse
12 years, 1 month ago (2008-10-29 09:03:50 UTC) #6
New snapshot please take a look.

http://codereview.chromium.org/8676/diff/205/8
File src/platform-win32.cc (right):

http://codereview.chromium.org/8676/diff/205/8#newcode785
Line 785: _set_abort_behavior(0, _WRITE_ABORT_MSG);
On 2008/10/29 07:53:43, Christian Plesner Hansen wrote:
> How about making this conditional on a command-line flag -- always overriding
> these seems questionable.

I think it is OK to do supress the abort message. All the places in the code
that calls OS::Abort() already has printed the cause of the abort, and having
the MSVCRT add an additional "This application has requested the Runtime to
terminate it in an unusual way. Please contact the application's support team
for more information." seems weird. AFAIK Linux does not print anything when
abort() is called.

http://codereview.chromium.org/8676/diff/205/7
File tools/test.py (right):

http://codereview.chromium.org/8676/diff/205/7#newcode175
Line 175: if len(self.crashed) > 0:
On 2008/10/29 07:53:43, Christian Plesner Hansen wrote:
> You never use the contents of the crashed list, only its length.  You could
use
> a counter instead.

Changed to a counter. Details on the crashed tests can be found in the failed
list if we where to print details no these.

http://codereview.chromium.org/8676/diff/205/7#newcode176
Line 176: print "=== %i tests CRASHED" % len(self.failed)
On 2008/10/29 07:53:43, Christian Plesner Hansen wrote:
> I think you mean len(self.crashed).

Fixed.

http://codereview.chromium.org/8676/diff/205/7#newcode404
Line 404: except:
On 2008/10/29 07:53:43, Christian Plesner Hansen wrote:
> Catchall exception handlers in python are extremely evil.  You should only
catch
> the kind of exceptions you expect, in this case ImportError.

Changed to catch only ImportError.

http://codereview.chromium.org/8676/diff/205/7#newcode405
Line 405: Pass
On 2008/10/29 07:53:43, Christian Plesner Hansen wrote:
> It's 'pass', not 'Pass'.  Ahem, did you test this?

Fixed. I did test it when I used "None" instead of "Pass".

http://codereview.chromium.org/8676/diff/205/7#newcode1075
Line 1075: result.add_option("--win-error-box", help="Display the Windows
general protection fault message box",
On 2008/10/29 07:53:43, Christian Plesner Hansen wrote:
> How about only adding this if we're actually on windows, and then removing the
> win- part of the name.  Also, I think error-box is a somewhat confusing name;
> maybe something like --suppress-dialogs would be better?

Agree that --suppress-dialogs is a much better name. Defaults to True with the
additional option --no-suppress-dialogs to turn it off. Only available on
Windows.

Powered by Google App Engine
This is Rietveld 408576698