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

Issue 12079071: Fix a crash bug when creating a stack trace from an optimized frame. (Closed)

Created:
7 years, 10 months ago by Florian Schneider
Modified:
7 years, 10 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix a crash bug when creating a stack trace from an optimized frame. In some cases of NoSuchMethodError creating a stack trace with optimized code did result in an assertion failure. We don't have deoptimization info at all potentially throwing calls in optimized code: Namely in the prologue that copies parameters. BUG=dart:8200 TEST=tests run with --optimization-threshold=5 Committed: https://code.google.com/p/dart/source/detail?r=17843

Patch Set 1 #

Patch Set 2 : correct optimization threshold #

Total comments: 4

Patch Set 3 : refactored iterator #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -38 lines) Patch
M runtime/vm/exceptions.cc View 1 2 1 chunk +6 lines, -9 lines 0 comments Download
M runtime/vm/stack_frame.h View 1 2 1 chunk +26 lines, -4 lines 0 comments Download
M runtime/vm/stack_frame.cc View 1 2 1 chunk +39 lines, -25 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Florian Schneider
7 years, 10 months ago (2013-01-30 12:31:04 UTC) #1
Florian Schneider
+vm-dev
7 years, 10 months ago (2013-01-30 12:31:55 UTC) #2
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/12079071/diff/4001/runtime/vm/stack_frame.cc File runtime/vm/stack_frame.cc (right): https://codereview.chromium.org/12079071/diff/4001/runtime/vm/stack_frame.cc#newcode299 runtime/vm/stack_frame.cc:299: // In that case there won't be any ...
7 years, 10 months ago (2013-01-30 13:03:11 UTC) #3
Florian Schneider
https://codereview.chromium.org/12079071/diff/4001/runtime/vm/stack_frame.cc File runtime/vm/stack_frame.cc (right): https://codereview.chromium.org/12079071/diff/4001/runtime/vm/stack_frame.cc#newcode313 runtime/vm/stack_frame.cc:313: RawFunction* InlinedFunctionsIterator::GetNextFunctionAndCode(uword* pc, On 2013/01/30 13:03:11, Vyacheslav Egorov (Google) ...
7 years, 10 months ago (2013-01-30 14:06:43 UTC) #4
Florian Schneider
7 years, 10 months ago (2013-01-30 14:11:16 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/12079071/diff/4001/runtime/vm/stack_frame.cc
File runtime/vm/stack_frame.cc (right):

https://codereview.chromium.org/12079071/diff/4001/runtime/vm/stack_frame.cc#...
runtime/vm/stack_frame.cc:299: // In that case there won't be any inlined
frames.
On 2013/01/30 13:03:11, Vyacheslav Egorov (Google) wrote:
> Can we verify that this is indeed a prologue that copies parameters? Maybe we
> accidentally forgot to emit some data?

In the failing tests it is. But that does not exclude that it may occur in other
places. I'll check manually for more.

Powered by Google App Engine
This is Rietveld 408576698