JDK-8332501 : C2: fatal error: DEBUG MESSAGE: duplicated predicate failed which is impossible
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,21,22,23
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-05-19
  • Updated: 2024-05-21
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.
Other
tbdUnresolved
Description
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (c:\\sb\\prod\\1715804772\\workspace\\open\\src\\hotspot\\cpu\\x86\\macroAssembler_x86.cpp:832), pid=41668, tid=42240
#  fatal error: DEBUG MESSAGE: duplicated predicate failed which is impossible


---------------  T H R E A D  ---------------

Current thread (0x0000018f376e5700):  JavaThread "main"             [_thread_in_Java, id=42240, stack(0x00000064d5300000,0x00000064d5400000) (1024K)]

Stack: [0x00000064d5300000,0x00000064d5400000]
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0xc7af01]  os::win32::platform_print_native_stack+0x101  (os_windows_x86.cpp:235)
V  [jvm.dll+0xf3b8fb]  VMError::report+0x149b  (vmError.cpp:1010)
V  [jvm.dll+0xf3df9e]  VMError::report_and_die+0x80e  (vmError.cpp:1845)
V  [jvm.dll+0x540a9e]  report_fatal+0x7e  (debug.cpp:214)
V  [jvm.dll+0xb4829c]  MacroAssembler::debug64+0xcc  (macroAssembler_x86.cpp:832)
C  0x0000018f3fee0bac  (no source info available)

The last pc belongs to nmethod (printed below).
Lock stack of current Java thread (top to bottom):


Compiled method (c2) 1285    6             Test::mainTest (584 bytes)
 total in heap  [0x0000018f3fee0608,0x0000018f3fee0d38] = 1840
 relocation     [0x0000018f3fee06f0,0x0000018f3fee07d8] = 232
 constants      [0x0000018f3fee07e0,0x0000018f3fee0800] = 32
 main code      [0x0000018f3fee0800,0x0000018f3fee0d00] = 1280
 stub code      [0x0000018f3fee0d00,0x0000018f3fee0d28] = 40
 oops           [0x0000018f3fee0d28,0x0000018f3fee0d30] = 8
 metadata       [0x0000018f3fee0d30,0x0000018f3fee0d38] = 8
 immutable data [0x0000018f8d09f290,0x0000018f8d09f730] = 1184
 dependencies   [0x0000018f8d09f290,0x0000018f8d09f298] = 8
 nul chk table  [0x0000018f8d09f298,0x0000018f8d09f2b0] = 24
 handler table  [0x0000018f8d09f2b0,0x0000018f8d09f2c8] = 24
 scopes pcs     [0x0000018f8d09f2c8,0x0000018f8d09f608] = 832
 scopes data    [0x0000018f8d09f608,0x0000018f8d09f730] = 296

Comments
Christian, please have a look. Thanks!
21-05-2024

Reproduces since JDK 19 and also with JDK 17u with attached Test.java: java -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*Test*::* -XX:-TieredCompilation -Xbatch Test.java Might be a duplicate of JDK-8288981 (see JDK-8320920 -> JDK-8305428). ILW = Same as above issues = P3
21-05-2024