From xemacs-m  Wed Dec 18 03:34:14 1996
Received: from mail1.digital.com (mail1.digital.com [204.123.2.50])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with SMTP
	  id DAA02719 for <xemacs-beta@xemacs.org>; Wed, 18 Dec 1996 03:34:13 -0600 (CST)
Received: from clusaz.gvc.dec.com by mail1.digital.com (5.65 EXP 4/12/95 for V3.2/1.0/WV)
	id AA15571; Wed, 18 Dec 1996 00:55:49 -0800
Received: from fornet.gvc.dec.com by clusaz.gvc.dec.com; (5.65/1.1.8.2/19Sep95-8.2MPM)
	id AA03383; Wed, 18 Dec 1996 09:55:37 +0100
Received: by fornet.gvc.dec.com; (5.65v3.2/1.1.8.2/23Sep96-1024AM)
	id AA20469; Wed, 18 Dec 1996 09:55:38 +0100
Date: Wed, 18 Dec 1996 09:55:38 +0100
Message-Id: <9612180855.AA20469@fornet.gvc.dec.com>
From: Steve Carney <carney@gvc.dec.com>
To: xemacs-beta@xemacs.org
Subject: RE: XEmacs 19.15-b4 patched success on Digital UNIX V3.2D
In-Reply-To: <9612171105.AA13831@fornet.gvc.dec.com>
References: <yngafreuwhc.fsf@colargol.idb.hist.no>
	<9612171105.AA13831@fornet.gvc.dec.com>
Reply-To: carney@gvc.dec.com
X-Face: (d*XRr}%:j,s*8+_o];-"-<<Sd1>H?Ds*>_vV}6DVjhNkjSRW0z^9[WBrbtMma>lyW6u>r(
 9U_m6J0kh7U=q?(h[7<YtS!Cu[Yl)D_XSCy5+tw>_2qr&4S=n|A*ScV]5BR{3]YXk$!,4l2vh9B]}&
 0p"&#\I

I left 15b4 running VM overnight doing an auto-get for new mail every 3
minutes.  When I arrived this morning it was hung; C-g and C-Sh-g got no
response, and the frame remained blank except for the title bar and
greyed out areas for the backgrounds of the tool-bar and scroll-bars.
This is the second VM hang I've experienced with 15b4.

I suspect the hang is another manifestation of the problem that was
causing XEmacs to crash when dealing with subprocesses under DUNIX in
15b2.  I frequently notice the problem in VM.  When new mail arrives, I
have a hook that announces its arrival (via a subprocess).  In 15b2, the
subprocess announcement used to cause a crash.  In 15b4, it seems to
hang instead.

The crash/hang behavior doesn't happen every time, and it can take up to
a few hours to reproduce the behavior.

Attaching to the hung process, here's what I see:

(dbx) where
>  0 __read(0xffffffffffffffff, 0x11fff6ed0, 0x11fff6e48, 0x1401780f0, 0x1200516e4) [0x3ff800d81d4]
   1 sys_read_1(fildes = 0, buf = 0x11fff6f48, nbyte = 4294967295, allow_quit = 1) ["sysdep.c":2828,
 0x1201a70ac]
   2 read_allowing_quit(fildes = 7, buf = 0x14107dc00, nbyte = 512) ["fileio.c":274, 0x1200df5fc]
   3 filedesc_reader(stream = 0x140fea500, data = 0x14107dc00 = "", size = 3) ["lstream.c":947, 0x12
0136c10]
   4 Lstream_raw_read(lstr = 0x140fea500, buffer = 0x14107dc00 = "", size = 512) ["lstream.c":542, 0
x120135cec]
   5 Lstream_read_more(lstr = 0x140fea500) ["lstream.c":560, 0x120135d9c]
   6 Lstream_read(lstr = 0x140fea500, data = 0x14107dc00, size = 16384) ["lstream.c":605, 0x120135f2
c]
   7 Fcall_process_internal(nargs = 537205096, args = (nil)) ["callproc.c":561, 0x12006d824]
   8 funcall_recording_as(recorded_as = (...), nargs = 6, args = 0x11fffb0e0) ["eval.c":3191, 0x1200
a1f50]
   9 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  10 Fapply(nargs = 6, args = 0x11fffb260) ["eval.c":3471, 0x1200a2c88]
  11 funcall_recording_as(recorded_as = (...), nargs = 6, args = 0x11fffb258) ["eval.c":3191, 0x1200
a1f50]
  12 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  13 Fbyte_code(bytestr = (...), vector = (...), maxdepth = (...)) ["bytecode.c":450, 0x1200684b4]
  14 funcall_lambda(fun = (...), nargs = 6, arg_vector = 0x11fffb758) ["eval.c":3636, 0x1200a36ec]
  15 funcall_recording_as(recorded_as = (...), nargs = 6, args = 0x11fffb750) ["eval.c":3223, 0x1200
a20c8]
  16 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  17 Fapply(nargs = 6, args = 0x11fffb8d0) ["eval.c":3471, 0x1200a2c88]
  18 funcall_recording_as(recorded_as = (...), nargs = 6, args = 0x11fffb8c8) ["eval.c":3191, 0x1200
a1f50]
  19 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  20 Fbyte_code(bytestr = (...), vector = (...), maxdepth = (...)) ["bytecode.c":450, 0x1200684b4]
  21 funcall_lambda(fun = (...), nargs = 8, arg_vector = 0x11fffbdc8) ["eval.c":3636, 0x1200a36ec]
  22 funcall_recording_as(recorded_as = (...), nargs = 8, args = 0x11fffbdc0) ["eval.c":3223, 0x1200
a20c8]
  23 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  24 Fbyte_code(bytestr = (...), vector = (...), maxdepth = (...)) ["bytecode.c":450, 0x1200684b4]
  25 funcall_lambda(fun = (...), nargs = 4, arg_vector = 0x11fffc2d8) ["eval.c":3636, 0x1200a36ec]
  26 funcall_recording_as(recorded_as = (...), nargs = 4, args = 0x11fffc2d0) ["eval.c":3223, 0x1200
a20c8]
  27 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  28 Fbyte_code(bytestr = (...), vector = (...), maxdepth = (...)) ["bytecode.c":450, 0x1200684b4]
  29 funcall_lambda(fun = (...), nargs = 2, arg_vector = 0x11fffc7d0) ["eval.c":3636, 0x1200a36ec]
  30 funcall_recording_as(recorded_as = (...), nargs = 2, args = 0x11fffc7c8) ["eval.c":3223, 0x1200
a20c8]
  31 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  32 Fbyte_code(bytestr = (...), vector = (...), maxdepth = (...)) ["bytecode.c":450, 0x1200684b4]
  33 funcall_lambda(fun = (...), nargs = 1, arg_vector = 0x11fffcca8) ["eval.c":3636, 0x1200a36ec]
  34 funcall_recording_as(recorded_as = (...), nargs = 1, args = 0x11fffcca0) ["eval.c":3223, 0x1200
a20c8]
  35 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  36 Fbyte_code(bytestr = (...), vector = (...), maxdepth = (...)) ["bytecode.c":450, 0x1200684b4]
  37 funcall_lambda(fun = (...), nargs = 8, arg_vector = 0x11fffd1d0) ["eval.c":3636, 0x1200a36ec]
  38 funcall_recording_as(recorded_as = (...), nargs = 8, args = 0x11fffd1c8) ["eval.c":3223, 0x1200
a20c8]
  39 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  40 Fbyte_code(bytestr = (...), vector = (...), maxdepth = (...)) ["bytecode.c":450, 0x1200684b4]
  41 funcall_lambda(fun = (...), nargs = 4, arg_vector = 0x11fffd6d8) ["eval.c":3636, 0x1200a36ec]
  42 funcall_recording_as(recorded_as = (...), nargs = 4, args = 0x11fffd6d0) ["eval.c":3223, 0x1200
a20c8]
  43 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  44 Fbyte_code(bytestr = (...), vector = (...), maxdepth = (...)) ["bytecode.c":450, 0x1200684b4]
  45 funcall_lambda(fun = (...), nargs = 0, arg_vector = 0x11fffdcc0) ["eval.c":3636, 0x1200a36ec]
  46 funcall_recording_as(recorded_as = (...), nargs = 0, args = 0x11fffdcb8) ["eval.c":3223, 0x1200
a20c8]
  47 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  48 run_hook_with_args_in_buffer(buf = 0x14107dc00, nargs = 1, args = 0x11fffdcb8, cond = RUN_HOOKS
_TO_COMPLETION) ["eval.c":3828, 0x1200a3f4c]
  49 run_hook_with_args(nargs = 1083940864, args = 0x1409d0260, cond = RUN_HOOKS_UNTIL_FAILURE) ["ev
al.c":3841, 0x1200a4028]
  50 Frun_hooks(nargs = 1, args = 0x200) ["eval.c":3693, 0x1200a3ab4]
  51 funcall_recording_as(recorded_as = (...), nargs = 1, args = 0x11fffdd98) ["eval.c":3191, 0x1200
a1f50]
  52 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  53 Fbyte_code(bytestr = (...), vector = (...), maxdepth = (...)) ["bytecode.c":450, 0x1200684b4]
  54 funcall_lambda(fun = (...), nargs = 1, arg_vector = 0x11fffe280) ["eval.c":3636, 0x1200a36ec]
  55 funcall_recording_as(recorded_as = (...), nargs = 1, args = 0x11fffe278) ["eval.c":3223, 0x1200
a20c8]
  56 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  57 Fbyte_code(bytestr = (...), vector = (...), maxdepth = (...)) ["bytecode.c":450, 0x1200684b4]
  58 funcall_lambda(fun = (...), nargs = 0, arg_vector = 0x11fffe758) ["eval.c":3636, 0x1200a36ec]
  59 funcall_recording_as(recorded_as = (...), nargs = 0, args = 0x11fffe750) ["eval.c":3223, 0x1200
a20c8]
  60 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  61 Fbyte_code(bytestr = (...), vector = (...), maxdepth = (...)) ["bytecode.c":450, 0x1200684b4]
  62 funcall_lambda(fun = (...), nargs = 1, arg_vector = 0x11fffec60) ["eval.c":3636, 0x1200a36ec]
  63 funcall_recording_as(recorded_as = (...), nargs = 1, args = 0x11fffec58) ["eval.c":3223, 0x1200
a20c8]
  64 Ffuncall(nargs = 6, args = 0x1) ["eval.c":3253, 0x1200a215c]
  65 call1(fn = (...), arg0 = (...)) ["eval.c":3994, 0x1200a4480]
  66 execute_internal_event(event = (...)) ["event-stream.c":2821, 0x1200ba244]
  67 Fdispatch_event(event = (...)) ["event-stream.c":3822, 0x1200be0a0]
  68 Fcommand_loop_1() ["cmdloop.c":542, 0x1200724cc]
  69 command_loop_1(dummy = (...)) ["cmdloop.c":462, 0x12007203c]
  70 condition_case_1(handlers = (...), bfun = 0x120071f90, barg = (...), hfun = 0x120070e68, harg =
 (...)) ["eval.c":1672, 0x12009de00]
  71 command_loop_3() ["cmdloop.c":224, 0x120071044]
  72 command_loop_2(dummy = (...)) ["cmdloop.c":235, 0x120071080]
  73 internal_catch(tag = (...), func = 0x120071068, arg = (...), threw = (nil)) ["eval.c":1347, 0x1
2009d704]
  74 initial_command_loop(load_me = (...)) ["cmdloop.c":273, 0x12007158c]
  75 main_1(argc = 6, argv = 0x11ffff5a8, envp = 0x200) ["emacs.c":1315, 0x120099404]
  76 main(argc = 6, argv = 0x11ffff5a8, envp = 0x11ffff5e0) ["emacs.c":1459, 0x1200999ac]

In stack frame 1:
(dbx) dump
sys_read_1(fildes = 0, buf = 0x11fff6f48, nbyte = 4294967295, allow_quit = 1) ["sysdep.c":2828, 0x12
01a70ac]
rtnval = 3


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Steve Carney        TEL:[41](22)782.90.60  http://www-digital.cern.ch/carney/
carney@gvc.dec.com  FAX:[41](22)782.94.92 

