Hi, The hard-hangs of XWin using -clipboard are still present in the latest code (6.7.0.0-4 of xorg-x11-xwin). I have some strace info below, as well as the XWin.log, in case that might be useful.
This is on a Win98SE system, updated to the latest Cygwin code (as of about 6 hours ago). The hang is easily triggered with only a few mouse button clicks. Set a mark (left click) and right click anywhere will usually cause the hard hang. Multiple left clicks will do it too (usually by 3rd left-button click). The mouse clicks don't have to be rapid (e.g. can be many seconds apart). In this example, I used the default startxwin.sh, with an added -logverbose 255 (hoping this might trigger extra logging...). In the hung state, XWin does not respond (nor do any subordinate xterms). The X-icon in the tray does not respond either. Have to kill -9. The XWin.log is at the end of this message. Below is a strace log just before the hang. A more complete strace from the time the first xterm came up and strace was attached is also available - as is a cygcheck -cvsr, if anybody wants it. Hope this helps. ###################################################### Final lines of strace up to hang. Note the errno 11: ###################################################### 416 92699321 [main] XWin 3231135 select_stuff::poll: returning 1 414 92699735 [main] XWin 3231135 select_stuff::cleanup: calling cleanup routines 403 92700138 [main] XWin 3231135 select_stuff::~select_stuff: deleting select records 403 92700541 [main] XWin 3231135 free: (0x1019C460), called by 0x6108173B 511 92701052 [main] XWin 3231135 free: (0x1019CE08), called by 0x6108173B 408 92701460 [main] XWin 3231135 free: (0x10186260), called by 0x6108173B 416 92701876 [main] XWin 3231135 free: (0x1019E638), called by 0x6108173B 411 92702287 [main] XWin 3231135 free: (0x10176E08), called by 0x6108173B 415 92702702 [main] XWin 3231135 free: (0x10183E10), called by 0x6108173B 410 92703112 [main] XWin 3231135 free: (0x1019CE68), called by 0x6108173B 468 92703580 [main] XWin 3231135 readv: readv (9, 0xADEA10, 1) nonblocking, sigcatchers 3 565 92704145 [main] XWin 3231135 peek_socket: considering handle 0x1DC 401 92704546 [main] XWin 3231135 peek_socket: adding read fd_set , fd 9 514 92705060 [main] XWin 3231135 peek_socket: WINSOCK_SELECT returned 1 432 92705492 [main] XWin 3231135 fhandler_base::ready_for_read: read_ready 1, avail 1 507 92705999 [main] XWin 3231135 readv: 36 = readv (9, 0xADEA10, 1), errno 0 597 92706596 [unknown (0xFFF270C1)] XWin 3231135 select_stuff::wait: woke up. wait_ret 2. verifying 493 92707089 [unknown (0xFFF270C1)] XWin 3231135 peek_windows: window 14(0x0) not ready 416 92707505 [unknown (0xFFF270C1)] XWin 3231135 select_stuff::wait: gotone 0 425 92707930 [unknown (0xFFF270C1)] XWin 3231135 select_stuff::wait: looping 687 92708617 [unknown (0xFFF270C1)] XWin 3231135 select_stuff::wait: woke up. wait_ret 2. verifying 579 92709196 [unknown (0xFFF270C1)] XWin 3231135 writev: writev (12, 0x322E7F8, 1) 3587 92712783 [unknown (0xFFF270C1)] XWin 3231135 writev: 4 = write (12, 0x322E7F8, 1), errno 0 924 92713707 [unknown (0xFFF270C1)] XWin 3231135 readv: readv (12, 0x322E7F8, 1) nonblocking, sigcatchers 3 977 92714684 [unknown (0xFFF270C1)] XWin 3231135 peek_socket: considering handle 0x264 1061 92715745 [unknown (0xFFF270C1)] XWin 3231135 peek_socket: adding read fd_set , fd 12 1589 92717334 [unknown (0xFFF270C1)] XWin 3231135 peek_socket: WINSOCK_SELECT returned 0 914 92718248 [unknown (0xFFF270C1)] XWin 3231135 fhandler_base::ready_for_read: read_ready 0, avail 0 1127 92719375 [unknown (0xFFF270C1)] XWin 3231135 readv: -1 = readv (12, 0x322E7F8, 1), errno 11 <IS errno 11 above a hint?> 889 92720264 [unknown (0xFFF270C1)] XWin 3231135 cygwin_select: 13, 0x322E7E8, 0x0, 0x0, 0x0 1005 92721269 [unknown (0xFFF270C1)] XWin 3231135 calloc: (1, 44) = 1019CE68, called by 61001CB9 940 92722209 [unknown (0xFFF270C1)] XWin 3231135 dtable::select_read: fd 12 859 92723068 [unknown (0xFFF270C1)] XWin 3231135 cygwin_select: to NULL, ms FFFFFFFF 1401 92724469 [unknown (0xFFF270C1)] XWin 3231135 cygwin_select: sel.always_ready 0 877 92725346 [unknown (0xFFF270C1)] XWin 3231135 calloc: (1, 12328) = 1018A2F8, called by 61001CB9 879 92726225 [unknown (0xFFF270C1)] XWin 3231135 start_thread_socket: Handle 0x264 942 92727167 [unknown (0xFFF270C1)] XWin 3231135 start_thread_socket: Added to readfds 5015 92732182 [unknown (0xFFF270C1)] XWin 3231135 start_thread_socket: exitsock 0x2B8 1140 92733322 [unknown (0xFFF270C1)] XWin 3231135 start_thread_socket: stuff_start 0x322E74C 659 92733981 [unknown (0xFFF270C1)] XWin 3231135 cygthread::cygthread: name select_socket, id 0xFFF27655 934 92734915 [unknown (0xFFF270C1)] XWin 3231135 cygthread::cygthread: activated thread_sync 0x22C 982 92735897 [select_socket] XWin 3231135 thread_socket: stuff_start 0x1018D31C 89 92735986 [unknown (0xFFF270C1)] XWin 3231135 select_stuff::wait: m 2, ms 4294967295 <HUNG AT THIS POINT UNTIL KILL -9> 151778560 244514546 [sig] XWin 3231135 sigpacket::process: signal 9 processing ###################################################### The XWin.log is below: ###################################################### Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 6.7.0.0-4 Contact: [EMAIL PROTECTED] XWin was started with the following command line: XWin -multiwindow -logverbose 255 -clipboard ddxProcessArgument - Initializing default screens winInitializeDefaultScreens - w 1280 h 1024 winInitializeDefaultScreens - Returning OsVendorInit - Creating bogus screen 0 winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1 winValidateArgs - Returning. (II) XF86Config is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information winDetectSupportedEngines - Windows 95/98/Me winDetectSupportedEngines - DirectDraw installed winDetectSupportedEngines - DirectDraw4 installed winDetectSupportedEngines - Returning, supported engines 00000007 winScreenInit - dwWidth: 1280 dwHeight: 1024 winSetEngine - Multi Window or Rootless => ShadowGDI winAdjustVideoModeShadowGDI - Using Windows display depth of 16 bits per pixel winCreateBoundingWindowWindowed - User w: 1280 h: 1024 winCreateBoundingWindowWindowed - Current w: 1280 h: 1024 winAdjustForAutoHide - Original WorkArea: 0 0 1024 1280 winAdjustForAutoHide - Taskbar is auto hide winAdjustForAutoHide - Found BOTTOM auto-hide taskbar winAdjustForAutoHide - Adjusted WorkArea: 0 0 1023 1280 winCreateBoundingWindowWindowed - WindowClient w 1280 h 1023 r 1280 l 0 b 1023 t 0 winCreateBoundingWindowWindowed - Returning winAllocateFBShadowGDI - Creating DIB with width: 1280 height: 1023 depth: 16 winAllocateFBShadowGDI - Dibsection width: 1280 height: -1023 depth: 16 size image: 2618880 winAllocateFBShadowGDI - WEIRDNESS - biHeight still negative: - 1023 winAllocateFBShadowGDI - WEIRDNESS - Flipping biHeight sign winAllocateFBShadowGDI - Created shadow stride: 1280 winFinishScreenInitFB - Masks: 00007c00 000003e0 0000001f winInitVisualsShadowGDI - Masks 00007c00 000003e0 0000001f BPRGB 5 d 15 bpp 16 winRandRInit () winCreateDefColormap - Deferring to fbCreateDefColormap () null screen fn ReparentWindow null screen fn RestackWindow winFinishScreenInitFB - Calling winInitWM. InitQueue - Calling pthread_mutex_init InitQueue - pthread_mutex_init returned InitQueue - Calling pthread_cond_init InitQueue - pthread_cond_init returned winInitWM - Returning. winInitMultiWindowWM - Hello winMultiWindowXMsgProc - Hello winFinishScreenInitFB - returning winInitMultiWindowWM - Calling pthread_mutex_lock () winMultiWindowXMsgProc - Calling pthread_mutex_lock () winScreenInit - returning InitOutput - Returning. MIT-SHM extension disabled due to lack of kernel support XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel (--) Setting autorepeat to delay=250, rate=15 (--) winConfigKeyboard - Layout: "00000409" (00000409) (EE) Keyboardlayout "United States 101" (00000409) is unknown Rules = "xorg" Model = "pc101" Layout = "us" Variant = "(null)" Options = "(null)" Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! winPointerWarpCursor - Discarding first warp: 640 511 winBlockHandler - Releasing pmServerStarted winBlockHandler - pthread_mutex_unlock () returned winInitMultiWindowWM - pthread_mutex_lock () returned. winInitMultiWindowWM - pthread_mutex_unlock () returned. winMultiWindowXMsgProc - pthread_mutex_lock () returned. winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0 winMultiWindowXMsgProc - pthread_mutex_unlock () returned. winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0 winProcEstablishConnection - Hello winInitClipboard () winProcEstablishConnection - winInitClipboard returned. winClipboardProc - Hello DetectUnicodeSupport - Windows 95/98/Me winClipboardProc - DISPLAY=127.0.0.1:0.0 winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display. winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display. winClipboardProc - XOpenDisplay () returned and successfully opened the display. winClipboardWindowProc - WM_DRAWCLIPBOARD - Initializing - Returning.