Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4109

Static Initialization Deadlock between COSNumber/COSInteger (2)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.5, 2.0.8
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Written by Joseph Smith in PDFBOX-3698:

      public class PDFBox3698
      {
          public static void main(String[] args) throws ClassNotFoundException, InterruptedException
          {
              Thread thread = new Thread(new Runnable() {
                  @Override
                  public void run() {
                      try {
                          Class.forName(COSNumber.class.getName(), true, COSNumber.class.getClassLoader());
                      } catch (ClassNotFoundException ex) {
                          //
                      }
                  }
              });
              thread.start();
              Class.forName(COSInteger.class.getName(), true, COSInteger.class.getClassLoader());
              thread.join();
          }
      }
      

      I was able to reproduce in 2.0.5 with a few executions.

      I downloaded 3.0.0-SNAPSHOT 453 and ran the test against it and I can no longer reproduce the issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tilman Tilman Hausherr
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: