My co-worker was having the same problem at home. He was starting XWin.exe by running it in a bash shell. This appears to not get all of the paths set correctly and led to a crash when he tried to run KDE. I had him run startxwin.bat to start XWin.exe and the crash stopped happening. So, please try startxwin.bat and report your results.
Harold
Christoph Leser wrote:
I experience segment faults from XWin, when I do a startkde on linux or /usr/dt/bin/Xsession on aix with a XWin Display which has been started just before.
This fault will not occur when I do a xclock& first.
I use XWin with and w/o X11 forwarding with putty on windows and openssh on aix/linux. The stackdump shows identical and reproducable results.
The problem only shows up if X11 forwarding is enabled.
Here is XWin.log OsVendorInit - Creating bogus screen 0 winInitializeDefaultScreens - w 1024 h 768 winInitializeDefaultScreens - Returning _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root (EE) Unable to locate/open config file InitOutput - Error reading config file winDetectSupportedEngines - Windows NT/2000/XP winDetectSupportedEngines - DirectDraw installed winDetectSupportedEngines - Allowing PrimaryDD winDetectSupportedEngines - DirectDraw4 installed winDetectSupportedEngines - Returning, supported engines 0000001f InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1 winSetEngine - Using Shadow DirectDraw NonLocking winAdjustVideoModeShadowDDNL - Using Windows display depth of 16 bits per pixel winCreateBoundingWindowWindowed - User w: 1024 h: 768 winCreateBoundingWindowWindowed - Current w: 1024 h: 768 winAdjustForAutoHide - Original WorkArea: 0 0 743 1024 winAdjustForAutoHide - Adjusted WorkArea: 0 0 743 1024 winCreateBoundingWindowWindowed - WindowClient w 1018 h 717 r 1018 l 0 b 717 t 0
winCreateBoundingWindowWindowed - Returning winCreatePrimarySurfaceShadowDDNL - Creating primary surface winCreatePrimarySurfaceShadowDDNL - Created primary surface winCreatePrimarySurfaceShadowDDNL - Attached clipper to primary surface winAllocateFBShadowDDNL - lPitch: 2036 winAllocateFBShadowDDNL - Created shadow pitch: 2036 winAllocateFBShadowDDNL - Created shadow stride: 1018 winFinishScreenInitFB - Masks: 0000f800 000007e0 0000001f winInitVisualsShadowDDNL - Masks 0000f800 000007e0 0000001f BPRGB 6 d 16 bpp 16 winCreateDefColormap - Deferring to fbCreateDefColormap () winFinishScreenInitFB - returning 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 shar ed memory support in the kernel (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: "00000407" (00000407) (--) Using preset keyboard for "German (Germany)" (407), type "4" (EE) No primary keyboard configured (==) Using compiletime defaults for keyboard Rules = "xfree86" Model = "pc105" Layout = "de" Variant = "(null)" Options = "(n ull)" Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list! winPointerWarpCursor - Discarding first warp: 509 358 winBlockHandler - Releasing pmServerStarted winBlockHandler - pthread_mutex_unlock () returned (EE) Unable to locate/open config file InitOutput - Error reading config file winDetectSupportedEngines - Windows NT/2000/XP winDetectSupportedEngines - DirectDraw installed winDetectSupportedEngines - Allowing PrimaryDD winDetectSupportedEngines - DirectDraw4 installed winDetectSupportedEngines - Returning, supported engines 0000001f InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1 winSetEngine - Using Shadow DirectDraw NonLocking winCreateBoundingWindowWindowed - User w: 1024 h: 768 winCreateBoundingWindowWindowed - Current w: 1018 h: 717 winAdjustForAutoHide - Original WorkArea: 0 0 743 1024 winAdjustForAutoHide - Adjusted WorkArea: 0 0 743 1024 winCreateBoundingWindowWindowed - WindowClient w 1018 h 717 r 1018 l 0 b 717 t 0
winCreateBoundingWindowWindowed - Returning winCreatePrimarySurfaceShadowDDNL - Creating primary surface winCreatePrimarySurfaceShadowDDNL - Created primary surface winCreatePrimarySurfaceShadowDDNL - Attached clipper to primary surface winAllocateFBShadowDDNL - lPitch: 2036 winAllocateFBShadowDDNL - Created shadow pitch: 2036 winAllocateFBShadowDDNL - Created shadow stride: 1018 winFinishScreenInitFB - Masks: 0000f800 000007e0 0000001f winInitVisualsShadowDDNL - Masks 0000f800 000007e0 0000001f BPRGB 6 d 16 bpp 16 winCreateDefColormap - Deferring to fbCreateDefColormap () winFinishScreenInitFB - returning 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 shar ed memory support in the kernel (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: "00000407" (00000407) (--) Using preset keyboard for "German (Germany)" (407), type "4" (EE) No primary keyboard configured (==) Using compiletime defaults for keyboard Rules = "xfree86" Model = "pc105" Layout = "de" Variant = "(null)" Options = "(n ull)" Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list! winBlockHandler - Releasing pmServerStarted winBlockHandler - pthread_mutex_unlock () returned
And Xwin.exe.stackdump
Exception: STATUS_ACCESS_VIOLATION at eip=61093B17 eax=00000000 ebx=00000108 ecx=1034D4A8 edx=00000000 esi=1034D4C8 edi=1034D5B0 ebp=0022FD18 esp=0022FD00 program=C:\CygWin\usr\X11R6\bin\Xwin.exe cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023 Stack trace: Frame Function Args 0022FD18 61093B17 (77F4B974, 77E6160D, FFFFFFFF, 0022FD4C) 0022FD48 6103EB65 (1034D4C8, 00000000, 0022FEA8, 0042F0CD) 0022FD58 0043240F (610CFE28, 00000000, 00004000, 00000001) 0022FEA8 0042F0CD (10353948, 1025FE60, 616021FC, 00000001) 0022FEF0 00401538 (00000001, 616021FC, 100F0330, 0022FF24) 0022FF40 61005018 (610CFEE0, FFFFFFFE, 000007D0, 610CFE04) 0022FF90 610052ED (00000000, 00000000, 00000001, 00000000) 0022FFB0 00729331 (00401450, 037F0009, 0022FFF0, 77E614C7) 0022FFC0 0040103C (00000001, 00000020, 7FFDF000, F3239CF0) 0022FFF0 77E614C7 (00401000, 00000000, 78746341, 00000020) End of stack trace
Christoph