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

Unreachable code during SelectRepresentations #55663

Closed
rmacnak-google opened this issue May 7, 2024 · 1 comment
Closed

Unreachable code during SelectRepresentations #55663

rmacnak-google opened this issue May 7, 2024 · 1 comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. dartfuzz Found with Dart fuzzing (DartFuzz, libFuzzer, etc.) P2 A bug or feature request we're likely to work on triaged Issue has been triaged by sub team

Comments

@rmacnak-google
Copy link
Contributor

import 'dart:io';
import 'dart:typed_data';

Uint8ClampedList var10 = Uint8ClampedList.fromList(Int8List(15));
Map<bool, bool> var104 = <bool, bool>{false: false, true: true};

@pragma("vm:never-inline")
hide(x) => x;

@pragma("vm:never-inline")
foo3_Extension1(int par1) {
  for (int loc1 in Uint8List(27)) {
    switch (hide(0)) {
      case 621118835:
	var10 = Uint8ClampedList(30)
            .sublist((var104[true]! ? 14 : 42) | ~(ZLibOption.minLevel), -20);
	break;
    }
  }
}

main() {
  foo3_Extension1(0);
}
DART_CONFIGURATION='DebugX64' DART_VM_FLAGS='--enable-asserts' pkg/vm/tool/precompiler2 fuzz.dart snapshot
../../runtime/vm/compiler/backend/il.h: 1262: error: unreachable code
version=3.5.0-edge (main) (Unknown timestamp) on "linux_x64"
pid=3548912, thread=3548912, isolate_group=isolate(0x5624da7457d0), isolate=(nil)((nil))
os=linux, arch=x64, comp=no, sim=no
isolate_instructions=0, vm_instructions=0
fp=7ffeebcbe1d0, sp=7ffeebcbe0a0, pc=5624d884bd7c
  pc 0x00005624d884bd7c fp 0x00007ffeebcbe1d0 dart::Profiler::DumpStackTrace+0x7c
  pc 0x00005624d85920a4 fp 0x00007ffeebcbe2b0 dart::Assert::Fail+0x84
  pc 0x00005624d88a696c fp 0x00007ffeebcbe2d0 dart::Instruction::DeoptimizationTarget+0x2c
  pc 0x00005624d8c53739 fp 0x00007ffeebcbe350 dart::FlowGraph::InsertConversion+0x1a9
  pc 0x00005624d8c54a2f fp 0x00007ffeebcbe380 dart::FlowGraph::InsertConversionsFor+0x8f
  pc 0x00005624d8c551c5 fp 0x00007ffeebcbe430 dart::FlowGraph::SelectRepresentations+0x755
  pc 0x00005624d8d5f590 fp 0x00007ffeebcbe440 dart::CompilerPass_SelectRepresentations::DoBody+0x10
  pc 0x00005624d8d5ec06 fp 0x00007ffeebcbe510 dart::CompilerPass::Run+0x126
  pc 0x00005624d8d5f00f fp 0x00007ffeebcbe530 dart::CompilerPass::RunPipeline+0x16f
  pc 0x00005624d8c04600 fp 0x00007ffeebcbeca0 dart::PrecompileParsedFunctionHelper::Compile+0x3f0
  pc 0x00005624d8c05411 fp 0x00007ffeebcbf560 dart::PrecompileFunctionHelper+0x391
  pc 0x00005624d8bff9bc fp 0x00007ffeebcbf680 dart::Precompiler::CompileFunction+0x1ac
  pc 0x00005624d8bfe39e fp 0x00007ffeebcbf720 dart::Precompiler::ProcessFunction+0x18e
  pc 0x00005624d8bf8974 fp 0x00007ffeebcbf770 dart::Precompiler::Iterate+0x94
  pc 0x00005624d8bf520e fp 0x00007ffeebcc0110 dart::Precompiler::DoCompileAll+0x189e
  pc 0x00005624d8bf38c6 fp 0x00007ffeebcc05a0 dart::Precompiler::CompileAll+0xb6
  pc 0x00005624d8e3bec8 fp 0x00007ffeebcc0790 Dart_Precompile+0x1b8
  pc 0x00005624d85644c8 fp 0x00007ffeebcc0900 dart::bin::main+0x878
-- End of DumpStackTrace

log

@rmacnak-google rmacnak-google added area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. dartfuzz Found with Dart fuzzing (DartFuzz, libFuzzer, etc.) labels May 7, 2024
@mkustermann
Copy link
Member

Could this be the same as #55645 & #55595?

@a-siva a-siva added P2 A bug or feature request we're likely to work on triaged Issue has been triaged by sub team labels May 8, 2024
copybara-service bot pushed a commit that referenced this issue May 8, 2024
TEST=ci
Bug: #55595
Bug: #55663
Change-Id: I7475ef81857be60910d93262123d01936c5ab15a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365902
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
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, FFI, and the AOT and JIT backends. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. dartfuzz Found with Dart fuzzing (DartFuzz, libFuzzer, etc.) P2 A bug or feature request we're likely to work on triaged Issue has been triaged by sub team
Projects
None yet
Development

No branches or pull requests

3 participants