DescriptionTest 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. #
Messages
Total messages: 9 (4 generated)
|