Skip to content

Background compilation should fail gracefully for OOM during dependency registration #42922

Open
@rmacnak-google

Description

@rmacnak-google
Exhausted heap space, trying to allocate 31392 bytes.
../../runtime/vm/object.cc: 2650: error: Out of memory.
version=2.10.0-edge.1a829bbde0697b8494c1d1a86753d2291d07d07d (be) (Sun Jul 26 22:27:39 2020 +0000) on "linux_x64"
pid=15803, thread=15805, isolate_group=main(0x55692cd54580), isolate=main(0x55692cd42900)
isolate_instructions=55692a475700, vm_instructions=55692a475700
  pc 0x000055692a7044fc fp 0x00007fefc17fe060 dart::Profiler::DumpStackTrace(void*)+0x7c
  pc 0x000055692a475832 fp 0x00007fefc17fe140 dart::Assert::Fail(char const*, ...)+0x82
  pc 0x000055692a68522e fp 0x00007fefc17fe190 dart::Object::Allocate(long, long, dart::Heap::Space)+0x22e
  pc 0x000055692a696819 fp 0x00007fefc17fe1e0 dart::Array::Grow(dart::Array const&, long, dart::Heap::Space)+0x69
  pc 0x000055692a7bf792 fp 0x00007fefc17fe220 dart::WeakCodeReferences::Register(dart::Code const&)+0xc2
  pc 0x000055692a69b4a4 fp 0x00007fefc17fe260 dart::Class::RegisterCHACode(dart::Code const&)+0x44
  pc 0x000055692aafea10 fp 0x00007fefc17fe290 dart::CHA::RegisterDependencies(dart::Code const&) const+0x30
  pc 0x000055692a79d6a7 fp 0x00007fefc17fe2f0 dart::CompileParsedFunctionHelper::FinalizeCompilation(dart::compiler::Assembler*, dart::FlowGraphCompiler*, dart::FlowGraph*)+0x477
  pc 0x000055692a7a05d1 fp 0x00007fefc17fe310 /b/s/w/ir/out/ReleaseX64/dart+0x1c465d1
  pc 0x000055692a653407 fp 0x00007fefc17fe390 dart::IsolateGroup::RunWithStoppedMutators(std::__2::function<void ()>, std::__2::function<void ()>, bool)+0x1e7
  pc 0x000055692a79e1ce fp 0x00007fefc17fea60 dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)+0x9ae
  pc 0x000055692a79ed6f fp 0x00007fefc17fec50 /b/s/w/ir/out/ReleaseX64/dart+0x1c44d6f
  pc 0x000055692a79ffac fp 0x00007fefc17fed60 dart::BackgroundCompiler::Run()+0x31c
  pc 0x000055692a78a248 fp 0x00007fefc17fede0 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x148
  pc 0x000055692a78a71c fp 0x00007fefc17fee10 dart::ThreadPool::Worker::Main(unsigned long)+0x5c
  pc 0x000055692a7006ed fp 0x00007fefc17feed0 /b/s/w/ir/out/ReleaseX64/dart+0x1ba66ed
-- End of DumpStackTrace

https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket.appspot.com/8873651942489831056/+/steps/make_a_fuzz_shard_20/0/logs/task_stdout_stderr:_make_a_fuzz_shard_20/0

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.dartfuzzFound with Dart fuzzing (DartFuzz, libFuzzer, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions