Gag, I wish we could figure this out and fix it. This has got to be in the
top 3 bugs under UNIX. Its possible that this is exacerbated by old and
buggy Motif libraries. Please check PROBLEMS for information on what patches
are needed for Solaris.
andy
-----Original Message-----
From: xemacs-beta-admin(a)xemacs.org
[mailto:xemacs-beta-admin@xemacs.org]On Behalf Of Binu Jose Philip
Sent: Wednesday, October 10, 2001 11:52 PM
To: xemacs-beta(a)xemacs.org
Subject: Xemacs hangs while repainting frame
In XEmacs 21.4 (patch 2) "Developer-Friendly Unix APIs" [Lucid]
(sparc-sun-solaris2.8, Mule) of Tue Jun 19 2001 on tycoon
configured using `configure --without-gcc
--prefix=/net/tycoon/space/Xemacs
--site-includes=/usr/local/include:/opt/gnome-1.4/include
--site-libraries=/usr/local/lib:/opt/gnome-1.4/lib --with-jpeg
--with-xpm --with-png --with-ncurses --with-workshop
--with-tooltalk --with-mule --external-widget
--package-path=/net/tycoon/space/xemacs-packages'
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
Once in a while, when I switch desktops, Xemacs hangs while repainting
the frame. Usually I have emacs frames (may be more than one) in all
my desktops - 10 of them. I can't reproduce this at will, but this
occurs almost every day and is not dependant on how long it has been
running. I can't relate it with the X/system load also. I am running
Windowmaker on top of openwindows. I tried using Xemacs 21.5 beta and
there also ran into the same trouble.
This was the stack at the time of hang.
1904: /home/binu/bin/Xemacs
feb994bc poll (ffbeea50, 1, ffffffff)
feb4c770 select (7, 0, febbb1d4, febbb1d4, ffbeeb00, ffbeea50) + 2cc
fee9bdb8 _XWaitForReadable (6, 1, ffbeeb00, 40, 21af8, feb9b94c) + e4
fee9bbd0 _XRead (ffffffff, ffbeeca8, 20, 20, 20, ffbeeca8) + e8
fee9cc28 _XReply (69b800, a858, 0, 40960, 4a858, 0) + 154
feeb0144 XAllocColor (69b800, 2400001, ffbeed98, 8, 8, ffbeed10) + 9c
00268c90 allocate_nearest_color (69b800, 2400001, 674e00,
ffbeed98, 216a9541, 272f74) + 268
0026e21c x_generate_shadow_pixels (c6c5cb, 674e00, 0, 2400001,
1, 69b800) + 178
0026bf1c x_bevel_area (3e8200, 1000c, 3dd600, 0, 2, 0) + cc
00207058 bevel_modeline (abfc00, 69a200, 4, 3, 2, ef2000) + 158
0026be38 x_output_display_block (0, 0, 0, 0, 5, 244) + 8b8
00202528 compare_display_blocks (1, abfc00, 53, 0, 1, e08800) + 294
0020298c output_display_line (abfc00, 24b, cc6000, f2a140, 0, 0) + 280
00206d08 redisplay_output_window (abfc00, ffffffff, ffffffff,
39, 69a200, 39) + 290
001f9224 redisplay_window (abfc00, 2d95, 1, cc6000, cc6000,
3dd600) + 1078
001f96a0 redisplay_frame (3dd600, 69a200, 313bd0, 30c400, 0,
e6a628) + 244
001f9a90 redisplay_device (69a200, 313bd0, 3dd600, 0, 0, 378fc0) + 26c
001fa0b0 redisplay_without_hooks (6a41b4, 313bd0, 69a200, 1, 0,
6a416c) + 338
00118368 Fnext_event (313bd0, 3120c8, 311c00, 340804, 313c00, 1) + 3f8
000797dc Fcommand_loop_1 (0, 30c400, 313800, 312000, ffbef4cc,
a63190) + 18c
000a8418 condition_case_1 (305c00, 313c00, 312000, 78ecc,
340804, 0) + 110
00079108 command_loop_2 (313bd0, 790c0, 0, 0, 0, 0) + 48
000a75f4 internal_catch (3541b4, 790c0, 340804, 0, 0, 0) + b0
000792e4 initial_command_loop (311b48, 313bd0, 311c00, 5bcedc,
3ce634, 5bce6c) + 1bc
0009d53c xemacs_21_4_2_sparc_sun_solaris2_8 (1, 335000, 340804,
ffbef7f0, ffbef904, 2ca400) + 1378
0009df8c main (1, ffbef904, ffbef90c, 2f7400, 0, 0) + b8
0004a2d4 _start (0, 0, 0, 0, 0, 0) + dc
I did a straight kill and then the stack was this:
1904: /home/binu/bin/Xemacs
feb994c0 _poll (d, 0, ffbef138, ffbef0b8, ffbef038, ffbeef20) + 8
fef8bcc0 _XtWaitForSomething (3dc400, 0, 0, 1, f4240, 0) + 1e4
fef90e94 XtAppPending (4, 1, 2, 4, 3dc400, 1) + 264
0025bed4 emacs_Xt_event_pending_p (1, 313bd0, 3143e0, 0, 0,
10406d1) + 140
001182a8 Fnext_event (313bd0, 3120c8, 311c00, 340804, 313c00, 1) + 338
000797dc Fcommand_loop_1 (0, 312000, 313800, 312000, ffbef4cc,
a63184) + 18c
000a8418 condition_case_1 (305c00, 313c00, 312000, 78ecc,
340804, 0) + 110
00079108 command_loop_2 (313bd0, 790c0, b, fffffff8, 0, 104a9d5) + 48
000a75f4 internal_catch (3541b4, 790c0, 340804, 0, 340804, 18) + b0
000792e4 initial_command_loop (311b48, 313bd0, 334c00, 5bcedc,
3ce634, 5bce6c) + 1bc
0009d53c xemacs_21_4_2_sparc_sun_solaris2_8 (1, 335000, 340804,
ffbef7f0, ffbef904, 2ca400) + 1378
0009df8c main (1, ffbef904, ffbef90c, 2f7400, 0, 0) + b8
0004a2d4 _start (0, 0, 0, 0, 0, 0) + dc
b
I ran lsof and it gave this:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
xemacs-21 1904 binu cwd VDIR 264,2 4608 6266947 /home/binu
xemacs-21 1904 binu txt VREG 136,3 7058296 28065
/space/Xemacs/bin/xemacs-21.4.2
xemacs-21 1904 binu txt VREG 136,0 23780 78118
/usr/lib/liblayout.so.1
xemacs-21 1904 binu txt VREG 136,0 17096 101509
/usr/platform/sun4u/lib/libc_psr.so.1
xemacs-21 1904 binu txt VREG 136,0 24968 78265
/usr/lib/libmp.so.2
xemacs-21 1904 binu txt VREG 136,0 46932 78229
/usr/lib/libaio.so.1
xemacs-21 1904 binu txt VREG 136,0 382604 78279
/usr/lib/libresolv.so.2
xemacs-21 1904 binu txt VREG 136,0 513204 231055
/opt/gnome/lib/libaudiofile.so.0.0.0
xemacs-21 1904 binu txt VREG 136,0 115208 187482
/usr/openwin/lib/libdga.so.1
xemacs-21 1904 binu txt VREG 136,0 102424 78315
/usr/lib/libm.so.1
xemacs-21 1904 binu txt VREG 136,0 120240 187436
/usr/openwin/lib/libICE.so.6
xemacs-21 1904 binu txt VREG 136,0 57004 187470
/usr/openwin/lib/libSM.so.6
xemacs-21 1904 binu txt VREG 136,0 1136608 78232
/usr/lib/libc.so.1
xemacs-21 1904 binu txt VREG 136,0 67924 231032
/opt/gnome/lib/libz.so.1.1.3
xemacs-21 1904 binu txt VREG 136,0 42184 78250
/usr/lib/libgen.so.1
xemacs-21 1904 binu txt VREG 136,0 224200 78256
/usr/lib/libldap.so.4
xemacs-21 1904 binu txt VREG 136,0 70260 78288
/usr/lib/libsocket.so.1
xemacs-21 1904 binu txt VREG 136,0 888972 78268
/usr/lib/libnsl.so.1
xemacs-21 1904 binu txt VREG 136,0 41592 78281
/usr/lib/librt.so.1
xemacs-21 1904 binu txt VREG 136,0 150836 230884
/opt/gnome/lib/libesd.so.0.2.20
xemacs-21 1904 binu txt VREG 136,0 338384 97964
/usr/local/lib/libncurses.so.5.2
xemacs-21 1904 binu txt VREG 136,0 30356 231035
/opt/gnome/lib/libgdbm.so.2.0.0
xemacs-21 1904 binu txt VREG 136,0 4092380 230868
/opt/gnome/lib/libdb-3.0.so
xemacs-21 1904 binu txt VREG 136,0 967516 187471
/usr/openwin/lib/libX11.so.4
xemacs-21 1904 binu txt VREG 136,0 140332 187475
/usr/openwin/lib/libXext.so.0
xemacs-21 1904 binu txt VREG 136,0 477588 187480
/usr/openwin/lib/libXt.so.4
xemacs-21 1904 binu txt VREG 136,0 142400 187478
/usr/openwin/lib/libXmu.so.4
xemacs-21 1904 binu txt VREG 136,0 709444 187432
/usr/openwin/lib/libtt.so.2
xemacs-21 1904 binu txt VREG 136,0 145656 230802
/opt/gnome/lib/libjpeg.so.62.0.0
xemacs-21 1904 binu txt VREG 136,0 2427804 58581
/usr/dt/lib/libXm.so.4
xemacs-21 1904 binu txt VREG 136,0 101520 97987
/usr/local/lib/libXpm.so
xemacs-21 1904 binu txt VREG 136,0 178756 230715
/opt/gnome/lib/libpng.so.2.1.0.8
xemacs-21 1904 binu txt VREG 136,0 4624 78245
/usr/lib/libdl.so.1
xemacs-21 1904 binu txt VREG 136,0 195104 78129
/usr/lib/ld.so.1
xemacs-21 1904 binu 0r VCHR 13,2 0t0 245985
/devices/pseudo/mm@0:null
xemacs-21 1904 binu 1u VCHR 0,0 0t39200 245976
/devices/pseudo/cn@0:console
xemacs-21 1904 binu 2u VCHR 0,0 0t39200 245976
/devices/pseudo/cn@0:console
xemacs-21 1904 binu 3u FIFO 0x30001398220 0t0 1225
PIPE->0x30001398308
xemacs-21 1904 binu 4u FIFO 0x30001398308 0t1 1225
PIPE->0x30001398220
xemacs-21 1904 binu 5r DOOR 0,25 0t0 23064
door to nscd[215]
xemacs-21 1904 binu 6u FIFO 0x300017e6790 0t0 123
PIPE->0x30001217e20 (FA:->0x300000751a8)
xemacs-21 1904 binu 7u FIFO 0x30001216220 0t0 1230
PIPE->0x30001216308
xemacs-21 1904 binu 8u VCHR 23,7 0t123 246230
/devices/pseudo/clone@0:ptmx->ptm
xemacs-21 1904 binu 9u VCHR 23,4 0t26957 246230
/devices/pseudo/clone@0:ptmx->ptm
xemacs-21 1904 binu 10u VCHR 23,5 0t29937 246230
/devices/pseudo/clone@0:ptmx->ptm
xemacs-21 1904 binu 11u FIFO 0x300015c3b08 0t55 1231
PIPE->0x300015c3a20
cheers
Binu