dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.26k stars 1.58k forks source link

regress38979_test flakily fails when run as part of stress test suite #48601

Open aam opened 2 years ago

aam commented 2 years ago
$ out/ReleaseTSANX64/dart --disable-dart-dev --no-sound-null-safety  runtime/tests/concurrency/generated_stress_test.dart.jit.dill
...
[/p/d/dart-sdk1/sdk/runtime/tests/concurrency/../vm/dart_2/regress38979_test.dart] starting ...
../../runtime/vm/object.cc: 15685: error: unreachable code
version=2.17.0-edge.280a87df1ece4797c12712fe23cc6d712659a5d5 (be) (Thu Mar 17 14:17:26 2022 +0000) on "linux_x64"
pid=821242, thread=821317, isolate_group=main(0x7b7000001000), isolate=wrapper32(0x7b70000c0800)
isolate_instructions=55e4447033c0, vm_instructions=55e4447033c0
  pc 0x000055e444ad25c2 fp 0x00007f5ad34bc8b0 dart::Profiler::DumpStackTrace(void*)+0x72
  pc 0x000055e44527e2ca fp 0x00007f5ad34bc8d0 Dart_DumpNativeStackTrace+0x1a
  pc 0x000055e44470360f fp 0x00007f5ad34bc9c0 dart::Assert::Fail(char const*, ...) const+0x9f
  pc 0x000055e444a4a48c fp 0x00007f5ad34bca10 dart::ICData::NumberOfChecks() const+0xfc
  pc 0x000055e44505487b fp 0x00007f5ad34bcaa0 dart::FlowGraph::CheckForInstanceCall(dart::InstanceCallInstr*, dart::UntaggedFunction::Kind) const+0x62b
  pc 0x000055e44521813a fp 0x00007f5ad34bcae0 dart::JitCallSpecializer::VisitInstanceCall(dart::InstanceCallInstr*)+0x20a
  pc 0x000055e44515f8ed fp 0x00007f5ad34bcb50 dart::CallSpecializer::ApplyClassIds()+0x20d
  pc 0x000055e445175d6a fp 0x00007f5ad34bcb70 out/ReleaseTSANX64/dart+0x2acbd6a
  pc 0x000055e445174c8b fp 0x00007f5ad34bcc80 dart::CompilerPass::Run(dart::CompilerPassState*) const+0x2cb
  pc 0x000055e44517519f fp 0x00007f5ad34bcca0 dart::CompilerPass::RunInliningPipeline(dart::CompilerPass::PipelineMode, dart::CompilerPassState*)+0x2f
  pc 0x000055e4450eab56 fp 0x00007f5ad34bd270 out/ReleaseTSANX64/dart+0x2a40b56
  pc 0x000055e4450d88d2 fp 0x00007f5ad34bd320 out/ReleaseTSANX64/dart+0x2a2e8d2
  pc 0x000055e4450efb7b fp 0x00007f5ad34bd450 out/ReleaseTSANX64/dart+0x2a45b7b
  pc 0x000055e4450e1b09 fp 0x00007f5ad34bd5a0 out/ReleaseTSANX64/dart+0x2a37b09
  pc 0x000055e4450e14f6 fp 0x00007f5ad34bd6a0 dart::FlowGraphInliner::Inline()+0x2c6
  pc 0x000055e445175c76 fp 0x00007f5ad34bd720 out/ReleaseTSANX64/dart+0x2acbc76
  pc 0x000055e445174c8b fp 0x00007f5ad34bd830 dart::CompilerPass::Run(dart::CompilerPassState*) const+0x2cb
  pc 0x000055e44517552c fp 0x00007f5ad34bd880 dart::CompilerPass::RunPipeline(dart::CompilerPass::PipelineMode, dart::CompilerPassState*)+0xdc
  pc 0x000055e444bdf3f8 fp 0x00007f5ad34bdfc0 dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)+0xf58
  pc 0x000055e444be0135 fp 0x00007f5ad34be200 out/ReleaseTSANX64/dart+0x2536135
  pc 0x000055e444be0b10 fp 0x00007f5ad34be290 dart::Compiler::CompileOptimizedFunction(dart::Thread*, dart::Function const&, long)+0x170
  pc 0x000055e444b6a7b1 fp 0x00007f5ad34be350 dart::DRT_OptimizeInvokedFunction(dart::NativeArguments)+0x351
  pc 0x00007f5ae5a8264a fp 0x00007f5ad34be468 Unknown symbol
  pc 0x00007f5ae5a82b8d fp 0x00007f5ad34be4a0 Unknown symbol
  pc 0x00007f5ad223513b fp 0x00007f5ad34be4e8 Unknown symbol
  pc 0x00007f5adbfc50ac fp 0x00007f5ad34be590 Unknown symbol
  pc 0x00007f5ad2234b13 fp 0x00007f5ad34be5f8 Unknown symbol
  pc 0x00007f5ad220de9d fp 0x00007f5ad34be658 Unknown symbol
  pc 0x00007f5ad220db32 fp 0x00007f5ad34be680 Unknown symbol
  pc 0x00007f5adbfc35c1 fp 0x00007f5ad34be6f0 Unknown symbol
  pc 0x00007f5adbfc3329 fp 0x00007f5ad34be750 Unknown symbol
  pc 0x00007f5adbfc2923 fp 0x00007f5ad34be7e0 Unknown symbol
  pc 0x00007f5adbfb9d5d fp 0x00007f5ad34be830 Unknown symbol
  pc 0x00007f5adbfb9986 fp 0x00007f5ad34be8b8 Unknown symbol
  pc 0x00007f5ad220da79 fp 0x00007f5ad34be8f8 Unknown symbol
  pc 0x00007f5ad220c46c fp 0x00007f5ad34be928 Unknown symbol
  pc 0x00007f5adbfa2b48 fp 0x00007f5ad34be990 Unknown symbol
  pc 0x00007f5adbfa2e10 fp 0x00007f5ad34be9d0 Unknown symbol
  pc 0x00007f5adbfa2b48 fp 0x00007f5ad34bea38 Unknown symbol
  pc 0x00007f5adbfa23f3 fp 0x00007f5ad34bea88 Unknown symbol
  pc 0x00007f5ae5a82c5c fp 0x00007f5ad34beb00 Unknown symbol
  pc 0x000055e44491df65 fp 0x00007f5ad34beba0 dart::DartEntry::InvokeCode(dart::Code const&, unsigned long, dart::Array const&, dart::Array const&, dart::Thread*)+0x1d5
  pc 0x000055e44491dce5 fp 0x00007f5ad34bec10 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long)+0x205
  pc 0x000055e444921908 fp 0x00007f5ad34bec70 dart::DartLibraryCalls::HandleMessage(long, dart::Instance const&)+0x278
  pc 0x000055e444966fd6 fp 0x00007f5ad34bed60 dart::IsolateMessageHandler::HandleMessage(std::__2::unique_ptr<dart::Message, std::__2::default_delete<dart::Message> >)+0x516
  pc 0x000055e4449aed1f fp 0x00007f5ad34bede0 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool)+0x1cf
  pc 0x000055e4449af6d0 fp 0x00007f5ad34bee40 dart::MessageHandler::TaskCallback()+0x330
  pc 0x000055e4449b00f4 fp 0x00007f5ad34bee60 out/ReleaseTSANX64/dart+0x23060f4
  pc 0x000055e444bc0a7b fp 0x00007f5ad34bef50 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x28b
  pc 0x000055e444bc135f fp 0x00007f5ad34bef90 dart::ThreadPool::Worker::Main(unsigned long)+0xcf
  pc 0x000055e444acb8de fp 0x00007f5ad34bf050 out/ReleaseTSANX64/dart+0x24218de
-- End of DumpStackTrace
  pc 0x0000000000000000 fp 0x00007f5ad34be468 sp 0x0000000000000000 [Stub] CallToRuntime
  pc 0x00007f5ae5a82b8d fp 0x00007f5ad34be4a0 sp 0x00007f5ad34be478 [Stub] OptimizeFunction
  pc 0x00007f5ad223513b fp 0x00007f5ad34be4e8 sp 0x00007f5ad34be4b0 [Unoptimized] main.closure2
  pc 0x00007f5adbfc50ac fp 0x00007f5ad34be590 sp 0x00007f5ad34be4f8 [Unoptimized] Expect.throws
  pc 0x00007f5ad2234b13 fp 0x00007f5ad34be5f8 sp 0x00007f5ad34be5a0 [Unoptimized] Expect.throwsNoSuchMethodError
  pc 0x00007f5ad220de9d fp 0x00007f5ad34be658 sp 0x00007f5ad34be608 [Unoptimized] main
  pc 0x00007f5ad220db32 fp 0x00007f5ad34be680 sp 0x00007f5ad34be668 [Unoptimized] wrapper32.<anonymous closure>
  pc 0x00007f5adbfc35c1 fp 0x00007f5ad34be6f0 sp 0x00007f5ad34be690 [Unoptimized] _rootRun@4048458
  pc 0x00007f5adbfc3329 fp 0x00007f5ad34be750 sp 0x00007f5ad34be700 [Unoptimized] _rootRun@4048458
  pc 0x00007f5adbfc2923 fp 0x00007f5ad34be7e0 sp 0x00007f5ad34be760 [Unoptimized] _CustomZone@4048458.run
  pc 0x00007f5adbfb9d5d fp 0x00007f5ad34be830 sp 0x00007f5ad34be7f0 [Unoptimized] _runZoned@4048458
  pc 0x00007f5adbfb9986 fp 0x00007f5ad34be8b8 sp 0x00007f5ad34be840 [Unoptimized] runZoned
  pc 0x00007f5ad220da79 fp 0x00007f5ad34be8f8 sp 0x00007f5ad34be8c8 [Unoptimized] wrapper32
  pc 0x00007f5ad220c46c fp 0x00007f5ad34be928 sp 0x00007f5ad34be908 [Unoptimized] wrapper32
  pc 0x00007f5adbfa2b48 fp 0x00007f5ad34be990 sp 0x00007f5ad34be938 [Unoptimized] _Closure@0150898.dyn:call
  pc 0x00007f5adbfa2e10 fp 0x00007f5ad34be9d0 sp 0x00007f5ad34be9a0 [Unoptimized] _delayEntrypointInvocation@1026248.<anonymous closure>
  pc 0x00007f5adbfa2b48 fp 0x00007f5ad34bea38 sp 0x00007f5ad34be9e0 [Unoptimized] _Closure@0150898.dyn:call
  pc 0x00007f5adbfa23f3 fp 0x00007f5ad34bea88 sp 0x00007f5ad34bea48 [Unoptimized] _RawReceivePortImpl@1026248._handleMessage@1026248
  pc 0x00007f5ae5a82c5c fp 0x00007f5ad34beb00 sp 0x00007f5ad34bea98 [Stub] InvokeDartCode
=== Crash occured when compiling file:///usr/local/google/home/aam/p/d/dart-sdk1/sdk/runtime/tests/vm/dart_2/null_float32x4_simd_ops_test.dart_::_f in optimizing JIT mode in ApplyClassIds pass
*** BEGIN CFG
ApplyClassIds
==== dart:math__Random@11383281_nextInt (RegularFunction)
B0[graph]:0 {
      v108 <- Constant(#null)
      v109 <- Constant(#<optimized out>)
      v116 <- Constant(#0)
      v119 <- Constant(#true)
      v120 <- Constant(#1073741823)
      v133 <- Constant(#4294967295)
      v142 <- Constant(#4294967296) T{_Smi}
      v145 <- Constant(#Type: bool)
      v148 <- Constant(#Type: int)
      v155 <- Constant(#1)
      v164 <- Constant(#max)
      v165 <- Constant(#Must be positive and <= 2^32)
}
B27[function entry]:2 {
      v110 <- Parameter(0)
      v111 <- Parameter(1)
      v112 <- Parameter(0) T{_Random}
      v114 <- Constant(#1000000000) T{_Smi}
}
    DebugStepCheck:10()
    v117 <- InstanceCall:12( <=<0>, v114, v116 IC[1: _Smi@0150898, _Smi@0150898 cnt:3 trgt:'_IntegerImplementation@0150898.<='])
    AssertBoolean:14(v117)
    Branch if StrictCompare:16(===, v117, v119) goto (32, 30)
B32[target]:42
    goto:44 B31
B30[target]:38
    v121 <- InstanceCall:20( ><0>, v114, v120 IC[1: _Smi@0150898, _Smi@0150898 cnt:3 trgt:'_IntegerImplementation@0150898.>'])
    AssertBoolean:22(v121)
    Branch if StrictCompare:24(===, v121, v119) goto (29, 35)
B29[target]:36
    CheckSmi:28(v114)
    CheckSmi:28(v142)
    v160 <- RelationalOp:28(>, v114, v142) T{bool}
    AssertBoolean:30(v160)
    Branch if StrictCompare:32(===, v160, v119) goto (33, 36)
B33[target]:46
    goto:48 B31
B31[join]:40 pred(B32, B33)
    v162 <- AllocateObject:50(cls=RangeError) T{RangeError}
    StaticCall:52( RangeError.range<0> v162, v114, v155, v142, v164, v165)
    Throw:54(v162)
B36[target]:62
    goto:64 B34
B35[target]:58
    goto:60 B34
B34[join]:56 pred(B35, B36)
    v123 <- InstanceCall:66( unary-<0>, v114 IC[1: _Smi@0150898 cnt:3 trgt:'_IntegerImplementation@0150898.unary-'])
    v125 <- InstanceCall:68( &<0>, v114, v123 IC[1: _Smi@0150898, _Smi@0150898 cnt:4 trgt:'_IntegerImplementation@0150898.&'])
    v127 <- InstanceCall:70( ==<0>, v125, v114 IC[1: _Smi@0150898, _Smi@0150898 cnt:4 trgt:'_IntegerImplementation@0150898.=='] using unchecked entrypoint)
    AssertBoolean:72(v127)
    Branch if StrictCompare:74(===, v127, v119) goto (37, 38)
B37[target]:78
    InstanceCall:80( _nextState@11383281<0>, v112 IC[1: _Random@11383281 cnt:1 trgt:'_Random@11383281._nextState@11383281'] using unchecked entrypoint)
    v151 <- InstanceCall:82( get:_state@11383281<0>, v112 IC[0: ])
    v153 <- InstanceCall:84( &<0>, v151, v133 IC[0: ])
    v156 <- InstanceCall:86( -<0>, v114, v155 IC[0: ])
    v158 <- InstanceCall:88( &<0>, v153, v156 IC[0: ])
    DebugStepCheck:90()
    Return:92(v158)
B38[target]:94
    DebugStepCheck:96()
    DebugStepCheck:98()
    goto:132 B39
B39[join]:124 pred(B38, B40)
    CheckStackOverflow:126(stack=0, loop=1)
    InstanceCall:100( _nextState@11383281<0>, v112 IC[1: _Random@11383281 cnt:1 trgt:'_Random@11383281._nextState@11383281'] using unchecked entrypoint)
    v131 <- InstanceCall:102( get:_state@11383281<0>, v112 IC[1: _Random@11383281 cnt:1 trgt:'_Random@11383281.get__state@11383281'])
    v134 <- InstanceCall:104( &<0>, v131, v133 IC[2: _Mint@0150898, _Smi@0150898 cnt:1 trgt:'_IntegerImplementation@0150898.&' | _Smi@0150898, _Smi@0150898 cnt:1 trgt:'_IntegerImplementation@0150898.&'])
    v136 <- InstanceCall:106( dyn:%<0>, v134, v114 IC[1: _Smi@0150898, _Smi@0150898 cnt:2 trgt:'_IntegerImplementation@0150898.dyn_%'])
    DebugStepCheck:116()
    v138 <- InstanceCall:108( dyn:-<0>, v134, v136 IC[1: _Smi@0150898, _Smi@0150898 cnt:2 trgt:'_IntegerImplementation@0150898.dyn_-'])
    v140 <- InstanceCall:110( dyn:+<0>, v138, v114 IC[1: _Smi@0150898, _Smi@0150898 cnt:2 trgt:'_IntegerImplementation@0150898.dyn_+'])
    v143 <- InstanceCall:112( dyn:><0>, v140, v142 IC[1: _Smi@0150898, _Smi@0150898 cnt:1 trgt:'_IntegerImplementation@0150898.dyn_>'])
    v146 <- AssertAssignable:114(v143, v145, '', instantiator_type_args(v108), function_type_args(v108))
    AssertBoolean:118(v146)
    Branch if StrictCompare:120(===, v146, v119) goto (40, 41)
B40[target]:128
    goto:130 B39
B41[target]:134
    v149 <- AssertAssignable:136(v136, v148, '', instantiator_type_args(v108), function_type_args(v108))
    DebugStepCheck:138()
aam commented 2 years ago

similar problem on iso-stress buildbot log