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

Issue 2486213002: Test showing crash when stepping through new Map creation. (Closed)

Created:
4 years, 1 month ago by jensj
Modified:
4 years, 1 month ago
Reviewers:
turnidge, Cutch
CC:
reviews_dartlang.org, turnidge, rmacnak, Cutch, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Test showing crash when stepping through new Map creation. Stepping through the following small program: main() { var map = {}; } will crash the vm if it is compiled in debug mode because the debugging tries to call .Length() on an uninitialized Map. Crash: runtime/vm/object.h: 6545: error: expected: (value & kSmiTagMask) == kSmiTag Dumping native stack trace for thread d12f [0x0000000000a66c36] dart::Profiler::DumpStackTrace(bool) [0x0000000000a66c36] dart::Profiler::DumpStackTrace(bool) [0x0000000000765548] dart::DynamicAssertionHelper::Fail(char const*, ...) [0x000000000074b78b] dart::Smi::ValueFromRaw(unsigned long) [0x000000000074b6ad] dart::Smi::Value(dart::RawSmi const*) [0x00000000009b92cc] dart::LinkedHashMap::Length() const [0x00000000009e2351] dart::LinkedHashMap::PrintJSONImpl(dart::JSONStream*, bool) const [...] Filed as bug https://github.com/dart-lang/sdk/issues/27790. R=turnidge@google.com Committed: https://github.com/dart-lang/sdk/commit/e9c78330f2c37838c78d60ebd6e1eccb0b40625f

Patch Set 1 #

Patch Set 2 : Marked test as failing in debug mode. #

Total comments: 2

Patch Set 3 : Refactored test to use more helper routines. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -0 lines) Patch
M runtime/observatory/tests/service/service.status View 1 1 chunk +2 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/step_test.dart View 1 2 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
jensj
4 years, 1 month ago (2016-11-09 14:01:03 UTC) #3
Cutch
Some comments. Thanks for filing the issue. https://codereview.chromium.org/2486213002/diff/20001/runtime/observatory/tests/service/step_test.dart File runtime/observatory/tests/service/step_test.dart (right): https://codereview.chromium.org/2486213002/diff/20001/runtime/observatory/tests/service/step_test.dart#newcode16 runtime/observatory/tests/service/step_test.dart:16: isolate.vm.getEventStream(VM.kDebugStream).then((stream) { ...
4 years, 1 month ago (2016-11-09 14:48:49 UTC) #5
jensj
Thank you for your feedback! I have refactored to use more of the helper routines ...
4 years, 1 month ago (2016-11-10 08:29:20 UTC) #6
turnidge
lgtm
4 years, 1 month ago (2016-11-14 22:42:48 UTC) #7
jensj
4 years, 1 month ago (2016-11-15 11:49:52 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
e9c78330f2c37838c78d60ebd6e1eccb0b40625f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698