Re: [1.7] Cygwin/X crashes with latest server, cygwin

2009-11-10 Thread Jon TURNEY

On 09/11/2009 20:48, Jim Reisert AD1C wrote:

I updated Cygwin 1.7 with Yakov's fix the LANG problem.  It's
unstable, the first time I created an Xterm, the server crashed (seg
fault):


Thanks for testing this.

Clearly I hadn't tested what happens if the X server has the change which is 
supposed to fix this, but the libX11 locale data hadn't been updated to 
include C.UTF-8.


I've written a patch to avoid this crash if the X server is operating in a 
locale unsupported by libX11, but really the locale needs to be supported if 
we are going to get useful strings out of the X server for window titles and 
clipboard integration.


Until there is a new libX11 package, you can update your locale data by 
downloading the locale.patch file from bugzilla [1] and applying it in 
/usr/share/X11/locale/


'wget -O- http://sourceware.org/bugzilla/attachment.cgi?id=4340 | patch -d 
/usr/share/X11/locale/' should do the trick :-)


[1] http://sourceware.org/bugzilla/show_bug.cgi?id=10870


2009-11-09 13:43:39 winClipboardProc - Warning: Locale not supported by X.
2009-11-09 13:43:39 winInitMultiWindowWM - XOpenDisplay () returned
and successfully opened the display.
2009-11-09 13:43:39 winGetDisplay: DISPLAY=:0.0
2009-11-09 13:43:39 winClipboardProc - DISPLAY=:0.0
2009-11-09 13:43:39 winMultiWindowXMsgProc - XOpenDisplay () returned
and successfully opened the display.
2009-11-09 13:43:39 winClipboardProc - XOpenDisplay () returned and
successfully opened the display.
2009-11-09 13:43:49 Segmentation fault at address 0xb
2009-11-09 13:43:49
Fatal server error:
2009-11-09 13:43:49 Caught signal 11 (Segmentation fault). Server aborting
2009-11-09 13:43:49


--
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: [1.7] Cygwin/X crashes with latest server, cygwin

2009-11-10 Thread Jim Reisert AD1C
On Tue, Nov 10, 2009 at 7:31 AM, Jon TURNEY jon.tur...@dronecode.org.uk wrote:

 Until there is a new libX11 package, you can update your locale data by
 downloading the locale.patch file from bugzilla [1] and applying it in
 /usr/share/X11/locale/

Thanks, Jon.  I think this patch worked.  X-server is starting up OK
as does xterm.   Here is my log:

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.7.1.0 (10701000)
Build Date: 2009-11-04

Contact: cygwin-xfree@cygwin.com

XWin was started with the following command line:

XWin -multiwindow -clipboard -silent-dup-error

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1600 h 1200
winInitializeDefaultScreens - Returning
2009-11-10 10:23:01 _XSERVTransSocketOpenCOTSServer: Unable to open
socket for inet6
2009-11-10 10:23:01 _XSERVTransOpen: transport open failed for
inet6/LTDENA-REISERT:0
2009-11-10 10:23:01 _XSERVTransMakeAllCOTSServerListeners: failed to
open listener for inet6
2009-11-10 10:23:01 winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
2009-11-10 10:23:01 (II) xorg.conf is not supported
2009-11-10 10:23:01 (II) See
http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
2009-11-10 10:23:01 winPrefsLoadPreferences: /cygdrive/c/Home/.XWinrc
2009-11-10 10:23:01 LoadPreferences: Done parsing the configuration file...
2009-11-10 10:23:01 winGetDisplay: DISPLAY=:0.0
2009-11-10 10:23:01 winDetectSupportedEngines - Windows NT/2000/XP
2009-11-10 10:23:01 winDetectSupportedEngines - DirectDraw installed
2009-11-10 10:23:01 winDetectSupportedEngines - DirectDraw4 installed
2009-11-10 10:23:01 winDetectSupportedEngines - Returning, supported
engines 0007
2009-11-10 10:23:01 winSetEngine - Multi Window or Rootless = ShadowGDI
2009-11-10 10:23:01 winAdjustVideoModeShadowGDI - Using Windows
display depth of 32 bits per pixel
2009-11-10 10:23:01 winAllocateFBShadowGDI - Creating DIB with width:
3200 height: 1200 depth: 32
2009-11-10 10:23:01 winFinishScreenInitFB - Masks: 00ff ff00 00ff
2009-11-10 10:23:01 winInitVisualsShadowGDI - Masks 00ff ff00
00ff BPRGB 8 d 24 bpp 32
2009-11-10 10:23:01 null screen fn ReparentWindow
2009-11-10 10:23:01 null screen fn RestackWindow
2009-11-10 10:23:01 InitQueue - Calling pthread_mutex_init
2009-11-10 10:23:01 InitQueue - pthread_mutex_init returned
2009-11-10 10:23:01 InitQueue - Calling pthread_cond_init
2009-11-10 10:23:01 InitQueue - pthread_cond_init returned
2009-11-10 10:23:01 winInitMultiWindowWM - Hello
2009-11-10 10:23:01 winInitMultiWindowWM - Calling pthread_mutex_lock ()
2009-11-10 10:23:01 winMultiWindowXMsgProc - Hello
2009-11-10 10:23:01 Screen 0 added at XINERAMA coordinate (0,0).
2009-11-10 10:23:01 winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
2009-11-10 10:23:01 MIT-SHM extension disabled due to lack of kernel support
2009-11-10 10:23:01 XFree86-Bigfont extension local-client
optimization disabled due to lack of shared memory support in the
kernel
2009-11-10 10:23:01 (II) AIGLX: Loaded and initialized
/usr/lib/dri/swrast_dri.so
2009-11-10 10:23:01 (II) GLX: Initialized DRISWRAST GL provider for screen 0
2009-11-10 10:23:01 [dix] Could not init font path element
/usr/share/fonts/TTF/, removing from list!
2009-11-10 10:23:01 [dix] Could not init font path element
/usr/share/fonts/OTF/, removing from list!
2009-11-10 10:23:01 [dix] Could not init font path element
/usr/share/fonts/Type1/, removing from list!
2009-11-10 10:23:02 winPointerWarpCursor - Discarding first warp: 1600 600
2009-11-10 10:23:02 (--) 16 mouse buttons found
2009-11-10 10:23:02 (--) Setting autorepeat to delay=250, rate=25
2009-11-10 10:23:02 (--) winConfigKeyboard - Layout: 0409 (0409)
2009-11-10 10:23:02 (--) Using preset keyboard for English (USA)
(409), type 4
2009-11-10 10:23:02 Rules = base Model = pc105 Layout = us
Variant = none Options = none
2009-11-10 10:23:03 winInitMultiWindowWM - pthread_mutex_lock () returned.
2009-11-10 10:23:03 winProcEstablishConnection - Hello
2009-11-10 10:23:03 winInitClipboard ()
2009-11-10 10:23:03 winClipboardProc - Hello
2009-11-10 10:23:03 DetectUnicodeSupport - Windows NT/2000/XP
2009-11-10 10:23:03 winProcEstablishConnection - winInitClipboard returned.
2009-11-10 10:23:03 winInitMultiWindowWM - pthread_mutex_unlock () returned.
2009-11-10 10:23:03 winGetDisplay: DISPLAY=:0.0
2009-11-10 10:23:03 winInitMultiWindowWM - DISPLAY=:0.0
2009-11-10 10:23:03 winMultiWindowXMsgProc - pthread_mutex_lock () returned.
2009-11-10 10:23:03 winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
2009-11-10 10:23:03 winGetDisplay: DISPLAY=:0.0
2009-11-10 10:23:03 winGetDisplay: DISPLAY=:0.0
2009-11-10 10:23:03 winClipboardProc - DISPLAY=:0.0
2009-11-10 10:23:03 winMultiWindowXMsgProc - DISPLAY=:0.0
2009-11-10 10:23:03 (II) xorg.conf is not supported
2009-11-10 10:23:03 (II) See
http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
2009-11-10 10:23:03 winPrefsLoadPreferences: 

RE: [1.7] Cygwin/X crashes with latest server, cygwin

2009-11-10 Thread Mike Ayers
 From: cygwin-xfree-ow...@cygwin.com [mailto:cygwin-xfree-
 ow...@cygwin.com] On Behalf Of Jon TURNEY
 Sent: Tuesday, November 10, 2009 6:31 AM

 On 09/11/2009 20:48, Jim Reisert AD1C wrote:
 
 Until there is a new libX11 package, you can update your locale data by
 downloading the locale.patch file from bugzilla [1] and applying it in
 /usr/share/X11/locale/
 
 'wget -O- http://sourceware.org/bugzilla/attachment.cgi?id=4340 | patch
 -d
 /usr/share/X11/locale/' should do the trick :-)

Fixed my stopped working when I updated it yesterday server, thanks!


Mike



[1.7] Cygwin/X crashes with latest server, cygwin

2009-11-09 Thread Jim Reisert AD1C
I updated Cygwin 1.7 with Yakov's fix the LANG problem.  It's
unstable, the first time I created an Xterm, the server crashed (seg
fault):

I tried to create another Xterm, but it's hanging my system.


Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.7.1.0 (10701000)
Build Date: 2009-11-04

Contact: cygwin-xfree@cygwin.com

XWin was started with the following command line:

XWin -multiwindow -clipboard -silent-dup-error

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1600 h 1200
winInitializeDefaultScreens - Returning
2009-11-09 13:43:34 _XSERVTransSocketOpenCOTSServer: Unable to open
socket for inet6
2009-11-09 13:43:34 _XSERVTransOpen: transport open failed for
inet6/LTDENA-REISERT:0
2009-11-09 13:43:34 _XSERVTransMakeAllCOTSServerListeners: failed to
open listener for inet6
2009-11-09 13:43:34 winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
2009-11-09 13:43:34 (II) xorg.conf is not supported
2009-11-09 13:43:34 (II) See
http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
2009-11-09 13:43:34 winPrefsLoadPreferences: /cygdrive/c/Home/.XWinrc
2009-11-09 13:43:34 LoadPreferences: Done parsing the configuration file...
2009-11-09 13:43:34 winGetDisplay: DISPLAY=:0.0
2009-11-09 13:43:34 winDetectSupportedEngines - Windows NT/2000/XP
2009-11-09 13:43:34 winDetectSupportedEngines - DirectDraw installed
2009-11-09 13:43:35 winDetectSupportedEngines - DirectDraw4 installed
2009-11-09 13:43:35 winDetectSupportedEngines - Returning, supported
engines 0007
2009-11-09 13:43:35 winSetEngine - Multi Window or Rootless = ShadowGDI
2009-11-09 13:43:35 winAdjustVideoModeShadowGDI - Using Windows
display depth of 32 bits per pixel
2009-11-09 13:43:35 winAllocateFBShadowGDI - Creating DIB with width:
3200 height: 1200 depth: 32
2009-11-09 13:43:35 winFinishScreenInitFB - Masks: 00ff ff00 00ff
2009-11-09 13:43:35 winInitVisualsShadowGDI - Masks 00ff ff00
00ff BPRGB 8 d 24 bpp 32
2009-11-09 13:43:35 null screen fn ReparentWindow
2009-11-09 13:43:35 null screen fn RestackWindow
2009-11-09 13:43:35 InitQueue - Calling pthread_mutex_init
2009-11-09 13:43:35 InitQueue - pthread_mutex_init returned
2009-11-09 13:43:35 InitQueue - Calling pthread_cond_init
2009-11-09 13:43:35 InitQueue - pthread_cond_init returned
2009-11-09 13:43:35 winInitMultiWindowWM - Hello
2009-11-09 13:43:35 winInitMultiWindowWM - Calling pthread_mutex_lock ()
2009-11-09 13:43:35 Screen 0 added at XINERAMA coordinate (0,0).
2009-11-09 13:43:35 winMultiWindowXMsgProc - Hello
2009-11-09 13:43:35 winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
2009-11-09 13:43:35 MIT-SHM extension disabled due to lack of kernel support
2009-11-09 13:43:35 XFree86-Bigfont extension local-client
optimization disabled due to lack of shared memory support in the
kernel
2009-11-09 13:43:35 (II) AIGLX: Loaded and initialized
/usr/lib/dri/swrast_dri.so
2009-11-09 13:43:35 (II) GLX: Initialized DRISWRAST GL provider for screen 0
2009-11-09 13:43:35 [dix] Could not init font path element
/usr/share/fonts/TTF/, removing from list!
2009-11-09 13:43:35 [dix] Could not init font path element
/usr/share/fonts/OTF/, removing from list!
2009-11-09 13:43:35 [dix] Could not init font path element
/usr/share/fonts/Type1/, removing from list!
2009-11-09 13:43:36 winPointerWarpCursor - Discarding first warp: 1600 600
2009-11-09 13:43:36 (--) 16 mouse buttons found
2009-11-09 13:43:36 (--) Setting autorepeat to delay=250, rate=25
2009-11-09 13:43:36 (--) winConfigKeyboard - Layout: 0409 (0409)
2009-11-09 13:43:36 (--) Using preset keyboard for English (USA)
(409), type 4
2009-11-09 13:43:36 Rules = base Model = pc105 Layout = us
Variant = none Options = none
2009-11-09 13:43:37 winInitMultiWindowWM - pthread_mutex_lock () returned.
2009-11-09 13:43:37 winInitMultiWindowWM - Warning: Locale not supported by X.
2009-11-09 13:43:37 winInitMultiWindowWM - pthread_mutex_unlock () returned.
2009-11-09 13:43:37 winMultiWindowXMsgProc - pthread_mutex_lock () returned.
2009-11-09 13:43:37 winGetDisplay: DISPLAY=:0.0
2009-11-09 13:43:37 winInitMultiWindowWM - DISPLAY=:0.0
2009-11-09 13:43:37 winMultiWindowXMsgProc - Warning: locale not supported by X
2009-11-09 13:43:37 winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
2009-11-09 13:43:39 winProcEstablishConnection - Hello
2009-11-09 13:43:39 winInitClipboard ()
2009-11-09 13:43:39 winClipboardProc - Hello
2009-11-09 13:43:39 DetectUnicodeSupport - Windows NT/2000/XP
2009-11-09 13:43:39 winProcEstablishConnection - winInitClipboard returned.
2009-11-09 13:43:39 winGetDisplay: DISPLAY=:0.0
2009-11-09 13:43:39 winMultiWindowXMsgProc - DISPLAY=:0.0
2009-11-09 13:43:39 winClipboardProc - Warning: Locale not supported by X.
2009-11-09 13:43:39 winInitMultiWindowWM - XOpenDisplay () returned
and successfully opened the display.
2009-11-09 13:43:39 winGetDisplay: DISPLAY=:0.0
2009-11-09 13:43:39 winClipboardProc - DISPLAY=:0.0

Re: [1.7] Cygwin/X crashes with latest server, cygwin

2009-11-09 Thread Jim Reisert AD1C
Setting:

LANG=en_US.UTF-8

seems to avoid the problem.

- Jim

On Mon, Nov 9, 2009 at 1:48 PM, Jim Reisert AD1C jjreis...@alum.mit.edu wrote:
 I updated Cygwin 1.7 with Yakov's fix the LANG problem.  It's
 unstable, the first time I created an Xterm, the server crashed (seg
 fault):

 I tried to create another Xterm, but it's hanging my system.


 Welcome to the XWin X Server
 Vendor: The Cygwin/X Project
 Release: 1.7.1.0 (10701000)
 Build Date: 2009-11-04

 Contact: cygwin-xfree@cygwin.com

 XWin was started with the following command line:

 XWin -multiwindow -clipboard -silent-dup-error

 ddxProcessArgument - Initializing default screens
 winInitializeDefaultScreens - w 1600 h 1200
 winInitializeDefaultScreens - Returning
 2009-11-09 13:43:34 _XSERVTransSocketOpenCOTSServer: Unable to open
 socket for inet6
 2009-11-09 13:43:34 _XSERVTransOpen: transport open failed for
 inet6/LTDENA-REISERT:0
 2009-11-09 13:43:34 _XSERVTransMakeAllCOTSServerListeners: failed to
 open listener for inet6
 2009-11-09 13:43:34 winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 
 1
 2009-11-09 13:43:34 (II) xorg.conf is not supported
 2009-11-09 13:43:34 (II) See
 http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
 2009-11-09 13:43:34 winPrefsLoadPreferences: /cygdrive/c/Home/.XWinrc
 2009-11-09 13:43:34 LoadPreferences: Done parsing the configuration file...
 2009-11-09 13:43:34 winGetDisplay: DISPLAY=:0.0
 2009-11-09 13:43:34 winDetectSupportedEngines - Windows NT/2000/XP
 2009-11-09 13:43:34 winDetectSupportedEngines - DirectDraw installed
 2009-11-09 13:43:35 winDetectSupportedEngines - DirectDraw4 installed
 2009-11-09 13:43:35 winDetectSupportedEngines - Returning, supported
 engines 0007
 2009-11-09 13:43:35 winSetEngine - Multi Window or Rootless = ShadowGDI
 2009-11-09 13:43:35 winAdjustVideoModeShadowGDI - Using Windows
 display depth of 32 bits per pixel
 2009-11-09 13:43:35 winAllocateFBShadowGDI - Creating DIB with width:
 3200 height: 1200 depth: 32
 2009-11-09 13:43:35 winFinishScreenInitFB - Masks: 00ff ff00 00ff
 2009-11-09 13:43:35 winInitVisualsShadowGDI - Masks 00ff ff00
 00ff BPRGB 8 d 24 bpp 32
 2009-11-09 13:43:35 null screen fn ReparentWindow
 2009-11-09 13:43:35 null screen fn RestackWindow
 2009-11-09 13:43:35 InitQueue - Calling pthread_mutex_init
 2009-11-09 13:43:35 InitQueue - pthread_mutex_init returned
 2009-11-09 13:43:35 InitQueue - Calling pthread_cond_init
 2009-11-09 13:43:35 InitQueue - pthread_cond_init returned
 2009-11-09 13:43:35 winInitMultiWindowWM - Hello
 2009-11-09 13:43:35 winInitMultiWindowWM - Calling pthread_mutex_lock ()
 2009-11-09 13:43:35 Screen 0 added at XINERAMA coordinate (0,0).
 2009-11-09 13:43:35 winMultiWindowXMsgProc - Hello
 2009-11-09 13:43:35 winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
 2009-11-09 13:43:35 MIT-SHM extension disabled due to lack of kernel support
 2009-11-09 13:43:35 XFree86-Bigfont extension local-client
 optimization disabled due to lack of shared memory support in the
 kernel
 2009-11-09 13:43:35 (II) AIGLX: Loaded and initialized
 /usr/lib/dri/swrast_dri.so
 2009-11-09 13:43:35 (II) GLX: Initialized DRISWRAST GL provider for screen 0
 2009-11-09 13:43:35 [dix] Could not init font path element
 /usr/share/fonts/TTF/, removing from list!
 2009-11-09 13:43:35 [dix] Could not init font path element
 /usr/share/fonts/OTF/, removing from list!
 2009-11-09 13:43:35 [dix] Could not init font path element
 /usr/share/fonts/Type1/, removing from list!
 2009-11-09 13:43:36 winPointerWarpCursor - Discarding first warp: 1600 600
 2009-11-09 13:43:36 (--) 16 mouse buttons found
 2009-11-09 13:43:36 (--) Setting autorepeat to delay=250, rate=25
 2009-11-09 13:43:36 (--) winConfigKeyboard - Layout: 0409 (0409)
 2009-11-09 13:43:36 (--) Using preset keyboard for English (USA)
 (409), type 4
 2009-11-09 13:43:36 Rules = base Model = pc105 Layout = us
 Variant = none Options = none
 2009-11-09 13:43:37 winInitMultiWindowWM - pthread_mutex_lock () returned.
 2009-11-09 13:43:37 winInitMultiWindowWM - Warning: Locale not supported by X.
 2009-11-09 13:43:37 winInitMultiWindowWM - pthread_mutex_unlock () returned.
 2009-11-09 13:43:37 winMultiWindowXMsgProc - pthread_mutex_lock () returned.
 2009-11-09 13:43:37 winGetDisplay: DISPLAY=:0.0
 2009-11-09 13:43:37 winInitMultiWindowWM - DISPLAY=:0.0
 2009-11-09 13:43:37 winMultiWindowXMsgProc - Warning: locale not supported by 
 X
 2009-11-09 13:43:37 winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
 2009-11-09 13:43:39 winProcEstablishConnection - Hello
 2009-11-09 13:43:39 winInitClipboard ()
 2009-11-09 13:43:39 winClipboardProc - Hello
 2009-11-09 13:43:39 DetectUnicodeSupport - Windows NT/2000/XP
 2009-11-09 13:43:39 winProcEstablishConnection - winInitClipboard returned.
 2009-11-09 13:43:39 winGetDisplay: DISPLAY=:0.0
 2009-11-09 13:43:39 winMultiWindowXMsgProc - DISPLAY=:0.0
 2009-11-09 13:43:39 winClipboardProc -