Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8311147

Occasional class file corruption

XMLWordPrintable

    • aarch64
    • os_x

      A DESCRIPTION OF THE PROBLEM :
      We are seeing occasional class-loading errors where the class name is incorrect. However runs of the same code on the same machine work fine both before and after so there is not class file corruption. We have been seeing similar issues for a while but assumed it was JDK-8282535. However it is still occurring on 17.0.7 so either it is a different bug or JDK-8282535 wasn't fixed.

      We see the error in CI about once a week. We don't really have the resources to try and get a smaller reproduction due to how rarely it occurs.

      Failed to instantiate SLF4J LoggerFactory
      Reported exception:
      java.lang.NoClassDefFoundError: java/util/concconcconScheduledExecutorService
      at org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:59)
      at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:50)
      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
      (private stack frames elided here)
      Caused by: java.lang.ClassNotFoundException: java.util.concconcconScheduledExecutorService
      at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
      at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
      at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
      ... 13 more

      Another case:

      2023-06-21T22:24:49.2787520Z Caused by: java.lang.ClassNotFoundException: javajavajavajavaja
      2023-06-21T22:24:49.2891960Z at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
      2023-06-21T22:24:49.2990310Z at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
      2023-06-21T22:24:49.3092380Z at java.base/java.lang.ClassLoader.loadClass(Unknown Source)



      FREQUENCY : rarely


            coleenp Coleen Phillimore
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: