JDK-8229385 : TestPromotionFailedEventWithParallelScavenge.java failed due to SIGSEGV
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 14
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2019-08-09
  • Updated: 2019-10-31
  • Resolved: 2019-10-31
Related Reports
Duplicate :  
Relates :  
Description
The following test failed in the JDK14 CI:

jdk/jfr/event/gc/detailed/TestPromotionFailedEventWithParallelScavenge.java	

Here's a snippet of the log file:

[12.013s][debug][gc,task,time   ] GC(46) 	[ thread-roots-marking-task 11895815300 11916621293 ]
[12.013s][debug][gc,task,time   ] GC(46) 	[ steal-marking-task 11916623958 11917792279 ]
[12.013s][debug][gc,task,time   ] GC(46) 	[ update-dense_prefix-task 11944401324 11963250833 ]
[12.013s][debug][gc,task,time   ] GC(46) 	[ steal-region-task 11963253834 11999963234 ]
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff6d177712, pid=66131, tid=3843
#
# JRE version: Java(TM) SE Runtime Environment (14.0+10) (fastdebug build 14-ea+10-299)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 14-ea+10-299, mixed mode, sharing, tiered, compressed oops, parallel gc, bsd-amd64)
# Problematic frame:
# C  [libsystem_platform.dylib+0x1712]  _platform_strlen+0x12
#
# Core dump will be written. Default location: /cores/core.66131
#
# An error report file with more information is saved as:
# /Volumes/Mesos/mesos/slaves/a1bab71e-a362-4507-81ed-9c72a04b09cc-S10/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/6c8f795f-69bf-470c-9288-eae13f24ab9c/runs/3b493730-b309-477c-86d9-69f91b2c2bdf/testoutput/test-support/jtreg_open_test_jdk_jdk_jfr/scratch/0/hs_err_pid66131.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 3843
Dumping core ...
];
 stderr: [
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "JFR Periodic Tasks"
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
]
 exitValue = 134

java.lang.RuntimeException: Expected to get exit value of [0]

	at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:455)
	at jdk.jfr.event.gc.detailed.ExecuteOOMApp.execute(ExecuteOOMApp.java:58)
	at jdk.jfr.event.gc.detailed.PromotionFailedEvent.test(PromotionFailedEvent.java:45)
	at jdk.jfr.event.gc.detailed.TestPromotionFailedEventWithParallelScavenge.main(TestPromotionFailedEventWithParallelScavenge.java:39)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.base/java.lang.Thread.run(Thread.java:830)

JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
Comments
Fixed as part of JDK-8226511 https://hg.openjdk.java.net/jdk/jdk/rev/c16ac7a2eba4#l51.23 // append the individual substrings - jio_snprintf(chunk_path, chunkname_max_len, "%s%s%s%s", repository_path_len, os::file_separator(), date_time_buffer, chunk_file_jfr_ext); + jio_snprintf(chunk_path, chunkname_max_len, "%s%s%s%s", repository_path, os::file_separator(), date_time_buffer, chunk_file_jfr_ext);
31-10-2019

Only bugs associated with a changeset should be closed as "fixed". This bug has been closed as a duplicate of JDK-8226511.
31-10-2019

ILW = HLM = P3
13-08-2019

--------------- T H R E A D --------------- Current thread (0x00007fcc31859800): JavaThread "DestroyJavaVM" [_thread_in_vm, id=3843, stack(0x0000700003f6b000,0x000070000406b000)] Stack: [0x0000700003f6b000,0x000070000406b000], sp=0x000070000406a170, free space=1020k Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libsystem_platform.dylib+0x1712] _platform_strlen+0x12 C [libsystem_c.dylib+0x45b65] __vfprintf+0x2207 C [libsystem_c.dylib+0x6c13b] __v2printf+0x1db C [libsystem_c.dylib+0x5156f] _vsnprintf+0x19a C [libsystem_c.dylib+0x51616] vsnprintf+0x44 V [libjvm.dylib+0x9f1488] os::vsnprintf(char*, unsigned long, char const*, __va_list_tag*)+0x12 V [libjvm.dylib+0x6f0a9d] jio_snprintf+0x88 V [libjvm.dylib+0x6372b3] JfrEmergencyDump::build_dump_path(char const*)+0x177 V [libjvm.dylib+0x65faaa] JfrRepository::open_chunk(bool)+0xb0 V [libjvm.dylib+0x65d047] JfrRecorderService::open_new_chunk(bool)+0x9b V [libjvm.dylib+0x65d313] JfrRecorderService::prepare_for_vm_error_rotation()+0x21 V [libjvm.dylib+0x65d24f] JfrRecorderService::rotate(int)+0x7d V [libjvm.dylib+0x637a25] JfrEmergencyDump::on_vm_shutdown(bool)+0x2f9 V [libjvm.dylib+0x60a5d4] before_exit(JavaThread*)+0x1b5 V [libjvm.dylib+0xb88e7c] Threads::destroy_vm()+0x168 V [libjvm.dylib+0x6b9814] jni_DestroyJavaVM+0x183 C [libjli.dylib+0x4806] JavaMain+0xa14 C [libjli.dylib+0x6ba4] ThreadJavaMain+0x9 C [libsystem_pthread.dylib+0x3305] _pthread_body+0x7e C [libsystem_pthread.dylib+0x626f] _pthread_start+0x46 C [libsystem_pthread.dylib+0x2415] thread_start+0xd siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000050
13-08-2019