XEmacs 21.4-14 hangs when editres client asks 'Select widget in client'.
XEmacs 21.5 does not hang.
To reproduce.
Start xemacs
$ xemacs-21.4.14 -vanilla
Start editres
$ editres
In editres from menu 'Commands' issue the command 'Get Tree' and click on
XEmacs frame. The editres pane will display the tree of XEmacs widgets.
Then in editres from 'Tree' menu issue the command 'Select Widget in
Client'.
Click on XEmacs toolbar. Editres says that request is sent to the client,
XEmacs hangs, some time after Editres says that "it appears that this client
does not understand the Editres Protocol".
XEmacs prints in the console:
xemacs: X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 3 (X_GetWindowAttributes)
Resource id in failed request: 0x0
Serial number of failed request: 1797
Current serial number in output stream: 1798
Attaching to the process with GDB gives the following backtrace:
(gdb) where
#0 0xffffe002 in ?? ()
#1 0x401bfbd7 in _XRead () from /usr/X11R6/lib/libX11.so.6
#2 0x401c071d in _XReply () from /usr/X11R6/lib/libX11.so.6
#3 0x401aa3e7 in XGetWindowAttributes () from /usr/X11R6/lib/libX11.so.6
#4 0x40120c46 in _XEditResCheckMessages () from /usr/X11R6/lib/libXmu.so.6
#5 0x40120d0a in _XEditResCheckMessages () from /usr/X11R6/lib/libXmu.so.6
#6 0x40120d56 in _XEditResCheckMessages () from /usr/X11R6/lib/libXmu.so.6
#7 0x40120df0 in _XEditResCheckMessages () from /usr/X11R6/lib/libXmu.so.6
#8 0x4011f8de in _XEditResCheckMessages () from /usr/X11R6/lib/libXmu.so.6
#9 0x4011f843 in _XEditResCheckMessages () from /usr/X11R6/lib/libXmu.so.6
#10 0x40159f88 in XtDisownSelection () from /usr/X11R6/lib/libXt.so.6
#11 0x4015a2bf in XtDisownSelection () from /usr/X11R6/lib/libXt.so.6
#12 0x4014564d in _XtFreeWWTable () from /usr/X11R6/lib/libXt.so.6
#13 0x4014582d in XtDispatchEventToWidget () from /usr/X11R6/lib/libXt.so.6
#14 0x4014625d in _XtOnGrabList () from /usr/X11R6/lib/libXt.so.6
#15 0x4014657f in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.6
#16 0x4015272b in XtAppProcessEvent () from /usr/X11R6/lib/libXt.so.6
#17 0x0823a1e8 in emacs_Xt_next_event (emacs_event=0x85dbcec) at
/localhome/npak/src/xemacs-21.4.14/src/event-Xt.c:2750
#18 0x0811caba in event_stream_next_event (event=0x85dbcec) at
/localhome/npak/src/xemacs-21.4.14/src/event-stream.c:499
#19 0x08125131 in next_event_internal (target_event=140360940, allow_queued=1)
at /localhome/npak/src/xemacs-21.4.14/src/event-stream.c:1960
#20 0x0811e442 in Fnext_event (event=140360940, prompt=1080248156) at
/localhome/npak/src/xemacs-21.4.14/src/event-stream.c:2180
#21 0x080a6728 in Fcommand_loop_1 () at
/localhome/npak/src/xemacs-21.4.14/src/cmdloop.c:574
#22 0x080c61af in condition_case_1 (handlers=1080247796, bfun=0x80a6a00
<command_loop_1>, barg=1080248156, hfun=0x80a6a44 <cmd_error>,
harg=1080248156) at /localhome/npak/src/xemacs-21.4.14/src/eval.c:1652
#23 0x080a6c10 in command_loop_2 (dummy=1080248156) at
/localhome/npak/src/xemacs-21.4.14/src/cmdloop.c:256
#24 0x080c6085 in internal_catch (tag=-514, func=0x80a6bd0 <command_loop_2>,
arg=1080248156, threw=0x0)
at /localhome/npak/src/xemacs-21.4.14/src/eval.c:1318
#25 0x080a61da in initial_command_loop (load_me=-514) at
/localhome/npak/src/xemacs-21.4.14/src/cmdloop.c:305
#26 0x080c312d in xemacs_21_4_14_i686_pc_linux (argc=2, argv=0xbfffdbc4, envp=0xbfffdbd0,
restart=0)
at /localhome/npak/src/xemacs-21.4.14/src/emacs.c:2460
#27 0x080c3b21 in main (argc=-514, argv=0xfffffdfe, envp=0xfffffdfe) at
/localhome/npak/src/xemacs-21.4.14/src/emacs.c:2892
#28 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6
-------------------------------------------------------------------------------
XEmacs configuration
uname -a: Linux hookah 2.4.20-28.9 #1 Thu Dec 18 13:45:22 EST 2003 i686 i686 i386
GNU/Linux
/localhome/npak/src/xemacs-21.4.14/configure
'--srcdir=/localhome/npak/src/xemacs-21.4.14'
'--package-path=/usr/local/xemacs/' '--with-x11' '--with-xim=xlib'
'--with-scrollbars=athena' '--with-dialogs=athena'
'--with-widgets=athena' '--with-athena=3d' '--with-mule'
'--with-canna=no' '--with-wnn=no' '--with-pop' '--debug'
'--error-checking=all' '--pdump'
XEmacs 21.4.14 "Reasonable Discussion" configured for `i686-pc-linux'.
Compilation / Installation:
Source code location: /localhome/npak/src/xemacs-21.4.14
Installation prefix: /usr/local
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler: gcc -g -O3 -Wall -Wno-switch -Winline
-Wmissing-prototypes -Wsign-compare -fno-strict-aliasing -Wshadow
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Compiling in support for the Athena widget set:
- Athena headers location: X11/Xaw3d
- Athena library to link: Xaw3d
Using Lucid menubars.
Using Athena scrollbars.
Using Athena dialog boxes.
Using Athena native widgets.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Sound:
Compiling in support for sound (native).
Databases:
Compiling in support for Berkeley database.
Compiling in support for LDAP.
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for XIM (X11R5+ I18N input method).
- Using raw Xlib to provide XIM support.
Mail:
Compiling in support for POP mail retrieval.
Compiling in support for "dot-locking" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new portable dumper.
Compiling in support for extra debugging code.
WARNING: ---------------------------------------------------------
WARNING: Compiling in support for runtime error checking.
WARNING: XEmacs will run noticeably more slowly as a result.
WARNING: Error checking is on by default for XEmacs beta releases.
WARNING: ---------------------------------------------------------
-------------------------------------------------------------------------------
OS: Redhat 9, XFree 4.3.0, kwin window manager