Andy Piper <andy(a)xemacs.org> writes:
[1 <text/plain; us-ascii (7bit)>]
At 02:16 PM 1/24/00 +0300, Nick V. Pakoulin wrote:
>I built xemacs-21.2.27 an played a little with it and it's tabs. And it
>crashed. It might be interesting - short before a crash I invoked wininfo
and
This is the same crash Ray is seeing. Please try the attached patch (Ray is
testing it too) to see if it fixes things. I am going to commit this very
soon unless it becomes clear that it does not solve the problem.
andy
[2 tb.patch <text/plain; us-ascii (7bit)>]
--- xlwtabs.c~ Mon Jan 03 09:36:21 2000
+++ xlwtabs.c Tue Jan 18 10:01:31 2000
@@ -1255,6 +1255,7 @@
if( !XtIsRealized(w) ) {
tw->tabs.topWidget = w ;
tw->tabs.needs_layout = True ;
+ tw->tabs.hilight = NULL; /* The highlight tab might disappear. */
return ;
}
@@ -1265,6 +1266,14 @@
#endif
tab = (TabsConstraints) w->core.constraints ;
+
+ /* Unhighlight before we start messing with the stacking order. */
+ if( tw->tabs.hilight != NULL )
+ {
+ DrawHighlight(tw, tw->tabs.hilight, True) ;
+ tw->tabs.hilight = NULL;
+ }
+
if( tab->tabs.row == 0 )
{
/* Easy case; undraw current top, undraw new top, assign new
@@ -1307,8 +1316,6 @@
if( XtIsRealized(t) && w != tw->tabs.hilight )
{
- if( tw->tabs.hilight != NULL )
- DrawHighlight(tw, tw->tabs.hilight, True) ;
if( w != NULL )
DrawHighlight(tw, w, False) ;
}
[3 <text/plain; us-ascii (7bit)>]
Well, I applied the patch. There are two news - a good one and a bad one. The
bad one is that XEmacs crashed, the good one -- it lived longer and crashed due
to a reason I've never experienced yet.
---------------------------------------------------------------------------------
I read news via Gnus for about 30 minutes, then XEmacs hang for half a minute
and during that half-minute I got wininfo information.
xwininfo: Window id: 0x2c00025 "*Group*"
Root window id: 0x26 (the root window) (has no name)
Parent window id: 0x2400149 "kwm"
1 child:
0x2c00026 (has no name): () 743x579+0+0 +247+143
13 children:
0x2c001aa (has no name): () 720x15+4+530 +251+673
0x2c0017d (has no name): () 15x443+724+87 +971+230
0x2c000af (has no name): () 15x79+724+87 +971+230
0x2c0010c (has no name): () 15x282+724+183 +971+326
0x2c002c3 (has no name): () 144x21+0+0 +247+143
1 child:
0x2c002c4 (has no name): () 187x45+0+0 +248+144
3 children:
0x2c002cc (has no name): () 183x65511+1+67 +249+211
0x2c002ce (has no name): () 183x65511+1+67 +249+211
0x2c002cd (has no name): () 183x65511+1+67 +249+211
0x2c002ba (has no name): () 144x21+0+0 +247+143
1 child:
0x2c002bb (has no name): () 54x45+0+0 +248+144
1 child:
0x2c002c0 (has no name): () 50x65533+1+45 +249+189
0x2c002ae (has no name): () 416x21+4+66 +251+209
1 child:
0x2c002af (has no name): () 187x45+0+0 +251+209
3 children:
0x2c002d0 (has no name): () 183x65511+1+67 +252+276
0x2c002d2 (has no name): () 183x65511+1+67 +252+276
0x2c002d1 (has no name): () 183x65511+1+67 +252+276
0x2c00110 (has no name): () 720x15+4+530 +251+673
0x2c00234 (has no name): () 208x21+4+66 +251+209
1 child:
0x2c00235 (has no name): () 208x21+0+0 +251+209
2 children:
0x2c002da (has no name): () 204x65529+1+25 +252+234
0x2c002db (has no name): () 204x65529+1+45 +252+254
0x2c00105 (has no name): () 720x15+4+282 +251+425
0x2c00038 (has no name): () 144x21+0+0 +247+143
1 child:
0x2c00039 (has no name): () 75x45+0+0 +248+144
3 children:
0x2c0020e (has no name): () 71x65511+1+89 +249+233
0x2c0020c (has no name): () 71x65511+1+89 +249+233
0x2c0020d (has no name): () 71x65511+1+89 +249+233
0x2c00028 (has no name): () 743x554+0+25 +247+168
0x2c00027 (has no name): () 741x23+0+0 +247+143
---------------------------------------------------------------------------------
No LISP backtrace, sorry, because I started it from KPanel.
---------------------------------------------------------------------------------
Installation.
uname -a: Linux hookah 2.2.12-20 #1 Mon Sep 27 10:40:35 EDT 1999 i686 unknown
./configure '--with-pop' '--error-checking=none'
XEmacs 21.2-b27 "Hera" configured for `i686-pc-linux'.
Where should the build process find the source code? /usr/local/src/xemacs-21.2.27
What installation prefix should install use? /usr/local
What operating system and machine description files should XEmacs use?
`s/linux.h' and `m/intel386.h'
What compiler should XEmacs be built with? gcc -g -O3 -Wall -Wno-switch
Should XEmacs use the GNU version of malloc? yes
(Using Doug Lea's new malloc from the GNU C Library.)
Should XEmacs use the relocating allocator for buffers? yes
What window system should XEmacs use? x11
Where do we find X Windows header files? /usr/X11R6/include
Where do we find X Windows libraries? /usr/X11R6/lib
Athena library to link: Xaw
Athena header include path: X11/Xaw
Compiling in support for XAUTH.
Compiling in support for XPM images.
Compiling in support for PNG image handling.
Compiling in support for (builtin) GIF image handling.
Compiling in support for JPEG image handling.
Compiling in support for TIFF image handling.
Compiling in support for X-Face message headers.
Compiling in native sound support.
Compiling in support for Enlightened Sound Daemon (ESD).
Compiling in support for Berkeley DB.
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Compiling in support for proper WM_COMMAND handling.
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena native widgets.
Using Athena dialog boxes.
Compiling in dynamic shared object module support.
movemail will use "dot-locking" for locking mail spool files.
Using POP for mail access.
Compiling in extra code for debugging.
---------------------------------------------------------------------------------
gdb information.
hookah : npakoulin >$ gdb /usr/local/bin/xemacs core
GNU gdb 4.18
Copyright 1998 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-redhat-linux"...
Core was generated by `xemacs -l gnus-mime -f gnus'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/X11R6/lib/libXaw.so.6...done.
Reading symbols from /usr/lib/libtiff.so.3...done.
Reading symbols from /usr/lib/libpng.so.2...done.
Reading symbols from /usr/lib/libjpeg.so.62...done.
Reading symbols from /usr/lib/libz.so.1...done.
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libdb.so.3...done.
Reading symbols from /usr/lib/libgpm.so.1...done.
Reading symbols from /usr/lib/libncurses.so.4...done.
Reading symbols from /usr/lib/libesd.so.0...done.
Reading symbols from /usr/lib/libaudiofile.so.0...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /lib/libnss_nisplus.so.2...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libnss_nis.so.2...done.
Reading symbols from /lib/libnss_dns.so.2...done.
Reading symbols from /lib/libresolv.so.2...done.
#0 0x402df4e1 in __kill () from /lib/libc.so.6
(gdb) where
#0 0x402df4e1 in __kill () from /lib/libc.so.6
#1 0x8078a31 in fatal_error_signal (sig=11) at emacs.c:278
#2 0x402df408 in __restore () at ../sysdeps/unix/sysv/linux/i386/sigaction.c:127
#3 0x8159cb7 in XawTabsSetTop (w=0x868cf58, callCallbacks=1) at xlwtabs.c:1273
#4 0x815aa14 in TabsSelect (w=0x8835758, event=0xbffff758, params=0x0,
num_params=0x40137c54)
at xlwtabs.c:1073
#5 0x40129504 in HandleActions () from /usr/X11R6/lib/libXt.so.6
#6 0x401299e6 in HandleSimpleState () from /usr/X11R6/lib/libXt.so.6
#7 0x40129f21 in _XtTranslateEvent () from /usr/X11R6/lib/libXt.so.6
#8 0x401052f7 in XtDispatchEventToWidget () from /usr/X11R6/lib/libXt.so.6
#9 0x40105ead in _XtDefaultDispatcher () from /usr/X11R6/lib/libXt.so.6
#10 0x40106173 in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.6
#11 0x40111acf in XtAppProcessEvent () from /usr/X11R6/lib/libXt.so.6
#12 0x812d94c in emacs_Xt_next_event (emacs_event=0x87535c4) at event-Xt.c:2398
#13 0x809ae95 in event_stream_next_event (event=0x87535c4) at event-stream.c:566
#14 0x809bfac in next_event_internal (target_event=141899204, allow_queued=1)
at event-stream.c:2021
#15 0x809c4b6 in Fnext_event (event=141899204, prompt=136092100) at event-stream.c:2238
#16 0x8062efd in Fcommand_loop_1 () at cmdloop.c:566
#17 0x806311e in command_loop_1 (dummy=136092100) at cmdloop.c:490
#18 0x807fb1b in condition_case_1 (handlers=136092196, bfun=0x8063108
<command_loop_1>,
barg=136092100, hfun=0x8062a10 <cmd_error>, harg=136092100) at eval.c:1629
#19 0x80631fc in command_loop_2 (dummy=136092100) at cmdloop.c:252
#20 0x807f9ff in internal_catch (tag=136166052, func=0x80631c4 <command_loop_2>,
arg=136092100, threw=0x0) at eval.c:1304
#21 0x8062c4c in initial_command_loop (load_me=136092100) at cmdloop.c:301
#22 0x8077383 in xemacs_21_2_b27_i686_pc_linux (argc=5, argv=0xbffffc54, envp=0xbffffc6c,
restart=0) at emacs.c:1906
#23 0x8078c0f in main (argc=5, argv=0xbffffc54, envp=0xbffffc6c) at emacs.c:2331
#24 0x402d91eb in __libc_start_main (main=0x8078b10 <main>, argc=5,
argv=0xbffffc54,
init=0x804dbf8 <_init>, fini=0x815cad0 <_fini>, rtld_fini=0x4000a610
<_dl_fini>,
stack_end=0xbffffc4c) at ../sysdeps/generic/libc-start.c:90
---------------------------------------------------------------------------------
Hope this is helpful.
--------------------------------------------------------------
Dr Andy Piper
Senior Consultant Architect, BEA Systems Ltd
Nick.