Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReleaseX64 AOT Failed to commit object pool into global object pool twice #39606

Closed
fizaaluthra opened this issue Dec 2, 2019 · 3 comments
Closed
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. dartfuzz Found with Dart fuzzing (DartFuzz, libFuzzer, etc.)

Comments

@fizaaluthra
Copy link

fuzz.dart.txt

Isolate (/b/s/w/it7sRNty/dart_fuzzWCDMES) FP NO-FFI NO-FLAT : JIT-SLOWPATH-ReleaseX64 - AOT-ReleaseX64: !DIVERGENCE! 1.73:3895312616 (0 vs 134)

fail2:
134

../../runtime/vm/compiler/aot/precompiler.cc: 2430: error: Failed to commit object pool into global object pool twice
version=2.7.0-edge.3de7487a2cfec15eeb262159cd0a789a50666b2c (Sun Dec 1 01:48:20 2019 +0000) on "linux_x64"
thread=13562, isolate=isolate(0x55b653b3ec00)
  pc 0x000055b65249b47c fp 0x00007fffb4bce860 dart::Profiler::DumpStackTrace(void*)
  pc 0x000055b65231a6c2 fp 0x00007fffb4bce940 dart::Assert::Fail(char const*, ...)
  pc 0x000055b65253a273 fp 0x00007fffb4bcefb0 dart::PrecompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)
  pc 0x000055b65253b0c6 fp 0x00007fffb4bcf1a0 /b/s/w/ir/pkg/vm/tool/../../../out/ReleaseX64/gen_snapshot+0x75a0c6
  pc 0x000055b6525378b5 fp 0x00007fffb4bcf240 dart::Precompiler::CompileFunction(dart::Precompiler*, dart::Thread*, dart::Zone*, dart::Function const&)
  pc 0x000055b6524a58a7 fp 0x00007fffb4bcf280 /b/s/w/ir/pkg/vm/tool/../../../out/ReleaseX64/gen_snapshot+0x6c48a7
  pc 0x000055b6524a42dd fp 0x00007fffb4bcf300 dart::ProgramVisitor::VisitClasses(dart::Visitor<dart::Class>*)
  pc 0x000055b6524a44fd fp 0x00007fffb4bcf370 dart::ProgramVisitor::VisitFunctions(dart::Visitor<dart::Function>*)
  pc 0x000055b652531447 fp 0x00007fffb4bcf520 dart::Precompiler::DoCompileAll()
  pc 0x000055b652531204 fp 0x00007fffb4bcf900 dart::Precompiler::CompileAll()
  pc 0x000055b652937828 fp 0x00007fffb4bcf9c0 Dart_Precompile
  pc 0x000055b6522fa55f fp 0x00007fffb4bcfb40 dart::bin::main(int, char**)
-- End of DumpStackTrace
/b/s/w/ir/pkg/vm/tool/precompiler2: line 109: 13562 Aborted                 "$BIN_DIR"/gen_snapshot "$GEN_SNAPSHOT_OPTION" "$GEN_SNAPSHOT_FILENAME" "${OPTIONS[@]}" "$SNAPSHOT_FILE.dill"



-- BEGIN REPRODUCE  --

dartfuzz.dart --fp --no-ffi --no-flat --seed 3895312616 /b/s/w/it7sRNty/dart_fuzzWCDMES/fuzz.dart

-- RUN 1 --

/b/s/w/ir/out/ReleaseX64/dart --use-slow-path --old_gen_heap_size=128 /b/s/w/it7sRNty/dart_fuzzWCDMES/fuzz.dart

-- RUN 2 --

DART_CONFIGURATION='ReleaseX64' DART_VM_FLAGS='--enable-asserts' /b/s/w/ir/pkg/vm/tool/precompiler2 /b/s/w/it7sRNty/dart_fuzzWCDMES/fuzz.dart /b/s/w/it7sRNty/dart_fuzzWCDMES/snapshot
/b/s/w/ir/pkg/vm/tool/dart_precompiled_runtime2 /b/s/w/it7sRNty/dart_fuzzWCDMES/snapshot

-- END REPRODUCE  --
@fizaaluthra fizaaluthra added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. dartfuzz Found with Dart fuzzing (DartFuzz, libFuzzer, etc.) labels Dec 2, 2019
@fizaaluthra
Copy link
Author

Another one:

Isolate (/b/s/w/itkzGJNI/dart_fuzzBDASRV) FP NO-FFI FLAT : KBC-INT-O3-ReleaseSIMARM64 - AOT-ReleaseX64: !DIVERGENCE! 1.73:489088904 (0 vs 134)

fail2:
134

../../runtime/vm/compiler/aot/precompiler.cc: 2430: error: Failed to commit object pool into global object pool twice
version=2.7.0-edge.3557973a75bdee3d6c1329aa359c4317fe3c6a5e (Mon Dec 2 03:49:42 2019 +0000) on "linux_x64"
thread=30750, isolate=isolate(0x560991316c00)
  pc 0x000056098f09b47c fp 0x00007ffdd4095090 dart::Profiler::DumpStackTrace(void*)
  pc 0x000056098ef1a6c2 fp 0x00007ffdd4095170 dart::Assert::Fail(char const*, ...)
  pc 0x000056098f13a273 fp 0x00007ffdd40957e0 dart::PrecompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)
  pc 0x000056098f13b0c6 fp 0x00007ffdd40959d0 /b/s/w/ir/pkg/vm/tool/../../../out/ReleaseX64/gen_snapshot+0x75a0c6
  pc 0x000056098f1378b5 fp 0x00007ffdd4095a70 dart::Precompiler::CompileFunction(dart::Precompiler*, dart::Thread*, dart::Zone*, dart::Function const&)
  pc 0x000056098f0a58a7 fp 0x00007ffdd4095ab0 /b/s/w/ir/pkg/vm/tool/../../../out/ReleaseX64/gen_snapshot+0x6c48a7
  pc 0x000056098f0a42dd fp 0x00007ffdd4095b30 dart::ProgramVisitor::VisitClasses(dart::Visitor<dart::Class>*)
  pc 0x000056098f0a44fd fp 0x00007ffdd4095ba0 dart::ProgramVisitor::VisitFunctions(dart::Visitor<dart::Function>*)
  pc 0x000056098f131447 fp 0x00007ffdd4095d50 dart::Precompiler::DoCompileAll()
  pc 0x000056098f131204 fp 0x00007ffdd4096130 dart::Precompiler::CompileAll()
  pc 0x000056098f537828 fp 0x00007ffdd40961f0 Dart_Precompile
  pc 0x000056098eefa55f fp 0x00007ffdd4096370 dart::bin::main(int, char**)
-- End of DumpStackTrace
/b/s/w/ir/pkg/vm/tool/precompiler2: line 109: 30750 Aborted                 "$BIN_DIR"/gen_snapshot "$GEN_SNAPSHOT_OPTION" "$GEN_SNAPSHOT_FILENAME" "${OPTIONS[@]}" "$SNAPSHOT_FILE.dill"



-- BEGIN REPRODUCE  --

dartfuzz.dart --fp --no-ffi --flat --seed 489088904 /b/s/w/itkzGJNI/dart_fuzzBDASRV/fuzz.dart

-- RUN 1 --

/b/s/w/ir/pkg/vm/tool/gen_kernel --gen-bytecode --platform=/b/s/w/ir/out/ReleaseSIMARM64/vm_platform_strong.dill -o /b/s/w/itkzGJNI/dart_fuzzBDASRV/out.dill /b/s/w/itkzGJNI/dart_fuzzBDASRV/fuzz.dart
/b/s/w/ir/out/ReleaseSIMARM64/dart --enable-interpreter --compilation-counter-threshold=-1 --optimization_level=3 --old_gen_heap_size=128 /b/s/w/itkzGJNI/dart_fuzzBDASRV/out.dill

-- RUN 2 --

DART_CONFIGURATION='ReleaseX64' DART_VM_FLAGS='--enable-asserts' /b/s/w/ir/pkg/vm/tool/precompiler2 /b/s/w/itkzGJNI/dart_fuzzBDASRV/fuzz.dart /b/s/w/itkzGJNI/dart_fuzzBDASRV/snapshot
/b/s/w/ir/pkg/vm/tool/dart_precompiled_runtime2 /b/s/w/itkzGJNI/dart_fuzzBDASRV/snapshot

-- END REPRODUCE  --

@bkonyi
Copy link
Contributor

bkonyi commented Dec 2, 2019

@mkustermann are you the right person to take a look at this or would you know who to forward this to?

@mraleph mraleph self-assigned this Dec 2, 2019
@mraleph
Copy link
Member

mraleph commented Dec 2, 2019

I will take a look - this triggers in the code that I have just added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. dartfuzz Found with Dart fuzzing (DartFuzz, libFuzzer, etc.)
Projects
None yet
Development

No branches or pull requests

3 participants