JDK-8170130 : Compilation fails with "assert(counter_changed) failed: failed dependencies, but counter didn't change"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Incomplete
  • Submitted: 2016-11-21
  • Updated: 2016-11-25
  • Resolved: 2016-11-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Relates :  
Description
Alan Snyder has reported a non-reproducible crash.  The crash report is attached.

He says:
I thought I would pass this on in case it is of interest. It is not repeatable. It is on a recent personal build of JDK 9.

Current CompileTask:
C2: 327682 6561       4       javax.swing.JComponent::setEnabled (29 bytes)

Stack: [0x0000000129eb4000,0x0000000129fb4000],  sp=0x0000000129fb1b80,  free space=1014k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.dylib+0xbca6f3]  VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x425
V  [libjvm.dylib+0xbcaeb6]  VMError::report_and_die(Thread*, char const*, int, char const*, char const*, __va_list_tag*)+0x4a
V  [libjvm.dylib+0x47bebb]  report_vm_error(char const*, int, char const*, char const*, ...)+0xcd
V  [libjvm.dylib+0x354e52]  ciEnv::validate_compile_task_dependencies(ciMethod*)+0x1b8
V  [libjvm.dylib+0x355564]  ciEnv::register_method(ciMethod*, int, CodeOffsets*, int, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, bool, bool, RTMState)+0x6da
V  [libjvm.dylib+0x41bf32]  Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0xe32
V  [libjvm.dylib+0x41e993]  Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x31
V  [libjvm.dylib+0x322ba5]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x139
V  [libjvm.dylib+0x42f01f]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x7bb
V  [libjvm.dylib+0x42e528]  CompileBroker::compiler_thread_loop()+0x2e0
V  [libjvm.dylib+0xb61804]  JavaThread::thread_main_inner()+0x1f6
V  [libjvm.dylib+0xb6144a]  JavaThread::run()+0x3cc
V  [libjvm.dylib+0x9cdb02]  thread_native_entry(Thread*)+0x12b
C  [libsystem_pthread.dylib+0x405a]  _pthread_body+0x83
C  [libsystem_pthread.dylib+0x3fd7]  _pthread_body+0x0
C  [libsystem_pthread.dylib+0x13ed]  thread_start+0xd
Comments
According to Alan, he "was running a program under IDEA and that a breakpoint was being processed (see Thread 41:: Java: AWT-EventQueue-0).". This showed up only once and we neither have a core file nor the command line output (which should contain detailed information about the violated dependencies). I'm leaving this closed as incomplete as long as the problem does not show up in a more reproducible manner.
25-11-2016

I attached the hs_err file provided by Alan. The issue looks similar to JDK-8030662.
23-11-2016

I wrote an email to Alan asking about more information (hs_err* file and/or core file). Closing this as incomplete until we receive enough information to investigate.
22-11-2016

Do you have hs_err* file? Call stack. Something was wrong in ciEnv::validate_compile_task_dependencies(): Thread 29 Crashed:: Java: C2 CompilerThread1 0 libsystem_kernel.dylib 0x00007fff8cdf9286 __pthread_kill + 10 1 libsystem_c.dylib 0x00007fff9028e9a3 abort + 129 2 libjvm.dylib 0x000000010b1ce349 os::abort(bool, void*, void const*) + 223 3 libjvm.dylib 0x000000010b3cad1b VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long) + 2637 4 libjvm.dylib 0x000000010b3caeb6 VMError::report_and_die(Thread*, char const*, int, char const*, char const*, __va_list_tag*) + 74 5 libjvm.dylib 0x000000010ac7bebb report_vm_error(char const*, int, char const*, char const*, ...) + 205 6 libjvm.dylib 0x000000010b1d406b os::get_sender_for_C_frame(frame*) + 101 7 libjvm.dylib 0x000000010ac7d57e print_native_stack(outputStream*, frame, Thread*, char*, int) + 124 8 libjvm.dylib 0x000000010b3c94af VMError::report(outputStream*, bool) + 4699 9 libjvm.dylib 0x000000010b3ca6f3 VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long) + 1061 10 libjvm.dylib 0x000000010b3caeb6 VMError::report_and_die(Thread*, char const*, int, char const*, char const*, __va_list_tag*) + 74 11 libjvm.dylib 0x000000010ac7bebb report_vm_error(char const*, int, char const*, char const*, ...) + 205 12 libjvm.dylib 0x000000010ab54e52 ciEnv::validate_compile_task_dependencies(ciMethod*) + 440 13 libjvm.dylib 0x000000010ab55564 ciEnv::register_method(ciMethod*, int, CodeOffsets*, int, CodeBuffer*, int, OopMapSet*, ExceptionHandlerTable*, ImplicitExceptionTable*, AbstractCompiler*, bool, bool, RTMState) + 1754 14 libjvm.dylib 0x000000010ac1bf32 Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*) + 3634 15 libjvm.dylib 0x000000010ac1e993 Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*) + 49 16 libjvm.dylib 0x000000010ab22ba5 C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*) + 313 17 libjvm.dylib 0x000000010ac2f01f CompileBroker::invoke_compiler_on_method(CompileTask*) + 1979 18 libjvm.dylib 0x000000010ac2e528 CompileBroker::compiler_thread_loop() + 736 19 libjvm.dylib 0x000000010b361804 JavaThread::thread_main_inner() + 502 20 libjvm.dylib 0x000000010b36144a JavaThread::run() + 972 21 libjvm.dylib 0x000000010b1cdb02 thread_native_entry(Thread*) + 299 22 libsystem_pthread.dylib 0x00007fff8c02605a _pthread_body + 131 23 libsystem_pthread.dylib 0x00007fff8c025fd7 _pthread_start + 176 24 libsystem_pthread.dylib 0x00007fff8c0233ed thread_start + 13
21-11-2016