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

Calling addNotify() at the wrong time can crash java

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5

      Description

      Calling addNotify on a component at the wrong time can cause the java runtime to crash sometime later. As far as I've been able to track down, it happens like this: if addNotify gets called for a component twice, the peer created the first time is discarded but not destroyed. The X window for the peer still exists and the Xt event handler is still set. If, then, the discarded peer gets garbage-collected, if an event happens for the peer's X window, the event handler tries to act on a null object and dies with a segmentation fault.

        Attachments

          Activity

            People

            Assignee:
            rramsunw Ranganathan Ram (Inactive)
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: