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

Issue 2815863002: Detect unhandled exceptions in async functions without an awaiter (Closed)

Created:
3 years, 8 months ago by Cutch
Modified:
3 years, 8 months ago
Reviewers:
rmacnak, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Detect unhandled exceptions in async functions without an awaiter - [x] Produce an awaiter stack trace even when there is no awaiter. - [x] Fix fetching the saved context from Closure.call (fixes --trace_debugger_stacktrace) Fixes #29200 Example code: ``` main(List<String> args) async { var f = new Foo(); print(f.a.length); print('Should not get here'); } class Foo { String a; } ``` BUG= R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/f0734f99b3c948d53130419c3d5c3666a0578a67

Patch Set 1 #

Total comments: 1

Patch Set 2 : rmacnak review #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -15 lines) Patch
M runtime/observatory/tests/service/awaiter_async_stack_contents_test.dart View 1 2 chunks +1 line, -6 lines 0 comments Download
M runtime/observatory/tests/service/pause_on_unhandled_async_exceptions2_test.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/observatory/tests/service/pause_on_unhandled_async_exceptions_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/debugger.cc View 1 6 chunks +18 lines, -6 lines 4 comments Download

Messages

Total messages: 11 (4 generated)
Cutch
3 years, 8 months ago (2017-04-12 14:21:58 UTC) #4
rmacnak
lgtm https://codereview.chromium.org/2815863002/diff/1/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): https://codereview.chromium.org/2815863002/diff/1/runtime/vm/debugger.cc#newcode945 runtime/vm/debugger.cc:945: ctx_ ^= Closure::Cast(obj).context(); The parser is uniformly creating ...
3 years, 8 months ago (2017-04-12 16:53:04 UTC) #5
Cutch
Committed patchset #2 (id:20001) manually as f0734f99b3c948d53130419c3d5c3666a0578a67 (presubmit successful).
3 years, 8 months ago (2017-04-12 20:15:50 UTC) #7
siva
https://codereview.chromium.org/2815863002/diff/20001/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): https://codereview.chromium.org/2815863002/diff/20001/runtime/vm/debugger.cc#newcode942 runtime/vm/debugger.cc:942: const Object& obj = Object::Handle(GetStackVar(var_info.index())); This handle could be ...
3 years, 8 months ago (2017-04-13 01:22:58 UTC) #8
siva
https://codereview.chromium.org/2815863002/diff/20001/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): https://codereview.chromium.org/2815863002/diff/20001/runtime/vm/debugger.cc#newcode956 runtime/vm/debugger.cc:956: return Context::ZoneHandle(Context::null()); Why is it not ok to use ...
3 years, 8 months ago (2017-04-13 01:30:06 UTC) #9
Cutch
Will TBR changes in another CL. https://codereview.chromium.org/2815863002/diff/20001/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): https://codereview.chromium.org/2815863002/diff/20001/runtime/vm/debugger.cc#newcode942 runtime/vm/debugger.cc:942: const Object& obj ...
3 years, 8 months ago (2017-04-13 14:34:44 UTC) #10
Cutch
3 years, 8 months ago (2017-04-13 14:38:24 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/2819523003

Powered by Google App Engine
This is Rietveld 408576698