This happens to me every now and then, especially when debugging
XEmacs. I submitted a fix a few months ago [1] that simply retried the
wait ignoring the bad handle but it was vetoed because it masked a
problem instead of fixing it.
[1]
http://list-archive.xemacs.org/xemacs-patches/200006/msg00024.html
Mike Alexander mailto:mtaï¼ arbortext.com
Arbortext, Inc. +1-734-997-0200
--On Tuesday, May 29, 2001 6:01 PM +0200 Adrian Aichner
<aichner(a)ecf.teradyne.com> wrote:
I got this today.
Adrian
Call Stack:
NTDLL! 77fa018c()
mswindows_need_event(int 0) line 1515 + 52 bytes
emacs_mswindows_event_pending_p(int 1) line 3310 + 7 bytes
event_stream_event_pending_p(int 1) line 441 + 21 bytes
detect_input_pending() line 895 + 7 bytes
run_pre_idle_hook() line 2006 + 18 bytes
Fnext_event(long 51415980, long 20508696) line 2182
Fcommand_loop_1() line 574 + 16 bytes
command_loop_1(long 20508696) line 495
condition_case_1(long 20503992, long (long)* 0x01051526
command_loop_1(long), long 20508696, long (long, long)* 0x01050f40
cmd_error(long, long), long 20508696) line 1651 + 7 bytes
command_loop_3() line 256 + 35 bytes
command_loop_2(long 20508696) line 269
internal_catch(long 20322984, long (long)* 0x01051090
command_loop_2(long), long 20508696, int * volatile 0x00000000) line
1317 + 7 bytes initial_command_loop(long 20508696) line 305 + 25 bytes
STACK_TRACE_EYE_CATCHER(int 1, char * * 0x00e643a0, char * *
0x00e62ee0, int 0) line 2350 main(int 1, char * * 0x00e643a0, char *
* 0x00e62ee0) line 2718 mainCRTStartup() line 338 + 17 bytes
KERNEL32! 77e97d08()
Relevant assert in src\event-msw.c (line 1515):
/* This will assert if handle being waited for becomes
abandoned. Not the case currently tho */
assert ((!badly_p && active == WAIT_TIMEOUT) ||
(active >= WAIT_OBJECT_0 &&
------> active <= WAIT_OBJECT_0 + mswindows_waitable_count));
Variables:
active -1
badly_p 0
mswindows_waitable_count 1
+ mswindows_waitable_handles 0x011c9c9c mswindows_waitable_handles
what_events 255
--
Adrian Aichner
mailto:adrianï¼ xemacs.org
http://www.xemacs.org/