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

Assertion failure in symbol creation under DeoptSafepointOperationScope #60337

Closed
rmacnak-google opened this issue Mar 17, 2025 · 1 comment
Closed
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. triaged Issue has been triaged by sub team

Comments

@rmacnak-google
Copy link
Contributor

/==========================================================================\
| vm/dart/isolates/regress_46539_test broke (Pass -> Crash, expected Pass) |
\==========================================================================/

--- Command "vm" (took 09.000814s):
DART_CONFIGURATION=ReleaseX64 out/ReleaseX64/dart --hot-reload-test-mode --optimization-filter=foo --no-use-osr --optimization-counter-threshold=1 --deterministic --sound-null-safety -Dtest_runner.configuration=vm-reload-linux-release-x64 --ignore-unrecognized-flags --packages=/b/s/w/ir/.dart_tool/package_config.json /b/s/w/ir/runtime/tests/vm/dart/isolates/regress_46539_test.dart

exit code:
-6

stderr:
../../runtime/vm/symbols.cc: 348: error: expected: thread->CanAcquireSafepointLocks()
version=3.8.0-edge (main) (Unknown timestamp) on "linux_x64"
pid=86589, thread=87346, isolate_group=main(0x636e200fc580), isolate=(nil)((nil))
os=linux, arch=x64, comp=no, sim=no
isolate_instructions=636e0fe160a0, vm_instructions=636e0fe160a0
fp=7254e0ffbf50, sp=7254e0ffbe20, pc=636e1009c76c
  pc 0x0000636e1009c76c fp 0x00007254e0ffbf50 dart::Profiler::DumpStackTrace+0x7c
  pc 0x0000636e0fe16294 fp 0x00007254e0ffc030 dart::Assert::Fail+0x84
  pc 0x0000636e100dd11d fp 0x00007254e0ffc0e0 dart::StringPtr dart::Symbols::NewSymbol<dart::CharArray<unsigned char>>+0x28d
  pc 0x0000636e100dcc44 fp 0x00007254e0ffc140 dart::Symbols::FromUTF8+0x44
  pc 0x0000636e102641bd fp 0x00007254e0ffc170 dart::kernel::TranslationHelper::DartSymbolObfuscate+0xad
  pc 0x0000636e10275ed5 fp 0x00007254e0ffc240 dart::kernel::ScopeBuilder::AddVariableDeclarationParameter+0xf5
  pc 0x0000636e10272e82 fp 0x00007254e0ffc3c0 dart::kernel::ScopeBuilder::BuildScopes+0x1a32
  pc 0x0000636e1009a338 fp 0x00007254e0ffc710 dart::ParsedFunction::EnsureKernelScopes+0x38
  pc 0x0000636e1023c8f3 fp 0x00007254e0ffc740 dart::kernel::StreamingFlowGraphBuilder::ParseKernelASTFunction+0x53
  pc 0x0000636e1023c763 fp 0x00007254e0ffc7d0 dart::kernel::StreamingFlowGraphBuilder::BuildGraph+0xa3
  pc 0x0000636e1024df35 fp 0x00007254e0ffca90 dart::kernel::FlowGraphBuilder::BuildGraph+0x65
  pc 0x0000636e100f672d fp 0x00007254e0ffccf0 dart::Compiler::BuildFlowGraph+0x22d
  pc 0x0000636e100f7569 fp 0x00007254e0ffd3c0 dart::CompileParsedFunctionHelper::Compile+0x4e9
  pc 0x0000636e100f7e49 fp 0x00007254e0ffdab0 dart::CompileFunctionHelper+0x3b9
  pc 0x0000636e100f82c8 fp 0x00007254e0ffdae0 dart::Compiler::EnsureUnoptimizedCode+0x68
  pc 0x0000636e100b7053 fp 0x00007254e0ffdb20 dart::DeoptimizeAt+0x43
  pc 0x0000636e100b9eb5 fp 0x00007254e0ffdc00 void std::__2::__function::__policy_invoker<void +0xb5
  pc 0x0000636e0ffebbd9 fp 0x00007254e0ffdc60 dart::IsolateGroup::ForEachIsolate+0x49
  pc 0x0000636e100b9de0 fp 0x00007254e0ffdca0 dart::LambdaCallable<dart::DeoptimizeFunctionsOnStack+0x40
  pc 0x0000636e0fff1458 fp 0x00007254e0ffdd40 dart::IsolateGroup::RunWithStoppedMutatorsCallable+0x218
  pc 0x0000636e100b72b6 fp 0x00007254e0ffddb0 dart::DeoptimizeFunctionsOnStack+0x96
  pc 0x0000636e0ff82559 fp 0x00007254e0ffddc0 dart::BootstrapNatives::DN_Internal_deoptimizeFunctionsOnStack+0x9
  pc 0x0000636e1001d594 fp 0x00007254e0ffe2e0 dart::NativeEntry::BootstrapNativeCallWrapper+0x54
  pc 0x0000725501983114 fp 0x00007254e0ffe320 Unknown symbol
  pc 0x00007254dbe82d1a fp 0x00007254e0ffe350 Unknown symbol
  pc 0x0000725501983980 fp 0x00007254e0ffe370 Unknown symbol
  pc 0x00007254dbe81660 fp 0x00007254e0ffe3c8 Unknown symbol
  pc 0x00007254dbe81378 fp 0x00007254e0ffe3f8 Unknown symbol
  pc 0x0000725500d202c6 fp 0x00007254e0ffe460 Unknown symbol
  pc 0x0000725500d205fe fp 0x00007254e0ffe4a8 Unknown symbol
  pc 0x0000725500d202c6 fp 0x00007254e0ffe510 Unknown symbol
  pc 0x0000725500d1f1a2 fp 0x00007254e0ffe568 Unknown symbol
  pc 0x0000725501983476 fp 0x00007254e0ffe5e0 Unknown symbol
  pc 0x0000636e0ffcefc0 fp 0x00007254e0ffe650 dart::DartEntry::InvokeFunction+0x170
  pc 0x0000636e0ffd091d fp 0x00007254e0ffe690 dart::DartLibraryCalls::HandleMessage+0x11d
  pc 0x0000636e0ffee49d fp 0x00007254e0ffec20 dart::IsolateMessageHandler::HandleMessage+0x30d
  pc 0x0000636e100119ea fp 0x00007254e0ffec90 dart::MessageHandler::HandleMessages+0x12a
  pc 0x0000636e10011ddc fp 0x00007254e0ffece0 dart::MessageHandler::TaskCallback+0x1ec
  pc 0x0000636e100e7827 fp 0x00007254e0ffed60 dart::ThreadPool::WorkerLoop+0x127
  pc 0x0000636e100e7a82 fp 0x00007254e0ffed90 dart::ThreadPool::Worker::Main+0x72
  pc 0x0000636e10099ac9 fp 0x00007254e0ffee50 dart::ThreadStart+0xd9
-- End of DumpStackTrace
  pc 0x0000000000000000 fp 0x00007254e0ffe320 sp 0x0000000000000000 [Stub] CallBootstrapNative
  pc 0x00007254dbe82d1a fp 0x00007254e0ffe350 sp 0x00007254e0ffe330 [Unoptimized] VMInternalsForTesting.deoptimizeFunctionsOnStack
  pc 0x0000725500d426b2 fp 0x00007254e0ffe370 sp 0x00007254e0ffe360 [Optimized] A.foo
  pc 0x00007254dbe81660 fp 0x00007254e0ffe3c8 sp 0x00007254e0ffe380 [Unoptimized] isolate
  pc 0x00007254dbe81378 fp 0x00007254e0ffe3f8 sp 0x00007254e0ffe3d8 [Unoptimized] isolate
  pc 0x0000725500d202c6 fp 0x00007254e0ffe460 sp 0x00007254e0ffe408 [Unoptimized] _Closure@0150898.dyn:call
  pc 0x0000725500d205fe fp 0x00007254e0ffe4a8 sp 0x00007254e0ffe470 [Unoptimized] _delayEntrypointInvocation@1026248.<anonymous closure>
  pc 0x0000725500d202c6 fp 0x00007254e0ffe510 sp 0x00007254e0ffe4b8 [Unoptimized] _Closure@0150898.dyn:call
  pc 0x0000725500d1f1a2 fp 0x00007254e0ffe568 sp 0x00007254e0ffe520 [Unoptimized] _RawReceivePort@1026248._handleMessage@1026248
  pc 0x0000725501983476 fp 0x00007254e0ffe5e0 sp 0x00007254e0ffe578 [Stub] InvokeDartCode
=== Crash occurred when compiling file:///b/s/w/ir/runtime/tests/vm/dart/isolates/regress_46539_test.dart_A_foo in unoptimized JIT mode in unknown pass
=== Flow Graph not available

--- Re-run this test:
python3 tools/test.py -n vm-reload-linux-release-x64 vm/dart/isolates/regress_46539_test

log

@rmacnak-google rmacnak-google added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. labels Mar 17, 2025
@rmacnak-google
Copy link
Contributor Author

@a-siva a-siva added the triaged Issue has been triaged by sub team label Mar 18, 2025
copybara-service bot pushed a commit that referenced this issue Mar 18, 2025
TEST=reload stress mode
Bug: #60337
Change-Id: Ieb85a832b72f0940155b6c3480abb91d5c803805
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/416042
Reviewed-by: Alexander Aprelev <aam@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, and the AOT and JIT backends. crash Process exits with SIGSEGV, SIGABRT, etc. An unhandled exception is not a crash. triaged Issue has been triaged by sub team
Projects
None yet
Development

No branches or pull requests

2 participants