This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
XWin 6.7.0.0-10 freeze with -clipboard
- From: "Carl Holmberg" <holmberg at tiac dot net>
- To: cygwin-xfree at cygwin dot com
- Cc: holmberg at tiac dot net
- Date: Mon, 21 Jun 2004 13:14:44 -500
- Subject: XWin 6.7.0.0-10 freeze with -clipboard
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: holmberg at tiac dot net
Hi,
XWin with our without -multiwin continues to hang with -
clipboard on my Win98SE system, which is using the latest Cygwin
code (cygcheck -cvsr is attached). The trigger is simple:
Left-click using the mouse within an xterm window running a bash
shell, without dragging.
Without -clipboard, there is no problem, and one can
subsequently right-click to highlight a region starting from the
mark set by the left-click. With -clipboard set, the system
freezes and the last line of the XWin log is:
winClipboardWindowProc - WM_DRAWCLIPBOARD - Clipboard does not contain CF_TEXT nor CF_UNICODETEXT.
This the same trigger action I have reported on several previous
occasions with earlier versions of XWin.
A strace reports an error that may be significant, shortly
before the hang (see the readv (12,... below that returns errno
11):
1282 145233381 [unknown (0xFFF4BCEB)] XWin 162576013 writev: writev (12, 0x312E7F8, 1)
5567 145238948 [unknown (0xFFF4BCEB)] XWin 162576013 writev: 4 = write (12, 0x312E7F8, 1), errno 0
2106 145241054 [unknown (0xFFF4BCEB)] XWin 162576013 readv: readv (12, 0x312E7F8, 1) nonblocking, sigcatchers 3
564 145241618 [unknown (0xFFF4BCEB)] XWin 162576013 peek_socket: considering handle 0x280
435 145242053 [unknown (0xFFF4BCEB)] XWin 162576013 peek_socket: adding read fd_set , fd 12
570 145242623 [unknown (0xFFF4BCEB)] XWin 162576013 peek_socket: WINSOCK_SELECT returned 0
464 145243087 [unknown (0xFFF4BCEB)] XWin 162576013 fhandler_base::ready_for_read: read_ready 0, avail 0
516 145243603 [unknown (0xFFF4BCEB)] XWin 162576013 readv: -1 = readv (12, 0x312E7F8, 1), errno 11
623 145244226 [unknown (0xFFF4BCEB)] XWin 162576013 cygwin_select: 13, 0x312E7E8, 0x0, 0x0, 0x0
465 145244691 [unknown (0xFFF4BCEB)] XWin 162576013 calloc: (1, 44) = 1019E6B0, called by 61001C79
442 145245133 [unknown (0xFFF4BCEB)] XWin 162576013 dtable::select_read: fd 12
427 145245560 [unknown (0xFFF4BCEB)] XWin 162576013 cygwin_select: to NULL, ms FFFFFFFF
460 145246020 [unknown (0xFFF4BCEB)] XWin 162576013 cygwin_select: sel.always_ready 0
485 145246505 [unknown (0xFFF4BCEB)] XWin 162576013 calloc: (1, 12328) = 1019E8B0, called by 61001C79
447 145246952 [unknown (0xFFF4BCEB)] XWin 162576013 start_thread_socket: Handle 0x280
444 145247396 [unknown (0xFFF4BCEB)] XWin 162576013 start_thread_socket: Added to readfds
4957 145252353 [unknown (0xFFF4BCEB)] XWin 162576013 start_thread_socket: exitsock 0x2D0
1130 145253483 [unknown (0xFFF4BCEB)] XWin 162576013 start_thread_socket: stuff_start 0x312E74C
1771 145255254 [unknown (0xFFF4BCEB)] XWin 162576013 cygthread::cygthread: name select_socket, id 0xFFF15033
1208 145256462 [unknown (0xFFF4BCEB)] XWin 162576013 cygthread::cygthread: activated thread_sync 0x260
954 145257416 [select_socket] XWin 162576013 thread_socket: stuff_start 0x101A18D4
92 145257508 [unknown (0xFFF4BCEB)] XWin 162576013 select_stuff::wait: m 2, ms 4294967295
The last trace line is the above select_stuff::wait at the time
of the freeze. There is some additional tracing after terminate
with a kill -9. Note that this strace looks pretty much the
same as ones I've submitted before, down to the errno 11 on a
readv of fd 12 just before the freeze.
A more complete strace from a point where XWin seems to be
working, to the point of freeze, is available upon request.
I hope this helps. BTW, I used -logverbose 255, but this
produces the same output as -logverbose 3. Note also that the
XWin log contains two log entries that start with a NULL
character, so there is a problem with the log text or logging
code too. These occur at lines 47 and 49 of the XWin.log. This
has also been previously reported.
[attached is the XWin.log]
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.7.0.0-10
Contact: cygwin-xfree@cygwin.com
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 996 1280
winAdjustForAutoHide - Adjusted WorkArea: 0 0 996 1280
winCreateBoundingWindowWindowed - WindowClient w 1280 h 996 r 1280 l 0 b 996 t 0
winCreateBoundingWindowWindowed - Returning
winAllocateFBShadowGDI - Creating DIB with width: 1280 height: 996 depth: 16
winAllocateFBShadowGDI - Dibsection width: 1280 height: -996 depth: 16 size image: 2549760
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.
winMultiWindowXMsgProc winFinishScreenInitFB - returniwinInitMultiWindowWM - Calling pthwinScreenInit - returning
winMultiWindowXMsgProc - CwinMultiWindowXMsgProc - Calling pthread_mutex_lock ()
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 498
winBlockHandler - Releasing pmServerStarted
winInitMultiWindowWM - pthread_mutex_lock () returnwinInitMultiWindowWM - 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
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display.
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display.
winClipboardWindowProc - WM_CREATE
winClipboardWindowProc - WM_WM_REINIT: Enter
WM_WM_REINIT: already at head of viewer chain.
winClipboardWindowProc - WM_WM_REINIT: Exit
winClipboardWindowProc - WM_DRAWCLIPBOARD: Enter
winClipboardWindowProc - WM_DRAWCLIPBOARD: Exit
winClipboardWindowProc - WM_DRAWCLIPBOARD: Enter
winClipboardWindowProc - WM_DRAWCLIPBOARD - We own the clipboard, returning.
winClipboardWindowProc - WM_DRAWCLIPBOARD: Exit
winClipboardWindowProc - WM_DRAWCLIPBOARD: Enter
winClipboardWindowProc - WM_DRAWCLIPBOARD - Clipboard does not contain CF_TEXT nor CF_UNICODETEXT.