-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P0A serious issue requiring immediate resolutionA serious issue requiring immediate resolutionlegacy-area-front-endLegacy: Use area-dart-model instead.Legacy: Use area-dart-model instead.
Milestone
Description
As of b32d196 it is no longer possible to build the SDK with constant-update-2018
enabled because of a crash in the VM. /cc @aartbik
To reproduce:
-
Edit
tools/experimental_features.yaml
to haveenabledIn: 2.0
underconstant-update-2018:
, then runpkg/front_end/tool/fasta generate-experimental-flags
. Alternately patch in https://dart-review.googlesource.com/c/sdk/+/106943. -
Run
tools/build.py -mrelease create_sdk
. It will crash with a segmentation fault when trying to build a snapshot ofkernel-service.dart
. Debug builds will fail with anASSERT
failure.
Command failed: ./dart --deterministic --packages=/usr/local/google/home/kmillikin/dart.git/sdk/.packages --snapshot=gen/kernel-service.dart.snapshot --snapshot-depfile=/usr/local/google/home/kmillikin/dart.git/sdk/out/DebugX64/gen/kernel-service.dart.snapshot.d --snapshot-kind=app-jit /usr/local/google/home/kmillikin/dart.git/sdk/out/DebugX64/gen/kernel_service.dill --train file:////usr/local/google/home/kmillikin/dart.git/sdk/pkg/compiler/lib/src/dart2js.dart
output: ../../runtime/vm/compiler/frontend/constant_evaluator.cc: 299: error: expected: !H.constants_table().IsNull()
version=2.3.3-edge.de72f2f1bd864c74434cc93882052f66198f5f8b (Tue Jun 25 08:02:46 2019 +0000) on "linux_x64"
thread=59610, isolate=main(0x55b1309d6c00)
pc 0x000055b12e19a3bc fp 0x00007ffcec578fc0 dart::Profiler::DumpStackTrace(void*)
pc 0x000055b12ddc1342 fp 0x00007ffcec5790a0 dart::Assert::Fail(char const*, ...)
pc 0x000055b12e3ab1ac fp 0x00007ffcec579130 dart::kernel::ConstantEvaluator::EvaluateConstantExpression(long)
pc 0x000055b12e0a7a63 fp 0x00007ffcec579260 dart::kernel::KernelLoader::ReadVMAnnotations(dart::Library const&, long, dart::String*, bool*, bool*)
pc 0x000055b12e0a888f fp 0x00007ffcec5793e0 dart::kernel::KernelLoader::LoadProcedure(dart::Library const&, dart::Class const&, bool, long)
pc 0x000055b12e0a7283 fp 0x00007ffcec579580 dart::kernel::KernelLoader::FinishTopLevelClassLoading(dart::Class const&, dart::Library const&, dart::kernel::LibraryIndex const&)
pc 0x000055b12e0aa84e fp 0x00007ffcec579970 dart::kernel::KernelLoader::FinishLoading(dart::Class const&)
pc 0x000055b12dfd1861 fp 0x00007ffcec579b10 dart::ClassFinalizer::FinalizeClass(dart::Class const&)
pc 0x000055b12dfd3371 fp 0x00007ffcec579c40 dart::ClassFinalizer::LoadClassMembers(dart::Class const&)
pc 0x000055b12e0dce65 fp 0x00007ffcec579c80 dart::Class::EnsureIsFinalized(dart::Thread*) const
pc 0x000055b12e113eb6 fp 0x00007ffcec579cc0 dart::Library::EnsureTopLevelClassIsFinalized() const
pc 0x000055b12e117e06 fp 0x00007ffcec579cf0 dart::Library::LookupLocalField(dart::String const&) const
pc 0x000055b12e6b80f3 fp 0x00007ffcec579e50 Dart_FinalizeLoading
pc 0x000055b12dde9c79 fp 0x00007ffcec579ec0 dart::bin::DartUtils::PrepareForScriptLoading(bool, bool)
pc 0x000055b12dda9df5 fp 0x00007ffcec579f50 ./dart+0x1676df5
pc 0x000055b12dda8a53 fp 0x00007ffcec57a020 ./dart+0x1675a53
pc 0x000055b12dda7f22 fp 0x00007ffcec57a0f0 dart::bin::RunMainIsolate(char const*, dart::bin::CommandLineOptions*)
pc 0x000055b12dda9341 fp 0x00007ffcec57a1f0 dart::bin::main(int, char**)
pc 0x000055b12dda9d79 fp 0x00007ffcec57a200 ./dart+0x1676d79
-- End of DumpStackTrace
Metadata
Metadata
Assignees
Labels
P0A serious issue requiring immediate resolutionA serious issue requiring immediate resolutionlegacy-area-front-endLegacy: Use area-dart-model instead.Legacy: Use area-dart-model instead.