jan.hagen(a)gmx.de wrote:
In XEmacs 21.5 (beta2) "artichoke" [Lucid] (i686-pc-linux,
Mule) of Fri Aug 10 2001 on jan
configured using `configure --prefix=/usr/local/Packages/Tools/XEmacs --with-sound=native
--with-mule --x-libraries=/usr/X11R6/lib/ -without-msw'
I was working on al latex document. When right-clicking, xemacs was
asking for a master file. A file selector popped up. When selecting
the proper file with the middle buttom of the mouse xemcs crashed.
"gdb /usr/local/bin/xemacs core" (gdb)where yields:
#0 0x40560071 in kill () from /lib/libc.so.6
#1 0x80c0503 in fatal_error_signal ()
#2 <signal handler called>
#3 0x402af742 in XtDisplayOfObject () from /usr/X11R6/lib/libXt.so.6
#4 0x401482d8 in unset_current_xic () from /usr/local/lib/libXm.so.2
#5 0x40145941 in _XmImFreeShellData () from /usr/local/lib/libXm.so.2
#6 0x4014e57c in Destroy () from /usr/local/lib/libXm.so.2
#7 0x402a4160 in Phase2Destroy () from /usr/X11R6/lib/libXt.so.6
#8 0x402a457e in XtPhase2Destroy () from /usr/X11R6/lib/libXt.so.6
#9 0x402a487d in XtDestroyWidget () from /usr/X11R6/lib/libXt.so.6
This looks like the input-method-motif.c bug, for which a patch is
attached.
--
Glynn Clements <glynn.clements(a)virgin.net>
Index: src/input-method-motif.c
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/src/input-method-motif.c,v
retrieving revision 1.11.2.2
diff -u -r1.11.2.2 input-method-motif.c
--- src/input-method-motif.c 2001/05/17 13:37:45 1.11.2.2
+++ src/input-method-motif.c 2001/07/18 19:48:47
@@ -94,6 +94,13 @@
/* Nothing to do */
}
+/* Callback for the deleting frame. */
+static void
+XIM_delete_frame (Widget w, XtPointer client_data, XtPointer call_data)
+{
+ XmImUnregister ((Widget) client_data);
+}
+
void
XIM_init_frame (struct frame *f)
{
@@ -152,6 +159,8 @@
NULL);
XmFontListEntryFree (&fontlistEntry);
+
+ XtAddCallback (w, XmNdestroyCallback, XIM_delete_frame, (XtPointer) w);
}
void