-
Notifications
You must be signed in to change notification settings - Fork 937
Closed
Labels
Description
Describe the bug
Multiple tests related to leaf stack walking are failing
Expected vs. actual behavior
FAIL [89/91] StackwalkerTests.normalStackVM (args: leafFrame) (agentArgs: start,event=cpu,cstack=vm,file=%f.jfr) took 9.470 s
java.lang.AssertionError
at test.stackwalker.StackwalkerTests.normalStackVM(StackwalkerTests.java:85)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at one.profiler.test.Runner.run(Runner.java:124)
at one.profiler.test.Runner.main(Runner.java:188)
The collected stack traces are:
thread_start;_pthread_start;thread_native_entry;Thread::call_run;JavaThread::thread_main_inner;MonitorDeflationThread::monitor_deflation_thread_entry;Monitor::wait_without_safepoint_check;PlatformMonitor::wait;__psynch_cvwait 1
thread_start;_pthread_start;thread_native_entry;Thread::call_run;JavaThread::thread_main_inner;CompileBroker::compiler_thread_loop;CompileBroker::invoke_compiler_on_method;Compiler::compile_method;Compilation::Compilation;Compilation::compile_method;Compilation::compile_java_method;Compilation::emit_code_body;LIR_Assembler::emit_code;LIR_Assembler::emit_lir_list;LIR_Assembler::emit_op2 1
thread_start;_pthread_start;ThreadJavaMain;JavaMain;JNI_CreateJavaVM;Threads::create_vm;JvmtiExport::post_vm_initialized;VM::VMInit;Profiler::run;Profiler::runInternal;Profiler::start;Profiler::startTimer;jvmti_RunAgentThread;JvmtiEnv::RunAgentThread;JvmtiAgentThread::JvmtiAgentThread;os::create_thread;_pthread_create 1
thread_start;_pthread_start;ThreadJavaMain;JavaMain;jni_DestroyJavaVM;attach_current_thread;os::create_attached_thread;PosixSignals::hotspot_sigmask;__pthread_sigmask 1
thread_start;_pthread_start;ThreadJavaMain;JavaMain;jni_DestroyJavaVM;Threads::destroy_vm;before_exit;WatcherThread::stop;Monitor::wait;PlatformMonitor::wait;__psynch_cvwait 1
break_interpreted 1
break_interpreted;Java_jdk_internal_loader_NativeLibraries_load;JVM_LoadLibrary;os::Bsd::dlopen_helper;Profiler::dlopen_hook;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown 1
break_interpreted;Java_test_stackwalker_StackGenerator_leafFrame;_simd_expm1_f4 9
break_interpreted;Java_test_stackwalker_StackGenerator_leafFrame;_simd_cbrt_d8 556
break_interpreted;Java_test_stackwalker_StackGenerator_leafFrame;doCpuTask 33
FAIL [90/91] StackwalkerTests.normalStackVMX (args: leafFrame) (agentArgs: start,event=cpu,cstack=vmx,file=%f.jfr) took 10.107 s
java.lang.AssertionError
at test.stackwalker.StackwalkerTests.normalStackVMX(StackwalkerTests.java:61)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at one.profiler.test.Runner.run(Runner.java:124)
at one.profiler.test.Runner.main(Runner.java:188)
Fails, the stack traces are:
thread_start;_pthread_start;thread_native_entry;Thread::call_run;JavaThread::thread_main_inner;MonitorDeflationThread::monitor_deflation_thread_entry;Monitor::wait_without_safepoint_check;PlatformMonitor::wait;__psynch_cvwait 1
thread_start;_pthread_start;thread_native_entry;Thread::call_run;ConcurrentGCThread::run;G1ServiceThread::run_service;G1ServiceThread::wait_for_task;Monitor::wait_without_safepoint_check;PlatformMonitor::wait;__psynch_cvwait 1
thread_start;_pthread_start;ThreadJavaMain;JavaMain;JNI_CreateJavaVM;Threads::create_vm;JvmtiExport::post_vm_initialized;VM::VMInit;Profiler::run;Profiler::runInternal;Profiler::start;Profiler::startTimer;jvmti_RunAgentThread;JvmtiEnv::RunAgentThread;JvmtiAgentThread::JvmtiAgentThread;os::create_thread;_pthread_create;_kernelrpc_mach_vm_protect_trap 1
thread_start;_pthread_start;ThreadJavaMain;JavaMain;jni_DestroyJavaVM;Threads::destroy_vm;before_exit;WatcherThread::stop;Monitor::wait;PlatformMonitor::wait;__psynch_cvwait 1
break_interpreted;Java_java_io_UnixFileSystem_canonicalize0;JDK_Canonicalize 1
break_interpreted;Java_jdk_internal_loader_NativeLibraries_load;JVM_LoadLibrary;os::Bsd::dlopen_helper;Profiler::dlopen_hook;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown;unknown 1
break_interpreted;Java_test_stackwalker_StackGenerator_leafFrame;_simd_cbrt_d8 571
break_interpreted;Java_test_stackwalker_StackGenerator_leafFrame;doCpuTask 32
break_interpreted;Java_test_stackwalker_StackGenerator_leafFrame;_simd_expm1_f4 6
break_interpreted;InterpreterRuntime::_new;ConstantPool::klass_at_impl;SystemDictionary::resolve_or_fail;SystemDictionary::resolve_instance_class_or_null;SystemDictionary::load_instance_class;SystemDictionary::load_instance_class_impl;ClassLoader::load_class;JIMAGE_FindResource 1
Reproduction Steps
make test
Additional Information/Context
This only occurs on Mac OS x86, but both with OpenJDK head, 25 and 17.
Async-profiler version
head
Environment details
Mac OS x86