des...@verizon.net writes:

> Thomas Adam <thomas.ada...@gmail.com> writes:
>
>> On Sat, Jan 02, 2010 at 12:25:05PM -0500, des...@verizon.net wrote:
>>> Thomas Adam <thomas.ada...@gmail.com> writes:
>>> 
>>> > All,
>>> >
>>> > Are there any outstanding bug-fixes which haven't yet been looked into, 
>>> > but
>>> > were at one point reported to this list?
>>> 
>>> I can't say I reported it, but pinning an Fvwm menu and then clicking on
>>> the window button to "Delete" the menu terminates Fvwm.
>>
>> Don't suppose you know who did?  :)
>
> I can't remember anyone reporting it.
>
>> I can't reproduce this -- I'm tearing-off as many menus as I can, and then
>> have bound to button 1, the command "Close".  That closes the menu just
>> fine, leaving FVWM running just fine.  I repeated the same thing with the
>> "Delete" and "Destroy" commands as well.  Same result:  no bug.  :)
>>
>> Is there anything more I have to do to try and reproduce this, do you know?
>
> Got to run more tests...back later.

Okay, a bit more to this than I thought.

I bring up a menu, pin it with button 2 on the title bar, then
click on a pixmap on the title bar with an X.
The button is bound to:

DestroyDecor recreate DecorBase
AddToDecor DecorBase
+ AddButtonStyle 4 Pixmap mini.delete.xpm mini.destroy.xpm
Mouse 0   4 A     Function "CloseIt"
Style "*" UseDecor DecorBase, ColorSet 3

DestroyFunc CloseIt
AddToFunc CloseIt "C"  Delete
+                 "D"  Destroy

I single click so I think I'm running Delete on the window.

What really happens is Fvwm crashes.  Here's the back trace:

(gdb) where
#0  PDestroyFvwmPicture (dpy=0x89c0c80, p=0xc8)
    at ../../version-2_5_29/libs/Picture.c:182
#1  0x08098225 in menustyle_free_face (mf=0x8a8d9dc)
    at ../../version-2_5_29/fvwm/menustyle.c:88
#2  0x080991c1 in menustyle_free (ms=0x8a8d9d0)
    at ../../version-2_5_29/fvwm/menustyle.c:466
#3  0x08055128 in do_menu_close_tear_off_menu (mp=
        {menu = 0x8a8ff60, parent_menu = 0x0, parent_item = 0x0, pexc = 
0xbf98e558, tear_off_root_menu_window = 0x0, ret_paction = 0x0, 
event_propagate_to_submenu = 0x0, pops = 0x0, screen_origin_x = 0, 
screen_origin_y = 0, flags = {has_default_action = 0, is_already_mapped = 0, 
is_first_root_menu = 0, is_invoked_by_key_press = 0, is_sticky = 0, is_submenu 
= 0, is_triggered_by_keypress = 0}}, 
    mr=0x8a8ff60) at ../../version-2_5_29/fvwm/menus.c:5718
#4  menu_close_tear_off_menu (mp=
        {menu = 0x8a8ff60, parent_menu = 0x0, parent_item = 0x0, pexc = 
0xbf98e558, tear_off_root_menu_window = 0x0, ret_paction = 0x0, 
event_propagate_to_submenu = 0x0, pops = 0x0, screen_origin_x = 0, 
screen_origin_y = 0, flags = {has_default_action = 0, is_already_mapped = 0, 
is_first_root_menu = 0, is_invoked_by_key_press = 0, is_sticky = 0, is_submenu 
= 0, is_triggered_by_keypress = 0}}, 
    mr=0x8a8ff60) at ../../version-2_5_29/fvwm/menus.c:5831
#5  0x0806eb91 in HandleClientMessage (ea=0xbf98e668)
    at ../../version-2_5_29/fvwm/events.c:1812
#6  0x0806b2a9 in dispatch_event (e=0xbf98e6a0)
    at ../../version-2_5_29/fvwm/events.c:4105
#7  0x0806b9b5 in HandleEvents () at ../../version-2_5_29/fvwm/events.c:4149
#8  0x0808d785 in main (argc=1, argv=0xbf98ee34)
    at ../../version-2_5_29/fvwm/fvwm.c:2581

Reply via email to