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 ?
======================================================================
- relates to
-
JDK-4214550 Cricket Regression: Showing PopupMenus can segfault on Solaris
-
- Resolved
-
-
JDK-4186663 Pural PopupMenus appear at the same time.
-
- Closed
-