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

vm/dart_2/regress_45898_test flaky -> Timeout #47062

Closed
alexmarkov opened this issue Aug 31, 2021 · 1 comment
Closed

vm/dart_2/regress_45898_test flaky -> Timeout #47062

alexmarkov opened this issue Aug 31, 2021 · 1 comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. gardening

Comments

@alexmarkov
Copy link
Contributor

There are new test failures on Better loop for ADD_TYPE_ANNOTATION...Revert "[dart2js] Enable default constructor tear-off lowering".

The tests

vm/dart_2/regress_45898_test Timeout (expected Pass)

are failing on configurations

dartkp-tsan-linux-release-x64

Log:

--- Command "vm_compile_to_kernel" (took 24.000852s):
DART_CONFIGURATION=ReleaseTSANX64 /b/s/w/ir/pkg/vm/tool/gen_kernel --aot --platform=out/ReleaseTSANX64/vm_platform_strong.dill -o /b/s/w/ir/out/ReleaseTSANX64/generated_compilations/dartkp-tsan-linux-release-x64/runtime_tests_vm_dart_2_regress_45898_test/out.dill /b/s/w/ir/runtime/tests/vm/dart_2/regress_45898_test.dart --packages=/b/s/w/ir/.packages -Ddart.vm.product=false

exit code:
0

--- Command "precompiler" (took 56.000062s):
DART_CONFIGURATION=ReleaseTSANX64 out/ReleaseTSANX64/gen_snapshot --snapshot-kind=app-aot-assembly --assembly=/b/s/w/ir/out/ReleaseTSANX64/generated_compilations/dartkp-tsan-linux-release-x64/runtime_tests_vm_dart_2_regress_45898_test/out.S --ignore-unrecognized-flags --packages=/b/s/w/ir/.packages /b/s/w/ir/out/ReleaseTSANX64/generated_compilations/dartkp-tsan-linux-release-x64/runtime_tests_vm_dart_2_regress_45898_test/out.dill

exit code:
0

--- Command "remove_kernel_file" (took 18ms):
DART_CONFIGURATION=ReleaseTSANX64 rm /b/s/w/ir/out/ReleaseTSANX64/generated_compilations/dartkp-tsan-linux-release-x64/runtime_tests_vm_dart_2_regress_45898_test/out.dill

exit code:
0

--- Command "assemble" (took 01.000581s):
DART_CONFIGURATION=ReleaseTSANX64 gcc -m64 -shared -nostdlib -o /b/s/w/ir/out/ReleaseTSANX64/generated_compilations/dartkp-tsan-linux-release-x64/runtime_tests_vm_dart_2_regress_45898_test/out.aotsnapshot /b/s/w/ir/out/ReleaseTSANX64/generated_compilations/dartkp-tsan-linux-release-x64/runtime_tests_vm_dart_2_regress_45898_test/out.S

exit code:
0

--- Command "remove_assembly" (took 7ms):
DART_CONFIGURATION=ReleaseTSANX64 rm /b/s/w/ir/out/ReleaseTSANX64/generated_compilations/dartkp-tsan-linux-release-x64/runtime_tests_vm_dart_2_regress_45898_test/out.S

exit code:
0

--- Command "vm" (took 04:00.000560s):
DART_CONFIGURATION=ReleaseTSANX64 out/ReleaseTSANX64/dart_precompiled_runtime --ignore-unrecognized-flags --packages=/b/s/w/ir/.packages /b/s/w/ir/out/ReleaseTSANX64/generated_compilations/dartkp-tsan-linux-release-x64/runtime_tests_vm_dart_2_regress_45898_test/out.aotsnapshot

exit code:
null

diagnostics:
Process list including children: [12822, 12846]
Trying to capture stack trace for pid 12822
PID 12822 - process
TID 12822:
#0  0x00007fa9583e1ad3 pthread_cond_wait@@GLIBC_2.3.2
#1  0x000055e923b6a520 __tsan::call_pthread_cancel_with_cleanup(int (*)(void*), void (*)(void*), void*)
#2  0x000055e923afcf61 __interceptor_pthread_cond_wait
#3  0x000055e923ec8192 dart::Monitor::WaitMicros(long)
#4  0x000055e923ec80a5 dart::Monitor::Wait(long)
#5  0x000055e9243d5bfa Dart_RunLoop
#6  0x000055e923b748f7 dart::bin::RunMainIsolate(char const*, char const*, dart::bin::CommandLineOptions*)
#7  0x000055e923b757a1 dart::bin::main(int, char**)
#8  0x000055e923b7614f main
#9  0x00007fa957a5ebf7 __libc_start_main
#10 0x000055e923ad7d69 _start
TID 12823:
#0  0x00007fa957b217a0 __nanosleep
#1  0x00007fa957b54657 usleep
#2  0x000055e923af9b5a __interceptor_usleep
#3  0x000055e923b60f94 __tsan::BackgroundThread(void*)
#4  0x00007fa9583db6db start_thread
#5  0x00007fa957b5e71f __clone
TID 12824:
#0  0x00007fa957b5ea47 epoll_wait
#1  0x000055e923b02669 __interceptor_epoll_wait
#2  0x000055e923b920c8 dart::bin::EventHandlerImplementation::Poll(unsigned long)
#3  0x000055e923d1a4ba dart::bin::ThreadStart(void*)
#4  0x000055e923afc1fd __tsan_thread_start_func
#5  0x00007fa9583db6db start_thread
#6  0x00007fa957b5e71f __clone
TID 12830:
#0  0x00007fa9583e6294 wait
#1  0x000055e923b11927 __interceptor_wait
#2  0x000055e923b9cd88 dart::bin::ExitCodeHandler::ExitCodeHandlerEntry(unsigned long)
#3  0x000055e923d1a4ba dart::bin::ThreadStart(void*)
#4  0x000055e923afc1fd __tsan_thread_start_func
#5  0x00007fa9583db6db start_thread
#6  0x00007fa957b5e71f __clone


Trying to capture stack trace for pid 12846
PID 12846 - process
TID 12846:
#0  0x000055b3cface5f8 __tsan_func_exit
#1  0x000055b3cfc79bb3 dart::kernel::KernelLineStartsReader::KernelInt8LineStartsHelper::At(dart::TypedData const&, long) const
#2  0x000055b3cfc7992b dart::kernel::KernelLineStartsReader::LocationForPosition(long, long*, long*) const
#3  0x000055b3cfd1c9fb dart::Script::GetTokenLocation(dart::TokenPosition const&, long*, long*) const
#4  0x000055b3cfbdb390 dart::CodeSourceMapBuilder::WriteChangePosition(dart::TokenPosition)
#5  0x000055b3cfbdb0f6 dart::CodeSourceMapBuilder::FlushBuffer()
#6  0x000055b3cfbdbfd4 dart::CodeSourceMapBuilder::NoteDescriptor(dart::UntaggedPcDescriptors::Kind, int, dart::InstructionSource const&)
#7  0x000055b3d03e511e dart::FlowGraphCompiler::EmitCallsiteMetadata(dart::InstructionSource const&, long, dart::UntaggedPcDescriptors::Kind, dart::LocationSummary*, dart::Environment*)
#8  0x000055b3d03ec59e dart::FlowGraphCompiler::GenerateStubCall(dart::InstructionSource const&, dart::Code const&, dart::UntaggedPcDescriptors::Kind, dart::LocationSummary*, long, dart::Environment*)
#9  0x000055b3d0453f30 dart::AllocateObjectInstr::EmitNativeCode(dart::FlowGraphCompiler*)
#10 0x000055b3d03e87c0 dart::FlowGraphCompiler::VisitBlocks()
#11 0x000055b3d03f67a6 dart::FlowGraphCompiler::CompileGraph()
#12 0x000055b3d035ff56 dart::PrecompileParsedFunctionHelper::Compile(dart::CompilationPipeline*)
#13 0x000055b3d0361093 dart::PrecompileFunctionHelper(dart::Precompiler*, dart::CompilationPipeline*, dart::Function const&, bool)
#14 0x000055b3d035970a dart::Precompiler::CompileFunction(dart::Precompiler*, dart::Thread*, dart::Zone*, dart::Function const&)
#15 0x000055b3d0354f56 dart::Precompiler::ProcessFunction(dart::Function const&)
#16 0x000055b3d034b0f2 dart::Precompiler::Iterate()
#17 0x000055b3d033936a dart::Precompiler::DoCompileAll()
#18 0x000055b3d0337231 dart::Precompiler::CompileAll()
#19 0x000055b3d060f6aa Dart_Precompile
#20 0x000055b3cfade091 dart::bin::main(int, char**)
#21 0x000055b3cfadf1ff main
#22 0x00007f9258978bf7 __libc_start_main
#23 0x000055b3cfa45779 _start
TID 12847:
#0  0x00007f9258a3b7a0 __nanosleep
#1  0x00007f9258a6e657 usleep
#2  0x000055b3cfa6756a __interceptor_usleep
#3  0x000055b3cface9a4 __tsan::BackgroundThread(void*)
#4  0x00007f92592f56db start_thread
#5  0x00007f9258a7871f __clone
TID 12848:
#0  0x00007f9258a78a47 epoll_wait
#1  0x000055b3cfa70079 __interceptor_epoll_wait
#2  0x000055b3cfae3bb8 dart::bin::EventHandlerImplementation::Poll(unsigned long)
#3  0x000055b3cfb0f0aa dart::bin::ThreadStart(void*)
#4  0x000055b3cfa69c0d __tsan_thread_start_func
#5  0x00007f92592f56db start_thread
#6  0x00007f9258a7871f __clone



stdout:
Running pkg/vm/tool/gen_kernel --aot --platform=out/ReleaseTSANX64/vm_platform_strong.dill -o /b/s/w/ith5o2fkeb/ttsLOMBKZ/script.dart.dill /b/s/w/ith5o2fkeb/ttsLOMBKZ/script.dart
Subcommand terminated with exit code 0.
Running out/ReleaseTSANX64/gen_snapshot --snapshot-kind=app-aot-elf --elf=/b/s/w/ith5o2fkeb/ttsLOMBKZ/script.dart.dill.elf /b/s/w/ith5o2fkeb/ttsLOMBKZ/script.dart.dill

--- Re-run this test:
python3 tools/test.py -n dartkp-tsan-linux-release-x64 vm/dart_2/regress_45898_test
@alexmarkov alexmarkov added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. gardening labels Aug 31, 2021
@a-siva
Copy link
Contributor

a-siva commented Aug 31, 2021

Should this test be marked as slow under TSAN also? The current status file marks it as slow for
$compiler == dartkp && ($arch == simarm || $arch == simarm64 || $arch == simarm64c)

It seems to generate an example that causes generattion of type testing stubs for 10000 classes.

The stack trace above doesn't show any kind of hang situation the compiler seems to be compiling stuff and maybe it just takes longer.

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. gardening
Projects
None yet
Development

No branches or pull requests

2 participants