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

Issue 553043002: Fix crash in ScriptDebugServer::wrapCallFrames (Closed)

Created:
6 years, 3 months ago by aandrey
Modified:
6 years, 3 months ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Fix crash in ScriptDebugServer::wrapCallFrames The crash happens in DebugEventListener that gets called for an unhandled exception thrown by TryCatch.ReThrow(). In DevTools some parts of DebugEventListener are implemented in JavaScript, thus we should allow JavaScript execution while handling ReThrow exception in debugger. BUG=411196 LOG=Y R=yangguo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=23858

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 7

Patch Set 3 : addressed #

Total comments: 8

Patch Set 4 : addressed #

Patch Set 5 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -1 line) Patch
M src/debug.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M test/cctest/test-debug.cc View 1 2 3 4 3 chunks +48 lines, -1 line 0 comments Download

Messages

Total messages: 19 (2 generated)
aandrey
PTAL
6 years, 3 months ago (2014-09-10 14:18:08 UTC) #2
Yang
LGTM with comment. https://codereview.chromium.org/553043002/diff/20001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/553043002/diff/20001/src/isolate.cc#newcode1036 src/isolate.cc:1036: clear_scheduled_exception(); Can we put this into ...
6 years, 3 months ago (2014-09-10 14:46:13 UTC) #3
aandrey
https://codereview.chromium.org/553043002/diff/20001/test/cctest/test-debug.cc File test/cctest/test-debug.cc (right): https://codereview.chromium.org/553043002/diff/20001/test/cctest/test-debug.cc#newcode4019 test/cctest/test-debug.cc:4019: CHECK_EQ(1, message_callback_count); // FIXME: Should it be 2 ? ...
6 years, 3 months ago (2014-09-10 14:51:19 UTC) #4
Yang
https://codereview.chromium.org/553043002/diff/20001/test/cctest/test-debug.cc File test/cctest/test-debug.cc (right): https://codereview.chromium.org/553043002/diff/20001/test/cctest/test-debug.cc#newcode4019 test/cctest/test-debug.cc:4019: CHECK_EQ(1, message_callback_count); // FIXME: Should it be 2 ? ...
6 years, 3 months ago (2014-09-10 14:56:30 UTC) #5
aandrey
https://codereview.chromium.org/553043002/diff/20001/test/cctest/test-debug.cc File test/cctest/test-debug.cc (right): https://codereview.chromium.org/553043002/diff/20001/test/cctest/test-debug.cc#newcode4019 test/cctest/test-debug.cc:4019: CHECK_EQ(1, message_callback_count); // FIXME: Should it be 2 ? ...
6 years, 3 months ago (2014-09-10 15:01:53 UTC) #6
Yang
you are right. I overlooked that the message counter was already 1 before the TryCatch ...
6 years, 3 months ago (2014-09-10 15:12:36 UTC) #7
aandrey
Yang, PTAL. Should we land this with the FIXME in the test? I checked that ...
6 years, 3 months ago (2014-09-11 05:48:29 UTC) #8
aandrey
6 years, 3 months ago (2014-09-11 06:05:42 UTC) #10
Yang
https://codereview.chromium.org/553043002/diff/40001/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/553043002/diff/40001/src/debug.cc#newcode2511 src/debug.cc:2511: Object* scheduled_exception = isolate_->scheduled_exception(); I just realized that this ...
6 years, 3 months ago (2014-09-11 07:26:05 UTC) #11
aandrey
https://codereview.chromium.org/553043002/diff/40001/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/553043002/diff/40001/src/debug.cc#newcode2511 src/debug.cc:2511: Object* scheduled_exception = isolate_->scheduled_exception(); On 2014/09/11 07:26:05, Yang wrote: ...
6 years, 3 months ago (2014-09-11 08:20:24 UTC) #12
Yang
https://codereview.chromium.org/553043002/diff/40001/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/553043002/diff/40001/src/debug.cc#newcode2511 src/debug.cc:2511: Object* scheduled_exception = isolate_->scheduled_exception(); Also, this getter asserts that ...
6 years, 3 months ago (2014-09-11 08:26:21 UTC) #13
Yang
On 2014/09/11 08:20:24, aandrey wrote: > https://codereview.chromium.org/553043002/diff/40001/src/debug.cc > File src/debug.cc (right): > > https://codereview.chromium.org/553043002/diff/40001/src/debug.cc#newcode2511 > ...
6 years, 3 months ago (2014-09-11 08:26:56 UTC) #14
aandrey
> GC explicitly visits those values. I guess in Isolate::Iterate(ObjectVisitor*, ThreadLocalTop*) ?
6 years, 3 months ago (2014-09-11 08:32:58 UTC) #15
Yang
On 2014/09/11 08:32:58, aandrey wrote: > > GC explicitly visits those values. > > I ...
6 years, 3 months ago (2014-09-11 08:34:27 UTC) #16
aandrey
https://codereview.chromium.org/553043002/diff/40001/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/553043002/diff/40001/src/debug.cc#newcode2511 src/debug.cc:2511: Object* scheduled_exception = isolate_->scheduled_exception(); On 2014/09/11 08:26:21, Yang wrote: ...
6 years, 3 months ago (2014-09-11 08:47:22 UTC) #17
Yang
On 2014/09/11 08:47:22, aandrey wrote: > https://codereview.chromium.org/553043002/diff/40001/src/debug.cc > File src/debug.cc (right): > > https://codereview.chromium.org/553043002/diff/40001/src/debug.cc#newcode2511 > ...
6 years, 3 months ago (2014-09-11 09:16:11 UTC) #18
aandrey
6 years, 3 months ago (2014-09-11 09:43:38 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as 23858 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698