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

Showing PopupMenus can segfault on Solaris (bad fix for 4186663)

XMLWordPrintable

    • kestrel
    • sparc
    • solaris_7



      Name: dsC76792 Date: 08/25/99

      ###@###.###

      Fix for bug id 4186663 caused numerous segfaults when using popup menus.
      (bug ids 4214550 and 4255998).
      ======================================================================

      Name: dsC76792 Date: 08/25/99



      Your fix to Bug 4186663 caused a crash because you did not clear the
      activePopup field when the PopupMenu poppped down. A subsequent popupmenu
      popped up on the same component would dereference the bad pointer
      wdata->activePopup when Java_sun_awt_motif_MPopupMenuPeer_pShow called
      XtIsObject.
        
      I attempted to fix this in Bug 4214550 by clearing wdata->activePopup in
      Popup_popdownCB in awt_PopupMenu.c. However that introduced Bug 4255998,
      in which the component that wdata belongs to is removed before the
      Popup_popdownCB is called. That component is the one the popupmenu is popped
      up on. This caused a crash when attempting to clear the wdata->activePopup
      in Popup_popdownCB, which generated Bug 4255998.
        
      If I back out my fix to Bug 4214550, that will reintroduce the bug caused
      by your fix to Bug 4186663. Do you have an alternative fix to Bug 4186663 ?

      ======================================================================

            dassunw Das Das (Inactive)
            dassunw Das Das (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: