Hi there,

Yesterday I realized a reproducable crash of fvwm 2.5.2 and X when
using a menu which is created by fvwm-menu-directory:

DestroyFunc FuncFvwmMenuDirectory
AddToFunc FuncFvwmMenuDirectory I PipeRead "fvwm-menu-directory \
  --icon-dir=mini_filesystems.folder.xpm \
  --icon-file=mini_filesystems.File.xpm  \
  --icon-app=mini_filesystems.exec.xpm $1 --exec-file=jed --dir=$0"

DestroyMenu myFileBrowserMenu
AddToMenu myFileBrowserMenu "File Browser" Title
+ MissingSubmenuFunction FuncFvwmMenuDirectory
+ "Files"       Popup $[HOME]
+ "Files (All)" Popup $[HOME] "--all"

fvwm does not crash immediately. When using the menu above repeatedly
and using other menus between them it crashes. I could reproduce this
behavior several times.

I used gdb to see where the crash comes from. The output of gdb which
contains the stack trace after the crash is attached to this mail.

Linux Kernel 2.4.17
XFree86 Version 3.3.6
GNU gdb 5.0

Uwe
-- 
+----------------------------------------------
| Uwe Pross
| mail : mailto:[EMAIL PROTECTED]
| www  : http://www.tu-chemnitz.de/~uwp
+----------------------------------------------

Have a nice day ;-).

-----------------------------------------------
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-suse-linux"...
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
FvwmTheme is obsolete, see the Colorset section of the fvwm(1) man page
nelix being added to access control list
INFO: imwheel started (pid=1885)
Starting xterm -geometry 105x36+0+0...
Starting xemacs -geometry 111x43+0+1320...

Program received signal SIGSEGV, Segmentation fault.
0x8052f6f in paint_menu (mr=0x8153518, pevent=0x80bec80, fw=0x8158880)
    at menus.c:4116
4116    menus.c: No such file or directory.
#0  0x8052f6f in paint_menu (mr=0x8153518, pevent=0x80bec80, fw=0x8158880)
    at menus.c:4116
#1  0x8055a90 in menu_expose (event=0x80bec80, fw=0x8158880) at menus.c:6190
#2  0x804f6e6 in MenuInteraction (pmp=0xbfffee2c, pmret=0xbffff010, 
    pdkp=0xbfffec90, pdo_warp_to_title=0x80bb898) at menus.c:1847
#3  0x805573e in do_menu (pmp=0xbfffee2c, pmret=0xbffff010) at menus.c:6051
#4  0x80502f8 in MenuInteraction (pmp=0xbffff020, pmret=0xbffff010, 
    pdkp=0xbfffef50, pdo_warp_to_title=0x80bb898) at menus.c:2316
#5  0x805573e in do_menu (pmp=0xbffff020, pmret=0xbffff010) at menus.c:6051
#6  0x809b7b5 in menu_func (cond_rc=0x0, eventp=0x80bec80, w=54525966, 
    fw=0x8158880, context=1, action=0x80da4dd "   WORK_MENU_popup Nop", 
    Module=0xbffff1c0, fStaysUp=1) at menucmd.c:147
#7  0x809b85c in CMD_Menu (cond_rc=0x0, eventp=0x80bec80, w=54525966, 
    fw=0x8158880, context=1, action=0x80da4dd "   WORK_MENU_popup Nop", 
    Module=0xbffff1c0) at menucmd.c:171
#8  0x807e02c in execute_function (efa=0xbffff1a8) at functions.c:911
#9  0x807e1a1 in old_execute_function (cond_rc=0x0, 
    action=0x8147180 "Menu    WORK_MENU_popup Nop", fw=0x8158880, 
    eventp=0x80bec80, context=1, Module=-1, exec_flags=0, args=0x0)
    at functions.c:996
#10 0x806e1b2 in HandleButtonPress () at events.c:582
#11 0x80713da in DispatchEvent (preserve_Fw=0) at events.c:3136
#12 0x8071470 in HandleEvents () at events.c:3191
#13 0x8084a34 in main (argc=1, argv=0xbffff6f4) at fvwm.c:720
#14 0x401c9baf in __libc_start_main () from /lib/libc.so.6
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0x4800002
  Serial number of failed request:  208
  Current serial number in output stream:  208
X connection to :0.0 broken (explicit kill or server shutdown).

xemacs: Fatal I/O Error 32 (Broken pipe) on display connection ":0.0"
  after 824 requests (699 known processed) with 0 events remaining.
X connection to :0.0 broken (explicit kill or server shutdown).
xterm:  fatal IO error 32 (Broken pipe) or KillClient on X server ":0.0"
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  61 (X_ClearArea)
  Resource id in failed request:  0x3800002
  Serial number of failed request:  599
  Current serial number in output stream:  702
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  61 (X_ClearArea)
  Resource id in failed request:  0x3c00002
  Serial number of failed request:  240
  Current serial number in output stream:  255
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  61 (X_ClearArea)
  Resource id in failed request:  0x4000002
  Serial number of failed request:  108
  Current serial number in output stream:  119
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  61 (X_ClearArea)
  Resource id in failed request:  0x4400002
  Serial number of failed request:  655
  Current serial number in output stream:  778

Reply via email to