Re: X startup hangs
electa wrote: ZoneAlarm is known to change the behaviour of Windows TCP/IP stack and this seems to cause troubles with cygwin since cygwin must provide unix like semantics and has problems if something does not work it was expected. But I tried shutting down Zonealarm-- X still hangs. Do you think it ss really a ZoneAlarm problem? ZoneAlarm replaces the TCP stack with it's own. You cannot fully shut it down until after uninstalling it and rebooting. The most recent version of ZA broke every POP/SMTP mailer on my system. Shutting it down, removing it from start up and rebooting did nothing to change that. Uninstalling it magically fixed everything, and several other problems I hadn't attributed to ZoneAlarm as well.
Re: X startup hangs
ZoneAlarm is known to change the behaviour of Windows TCP/IP stack and this seems to cause troubles with cygwin since cygwin must provide unix like semantics and has problems if something does not work it was expected. But I tried shutting down Zonealarm-- X still hangs. Do you think it ss really a ZoneAlarm problem? So it is not a problem with insufficient rights to access the network (in fact xkbcomp does not need any network access) but a problem with different/unexpected behaviour of windows subsystems. I doubt this can be solved without digging into the startup code of the cygwin library where it stopped Can you help me solving just the xkb problem (which is not related to network)? I appreciate very much to work with my keyboard. Now i'm using 'startx -- -kb -clipboard' without -multiwindow the X starts hanged. After killing cat.exe, X is ready and I can use it. my little goal is to remove that -kb to regain my keyboard!
Re: X startup hangs
On Thu, 15 Jul 2004, electa wrote: ZoneAlarm is known to change the behaviour of Windows TCP/IP stack and this seems to cause troubles with cygwin since cygwin must provide unix like semantics and has problems if something does not work it was expected. But I tried shutting down Zonealarm-- X still hangs. Do you think it ss really a ZoneAlarm problem? ZoneAlarm replaces/hooks some of the libraries providing the TCP/IP stack. Disabling ZoneAlarm still leaves those changes active but ZoneAlarm does not drop packets anymore. So it is not a problem with insufficient rights to access the network (in fact xkbcomp does not need any network access) but a problem with different/unexpected behaviour of windows subsystems. I doubt this can be solved without digging into the startup code of the cygwin library where it stopped Can you help me solving just the xkb problem (which is not related to network)? It is te problem. Normally xkbcomp expects input on stdin. It seems that ZoneAlarm somehow breaks pipes (eg ls | wc) in some circumstances. I think it's the same with cat.exe. It just waits forever the get or receive data. I appreciate very much to work with my keyboard. Now i'm using 'startx -- -kb -clipboard' without -multiwindow the X starts hanged. After killing cat.exe, X is ready and I can use it. my little goal is to remove that -kb to regain my keyboard! Can you send me another strace of the above command? strace -o xinit.strace2 startx -- -kb -clipboard bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
Can you send me another strace of the above command? strace -o xinit.strace2 startx -- -kb -clipboard but startx is not a program... i will send you xinit -- /usr/X11R6/bin/Xwin.exe -kb -clipboard ok?
Re: X startup hangs
On Thu, 15 Jul 2004, electa wrote: Can you send me another strace of the above command? strace -o xinit.strace2 startx -- -kb -clipboard but startx is not a program... i will send you xinit -- /usr/X11R6/bin/Xwin.exe -kb -clipboard ok? yes. that's what i meant. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
On Thu, 15 Jul 2004, electa wrote: Can you send me another strace of the above command? strace -o xinit.strace2 startx -- -kb -clipboard but startx is not a program... i will send you xinit -- /usr/X11R6/bin/Xwin.exe -kb -clipboard ok? I've taken a look but can not find the start of cat.exe. Maybe this is from profile or login script. Anyway I think you should be able to start /usr/X11R6/bin/Xwin.exe -kb -clipboard and then start xterm, or twm or anything else manually export DISPLAY=:0.0 xterm or export DISPLAY=:0.0 twm bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
Just a reminiscence... To be present in archive ;-) all this problems starts 1 week ago when I upgraded from Zonalarm 4 to ZoneAlarm 5!!! With ZA4 Cygwin'sX works. with ZA5 no.
Re: X startup hangs
I've taken a look but can not find the start of cat.exe. Maybe this is from profile or login script. nope. I checked .bash_profile /etc/profile /etc/profile.d/*.sh startx nobody invoke cat...
Re: X startup hangs
On Thu, 15 Jul 2004, electa wrote: I've taken a look but can not find the start of cat.exe. Maybe this is from profile or login script. nope. I checked .bash_profile /etc/profile /etc/profile.d/*.sh startx nobody invoke cat... Maybe not directly but from another program. who would expect xrdb to call /bin/cpp? bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
On Thu, 15 Jul 2004, electa wrote: Take a look at next strace: strace -o xinit.strace3 xinit -- /usr/X11R6/bin/XWin -clipboard same as in the first trace. Right after startup of sh -c xkbcomp ... it stops while waiting for some winsock operation to complete. Can you find why X hangs when I omit '-kb' in cmd-line? with -kb x start xkbcomp to generate the keymap. xkbcomp expects input on stdin but waits forever since ZoneAlarm 5 somehow interferes with pipes in cygwin. I'll send this to [EMAIL PROTECTED] too since it's low level cygwin bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
newer test: startx -- -kb -clipboard = starts cat and I must kill him to go on xinit -- -kb -clipboard = X startup ok!
Re: X startup hangs
newer test: startx -- -kb -clipboard = starts cat and I must kill him to go on xinit -- -kb -clipboard = X startup ok! and so this is why in my straces there is no cat running: i straced xinit, because startx is not a program!
Re: X startup hangs
On Thu, 15 Jul 2004, electa wrote: newer test: startx -- -kb -clipboard = starts cat and I must kill him to go on xinit -- -kb -clipboard = X startup ok! and so this is why in my straces there is no cat running: i straced xinit, because startx is not a program! FYI: you can use 'strace sh -c startx -- -kb -clipboard' to strace startx (or any other shell script). Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! I have since come to realize that being between your mentor and his route to the bathroom is a major career booster. -- Patrick Naughton
Re: X startup hangs
On Thu, 15 Jul 2004, electa wrote: newer test: startx -- -kb -clipboard = starts cat and I must kill him to go on xinit -- -kb -clipboard = X startup ok! and so this is why in my straces there is no cat running: i straced xinit, because startx is not a program! bash -x /usr/X11R6/bin/startx -- -kb -clipboard lists you everything which is executed by startx bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
startx -- -kb -clipboard = starts cat and I must kill him to go on xinit -- -kb -clipboard = X startup ok! startx stops after winClipboardProc - Hello and before DetectUnicodeSupport - Windows NT/2000/XP looking at screen log, the only difference between the two is the cmd line: startx - /usr/X11R6/bin/X :0 -kb -clipboard xinit - X :0 -kb -clipboard
Re: X startup hangs
--- An important test: without -multiwindow, the X window appear. but she hangs sooner. in task manager, now cat.exe is running. (it gets 0% of CPU). if I kill cat.exe via task manager, an Xterm now appear in X window. X is ready now! What is doing cat with X? maybe this is from the xinitrc script. Do you have .xinitrc in your home directory? Hey it's true! I found that I don't have an .xinitrc in home dir do you still get the cat started when doing xinit /usr/X11R6/lib/X11/xinit/xinitrc -- /usr/X11R6/bin/XWin -multiwindow -clipboard cat don't start. I get the same output as first tests (plain 'startx')
Re: X startup hangs
On Wed, 14 Jul 2004, electa wrote: What is doing cat with X? maybe this is from the xinitrc script. Do you have .xinitrc in your home directory? Hey it's true! I found that I don't have an .xinitrc in home dir I actually ment that call to cat might be in the .xinitrc file. If there is no .xinitrc then /usr/X11R6/lib/X11/xinit/xinitrc is used instead do you still get the cat started when doing xinit /usr/X11R6/lib/X11/xinit/xinitrc -- /usr/X11R6/bin/XWin -multiwindow -clipboard cat don't start. I get the same output as first tests (plain 'startx') I've looked over your strace log and found some minor differences to mine. And it stopped while doing some network operations. Do you have some kind of personal firewall or vpn software installed? bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
I have Zonealarm Security Suite I give all requested rights to X program when they asked them, that is: Bash.exe access Internet and Trusted xinit.exe access Internet and Trusted xterm.exe access Internet and Trusted Xwin.exe access Internet and Trusted and listen as server in Internet and Trusted (And i still think that they do not need all of this, in fact access to localhost (127.0.0.1) should be enough for X programs...) Can you show me these incrimined lines of log? I've looked over your strace log and found some minor differences to mine. And it stopped while doing some network operations. Do you have some kind of personal firewall or vpn software installed?
Re: X startup hangs
On Wed, 14 Jul 2004, electa wrote: I have Zonealarm Security Suite I give all requested rights to X program when they asked them, that is: Bash.exe access Internet and Trusted xinit.exe access Internet and Trusted xterm.exe access Internet and Trusted Xwin.exe access Internet and Trusted and listen as server in Internet and Trusted (And i still think that they do not need all of this, in fact access to localhost (127.0.0.1) should be enough for X programs...) Can you show me these incrimined lines of log? from my log: ** Program name: C:\cygwin\bin\sh.exe (3820) App version: 1005.10, api: 0.116 DLL version: 1005.10, api: 0.116 DLL build:2004-06-15 14:34 OS version: Windows NT-5.0 Heap size:402653184 Date/Time:2004-07-13 18:40:53 ** 101 808 [main] sh 3820 fhandler_socket::fixup_after_exec: here 65 873 [main] sh 3820 fhandler_socket::fixup_after_fork: WSASocket begin, dwServiceFlags1=131174 37604633 [main] sh 3820 wsock_init: res 0 1944827 [main] sh 3820 wsock_init: wVersion 514 624889 [main] sh 3820 wsock_init: wHighVersion 514 594948 [main] sh 3820 wsock_init: szDescription WinSock 2.0 575005 [main] sh 3820 wsock_init: szSystemStatus Running 575062 [main] sh 3820 wsock_init: iMaxSockets 0 535115 [main] sh 3820 wsock_init: iMaxUdpDg 0 525167 [main] sh 3820 wsock_init: lpVendorInfo 0 5437 10604 [main] sh 3820 fhandler_socket::fixup_after_fork: WSASocket went fine new_sock 0x3EC, old_sock 0x3E8 150 10754 [main] sh 3820 fhandler_socket::fixup_after_exec: here 87 10841 [main] sh 3820 fhandler_socket::fixup_after_fork: WSASocket begin, dwServiceFlags1=131174 105 10946 [main] sh 3820 fhandler_socket::fixup_after_fork: WSASocket went fine new_sock 0x3E0, old_sock 0x3E4 129 11075 [main] sh 3820 events_init: windows_system_directory 'C:\WINNT\system32\', windows_system_directory_length 18 149 11224 [main] sh 3820 _cygwin_istext_for_stdio: fd 0: opened as binary 64 11288 [main] sh 3820 _cygwin_istext_for_stdio: fd 1: opened as binary 56 11344 [main] sh 3820 _cygwin_istext_for_stdio: fd 2: opened as binary from your's: ** Program name: C:\Programmi\cygwin\bin\sh.exe (2116) App version: 1005.10, api: 0.116 DLL version: 1005.10, api: 0.116 DLL build:2004-05-25 22:07 OS version: Windows NT-5.1 Heap size:402653184 Date/Time:2004-07-14 14:44:55 ** 100 364 [main] sh 2116 open_shared: name (null), shared 0xA02 (wanted 0xA02), h 0x6FC 55 419 [main] sh 2116 fhandler_base::set_flags: flags 0x18002, supplied_bin 0x0 32 451 [main] sh 2116 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x1 27 478 [main] sh 2116 fhandler_base::set_flags: filemode set to binary 7701248 [main] sh 2116 fhandler_console::open: incremented open_fhs, now 2 751323 [main] sh 2116 fhandler_console::open: opened conin$ 0xB, conout$ 0x2B 701393 [main] sh 2116 fhandler_base::set_flags: flags 0x18002, supplied_bin 0x0 311424 [main] sh 2116 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x1 261450 [main] sh 2116 fhandler_base::set_flags: filemode set to binary 1041554 [main] sh 2116 fhandler_console::open: incremented open_fhs, now 2 361590 [main] sh 2116 fhandler_console::open: opened conin$ 0x13, conout$ 0x2F 661656 [main] sh 2116 fhandler_socket::fixup_after_exec: here 7982454 [main] sh 2116 fhandler_socket::fixup_after_fork: WSASocket begin, dwServiceFlags1=102 13667 16121 [main] sh 2116 wsock_init: res 0 176 16297 [main] sh 2116 wsock_init: wVersion 514 34 16331 [main] sh 2116 wsock_init: wHighVersion 514 30 16361 [main] sh 2116 wsock_init: szDescription WinSock 2.0 26 16387 [main] sh 2116 wsock_init: szSystemStatus Running 26 16413 [main] sh 2116 wsock_init: iMaxSockets 0 26 16439 [main] sh 2116 wsock_init: iMaxUdpDg 0 25 16464 [main] sh 2116 wsock_init: lpVendorInfo 0 after this line the log ends. It seems it can not setup that socket correctly which lead me to the assumption you have ZoneAlarm. ZoneAlarm is known to change the behaviour of Windows TCP/IP stack and this seems to cause troubles with cygwin since cygwin must provide unix like semantics and has problems if something does not work it was expected. So it is not a problem with insufficient rights to access the network (in fact xkbcomp does not need any network access) but a problem with different/unexpected behaviour of windows subsystems. I doubt this can be solved without digging into the startup code of the cygwin library where it stopped bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
On Tue, 13 Jul 2004, electa wrote: When i try to start X with command: $ startx (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: 0410 (0410) (--) Using preset keyboard for Italian (410), type 4 Rules = xorg Model = pc105 Layout = it Variant = (null) Options = (null ) at this point output stops, and no window appear. with 'ps' I can see that Xwin.exe and xinit.exe are both running (in winXp task manager too) trying with startxwin.bat, I get the same output and again no window. what does mount report? bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
$ mount C:\Programmi\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type sys tem (binmode) C:\Programmi\cygwin\bin on /usr/bin type system (binmode) C:\Programmi\cygwin\lib on /usr/lib type system (binmode) C:\Programmi\cygwin on / type system (binmode) c: on /cygdrive/c type user (binmode,noumount) d: on /cygdrive/d type user (binmode,noumount) e: on /cygdrive/e type user (binmode,noumount) o: on /cygdrive/o type user (binmode,noumount)
Re: X startup hangs
On Tue, 13 Jul 2004, electa wrote: $ mount C:\Programmi\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type sys tem (binmode) C:\Programmi\cygwin\bin on /usr/bin type system (binmode) C:\Programmi\cygwin\lib on /usr/lib type system (binmode) C:\Programmi\cygwin on / type system (binmode) c: on /cygdrive/c type user (binmode,noumount) d: on /cygdrive/d type user (binmode,noumount) e: on /cygdrive/e type user (binmode,noumount) o: on /cygdrive/o type user (binmode,noumount) Hm, at least the wrong filessystem mode is not the problem. From your log I see it stops when it generates the keyboard layout. You may disable this by adding the option -kb to the commandline to start XWin but you will get the US layout as default. But I don't know what causes xkbcomp to hang for some users and until I can reproduce this I have no change to debug what is happening. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
still hangs... $ startx -- -kb -multiwindow -clipboard Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 6.7.0.0-10 Contact: [EMAIL PROTECTED] XWin was started with the following command line: /usr/X11R6/bin/X :0 -kb -multiwindow -clipboard _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1 (II) XF86Config is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information winDetectSupportedEngines - Windows NT/2000/XP winDetectSupportedEngines - DirectDraw installed winDetectSupportedEngines - DirectDraw4 installed winDetectSupportedEngines - Returning, supported engines 0007 winSetEngine - Multi Window or Rootless = ShadowGDI winAdjustVideoModeShadowGDI - Using Windows display depth of 16 bits per pixel winAllocateFBShadowGDI - Creating DIB with width: 1024 height: 734 depth: 16 winFinishScreenInitFB - Masks: f800 07e0 001f winInitVisualsShadowGDI - Masks f800 07e0 001f BPRGB 6 d 16 bpp 16 null screen fn ReparentWindow null screen fn RestackWindow InitQueue - Calling pthread_mutex_init InitQueue - pthread_mutex_init returned InitQueue - Calling pthread_cond_init InitQueue - pthread_cond_init returned winInitMultiWindowWM - Hello winInitMultiWindowWM - Calling pthread_mutex_lock () winMultiWindowXMsgProc - Hello winMultiWindowXMsgProc - Calling pthread_mutex_lock () 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: 0410 (0410) (--) Using preset keyboard for Italian (410), type 4 (++) XkbExtension disabled Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from li st! 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/CID/, removing from li st! Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list! winPointerWarpCursor - Discarding first warp: 512 367 winInitMultiWindowWM - pthread_mutex_lock () returned. winMultiWindowXMsgProc - pthread_mutex_lock () returned. winMultiWindowXMsgProc - pthread_mutex_unlock () returned. winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0 winInitMultiWindowWM - pthread_mutex_unlock () returned. winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0 winProcEstablishConnection - Hello --- An important test: without -multiwindow, the X window appear. but she hangs sooner. in task manager, now cat.exe is running. (it gets 0% of CPU). if I kill cat.exe via task manager, an Xterm now appear in X window. X is ready now! What is doing cat with X? - A reminescence: In early past cat.exe sometimes gets 100% CPU during X startup. X don't finish start, and i resolve by killing cat. When i do it, X is ready. there are 2 differences: - now cat has 0% CPU - with -multiwindow, X hangs before cat
Re: X startup hangs
On Tue, 13 Jul 2004, electa wrote: still hangs... $ startx -- -kb -multiwindow -clipboard (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: 0410 (0410) (--) Using preset keyboard for Italian (410), type 4 (++) XkbExtension disabled Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from li st! It is getting beyond the point where it failed earlier. winMultiWindowXMsgProc - pthread_mutex_lock () returned. winMultiWindowXMsgProc - pthread_mutex_unlock () returned. winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0 winInitMultiWindowWM - pthread_mutex_unlock () returned. winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0 winProcEstablishConnection - Hello --- An important test: without -multiwindow, the X window appear. but she hangs sooner. in task manager, now cat.exe is running. (it gets 0% of CPU). if I kill cat.exe via task manager, an Xterm now appear in X window. X is ready now! What is doing cat with X? maybe this is from the xinitrc script. Do you have .xinitrc in your home directory? do you still get the cat started when doing xinit /usr/X11R6/lib/X11/xinit/xinitrc -- /usr/X11R6/bin/XWin -multiwindow -clipboard bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: X startup hangs
On Tue, 13 Jul 2004, electa wrote: xinit /usr/X11R6/lib/X11/xinit/xinitrc -- /usr/X11R6/bin/XWin -multiwindow -clipboard Can you provide me with an strace output of the above: strace -o xinit.strace xinit /usr/X11R6/lib/X11/xinit/xinitrc -- /usr/X11R6/bin/XWin -multiwindow -clipboard please mail me the xinit.strace _directly_ (i don't want to annoy the list with the large output) bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723