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

Component.setFont() leaks memory.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 1.1.6
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Calling Component.setFont() leaks memory. The simple test case attached, which calls this method on one component about three times a second, demonstates this behavior. This testcase running for 22 hours increased the VM's process space to 519Megs (Solaris 2.5.1) before the VM eventually ran out of memory and dumped core. The following is the msg it spit out before it died--core file was not complete due to lack of disk space.

      java.lang.NullPointerException
      at java.awt.Component.setFont(Component.java:634)
      at AutoThread.run(FontTest.java:159)
      SIGBUS 10* bus error
          si_signo [10]: SIGBUS 10* bus error
          si_errno [12]: Not enough space
          si_code [3]: BUS_OBJERR [addr: 0xeecc2000]

      stackbase=EECE2000, stackpointer=EECE01D0

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: