Emacs hangs again (1.3.15, 20021115 and 20021119(!) snapshots)

Pavel Holejsovsky pavel.holejsovsky@st.com
Tue Nov 19 04:25:00 GMT 2002


Hello,

I'm experiencing yet another kind of hangs of emacs (running in X 
window). This happens during emacs startup, but only if I resize its 
window with mouse while emacs is processing startup files. Then it never 
finishes its startup and eats 100% of CPU (quite similar symptoms of 
previous bug fixed in 20021115 snapshot).

I've verified the same behaviour with 1.3.15-2 cygwin1 release, 20021115 
and 20021119 snapshots.

strace shows this fragment, looping forever:

    .... <repeat start here> ....

    55 17683118 [main] emacs 2884 cygwin_select: 6, 0x1FB3FC, 0x0, 0x0, 0x0
    56 17683174 [main] emacs 2884 dtable::select_read: /dev/streamsocket 
fd 5
    29 17683203 [main] emacs 2884 cygwin_select: to NULL, ms FFFFFFFF
    30 17683233 [main] emacs 2884 cygwin_select: sel.always_ready 0
    56 17683289 [main] emacs 2884 start_thread_socket: Handle 0x6F4
    28 17683317 [main] emacs 2884 start_thread_socket: Added to readfds
   135 17683452 [main] emacs 2884 start_thread_socket: exitsock 0x624
    51 17683503 [main] emacs 2884 start_thread_socket: stuff_start 0x1FB2E0
    58 17683561 [main] emacs 2884 select_stuff::wait: m 2, ms 4294967295
    33 17683594 [main] emacs 2884 select_stuff::wait: signal received
    80 17683674 [main] emacs 2884 select_stuff::cleanup: calling cleanup 
routines
    35 17683709 [main] emacs 2884 socket_cleanup: si 0x2051FA60 
si->thread 0x610CA824
    31 17683740 [main] emacs 2884 socket_cleanup: connection to 
si->exitsock 0x624
   315 17684055 [select_socket] emacs 2884 thread_socket: stuff_start 
0x20522A84
    55 17684110 [select_socket] emacs 2884 thread_socket: Win32 select 
returned 2
    35 17684145 [select_socket] emacs 2884 thread_socket: s 0x203B9590, 
testing fd 5 (/dev/streamsocket)
    33 17684178 [select_socket] emacs 2884 thread_socket: read_ready
    30 17684208 [select_socket] emacs 2884 thread_socket: saw exitsock read
   165 17684373 [main] emacs 2884 socket_cleanup: returning
    32 17684405 [main] emacs 2884 select_stuff::~select_stuff: deleting 
select records

    .... <repeated forever> ....

Unfortunately, I'm not able to say from this whether is it a bug in 
cygwin's select() internals or emacs calling it forever for some other 
strange reason. I'll try to understand cygwin's select.cc code and 
analyze further, but in the meanwhile, if anyone has any idea..

I've the full strace output, but it is quite big (800kB bz2). If anyone 
wants it, I can post it privately.

thanks
Pavel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20021119/adb2a2a3/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list