This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can't start X on MS Windows 7


Thanks for the references.  As for the cygwin-x-faq.html reference, I don't see the output symptomatic of Zone Alarm 5 causing trouble, so I gues that's not it, and all my mounts are binary, so it's not the /tmp issue.

As for the long list of software in the cygwin FAQ that is known to interfere with cygwin, I'm sure I have some of that running (like citrix & McAfee), but as this is a work computer, I can't uninstall that stuff.

To try to pin it down a little more, I straced startxwin & found some winsock errors showing up (see below).  They keep repeating over and over again, so I guss that's where it's hanging & there must be some sort of interference at the socket level.  Any way to pin it down more precisely, or even work around it?

Thanks,
Harvey

Snippet of output from strace startxwin:

 1082 544688314 [main] startxwin 15328 write: 1 = write(2, 0x611877D7, 1)
 1115 544689429 [main] startxwin 15328 cygwin_socket: socket (1, 1 (flags 0x2000000), 0)
  160 544689589 [main] startxwin 15328 build_fh_pc: fh 0x61274610, dev 0x1E0079
   98 544689687 [main] startxwin 15328 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   46 544689733 [main] startxwin 15328 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   42 544689775 [main] startxwin 15328 fhandler_base::set_flags: filemode set to binary
   42 544689817 [main] startxwin 15328 fdsock: fd 3, name '', soc 0xCC8
   55 544689872 [main] startxwin 15328 fhandler_base::set_close_on_exec: set close_on_exec for  to 1
   44 544689916 [main] startxwin 15328 cygwin_socket: 3 = socket(1, 1 (flags 0x2000000), 0)
   46 544689962 [main] startxwin 15328 normalize_posix_path: src /tmp/.X11-unix/X0
   43 544690005 [main] startxwin 15328 normalize_posix_path: /tmp/.X11-unix/X0 = normalize_posix_path (/tmp/.X11-unix/X0)
   43 544690048 [main] startxwin 15328 mount_info::conv_to_win32_path: conv_to_win32_path (/tmp/.X11-unix/X0)
   43 544690091 [main] startxwin 15328 set_flags: flags: binary (0x2)
   43 544690134 [main] startxwin 15328 mount_info::conv_to_win32_path: src_path /tmp/.X11-unix/X0, dst C:\cygwin\tmp\.X11-unix\X0, flags 0x3000A, rc 0
  193 544690327 [main] startxwin 15328 symlink_info::check: 0x0 = NtCreateFile (\??\C:\cygwin\tmp\.X11-unix\X0)
  301 544690628 [main] startxwin 15328 symlink_info::check: not a symlink
  117 544690745 [main] startxwin 15328 symlink_info::check: 0 = symlink.check(C:\cygwin\tmp\.X11-unix\X0, 0x289360) (0x4003000A)
   66 544690811 [main] startxwin 15328 path_conv::check: this->path(C:\cygwin\tmp\.X11-unix\X0), has_acls(1)
1000558 545691369 [main] startxwin 15328 __set_errno: void __set_winsock_errno(const char*, int):221 setting errno 111
  159 545691528 [main] startxwin 15328 __set_winsock_errno: connect:1078 - winsock error 10061 -> errno 111
  101 545691629 [main] startxwin 15328 getpid: 15328 = getpid()
   77 545691706 [main] startxwin 15328 cygwin_connect: -1 = connect(3, 0x28A9F6, 110), errno 111
   49 545691755 [main] startxwin 15328 close: close(3)
   92 545691847 [main] startxwin 15328 fhandler_socket::close: 0 = fhandler_socket::close()
   75 545691922 [main] startxwin 15328 close: 0 = close(3)
 2580 545694502 [main] startxwin 15328 cygwin_socket: socket (2, 1 (flags 0x2000000), 0)
  100 545694602 [main] startxwin 15328 build_fh_pc: fh 0x61274610, dev 0x1E0024
   89 545694691 [main] startxwin 15328 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   47 545694738 [main] startxwin 15328 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   42 545694780 [main] startxwin 15328 fhandler_base::set_flags: filemode set to binary
   42 545694822 [main] startxwin 15328 fdsock: fd 3, name '', soc 0xCC8
   54 545694876 [main] startxwin 15328 fhandler_base::set_close_on_exec: set close_on_exec for  to 1
   42 545694918 [main] startxwin 15328 cygwin_socket: 3 = socket(2, 1 (flags 0x2000000), 0)
   54 545694972 [main] startxwin 15328 cygwin_setsockopt: setsockopt optval=1
   44 545695016 [main] startxwin 15328 cygwin_setsockopt: 0 = setsockopt(3, 6, 1, 0x28A998, 4)
   51 545695067 [main] startxwin 15328 cygwin_setsockopt: setsockopt optval=1
   42 545695109 [main] startxwin 15328 cygwin_setsockopt: 0 = setsockopt(3, 65535, 8, 0x28A998, 4)
1000307 546695416 [main] startxwin 15328 __set_errno: void __set_winsock_errno(const char*, int):221 setting errno 111
  159 546695575 [main] startxwin 15328 __set_winsock_errno: connect:1078 - winsock error 10061 -> errno 111
  108 546695683 [main] startxwin 15328 cygwin_connect: -1 = connect(3, 0x800431A8, 16), errno 111
   91 546695774 [main] startxwin 15328 close: close(3)
  151 546695925 [main] startxwin 15328 fhandler_socket::close: 0 = fhandler_socket::close()
   88 546696013 [main] startxwin 15328 close: 0 = close(3)
  106 546696119 [main] startxwin 15328 cygwin_socket: socket (23, 1 (flags 0x2000000), 0)
  182 546696301 [main] startxwin 15328 build_fh_pc: fh 0x61274610, dev 0x1E0024
   96 546696397 [main] startxwin 15328 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0
   58 546696455 [main] startxwin 15328 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000
   44 546696499 [main] startxwin 15328 fhandler_base::set_flags: filemode set to binary
   42 546696541 [main] startxwin 15328 fdsock: fd 3, name '', soc 0xCC8
   54 546696595 [main] startxwin 15328 fhandler_base::set_close_on_exec: set close_on_exec for  to 1
   43 546696638 [main] startxwin 15328 cygwin_socket: 3 = socket(23, 1 (flags 0x2000000), 0)
   60 546696698 [main] startxwin 15328 cygwin_setsockopt: setsockopt optval=1
   43 546696741 [main] startxwin 15328 cygwin_setsockopt: 0 = setsockopt(3, 6, 1, 0x28A998, 4)
   51 546696792 [main] startxwin 15328 cygwin_setsockopt: setsockopt optval=1
   43 546696835 [main] startxwin 15328 cygwin_setsockopt: 0 = setsockopt(3, 65535, 8, 0x28A998, 4)
1003480 547700315 [main] startxwin 15328 __set_errno: void __set_winsock_errno(const char*, int):221 setting errno 111
  103 547700418 [main] startxwin 15328 __set_winsock_errno: connect:1078 - winsock error 10061 -> errno 111
   59 547700477 [main] startxwin 15328 cygwin_connect: -1 = connect(3, 0x800431E8, 28), errno 111
   41 547700518 [main] startxwin 15328 close: close(3)
   70 547700588 [main] startxwin 15328 fhandler_socket::close: 0 = fhandler_socket::close()
   40 547700628 [main] startxwin 15328 close: 0 = close(3)
  398 547701026 [main] startxwin 15328 wait4: calling proc_subproc, pid 15484, options 1
   23 547701049 [main] startxwin 15328 proc_subproc: args: 6, 2677248
   19 547701068 [main] startxwin 15328 proc_subproc: wval->pid 15484, wval->options 1
   20 547701088 [main] startxwin 15328 checkstate: nprocs 1
   18 547701106 [main] startxwin 15328 stopped_or_terminated: considering pid 15484, pgid 15484, w->pid 15484
   28 547701134 [main] startxwin 15328 checkstate: no matching terminated children found
   19 547701153 [main] startxwin 15328 checkstate: returning -1
   18 547701171 [main] startxwin 15328 proc_subproc: waiting thread found no children
   24 547701195 [main] startxwin 15328 proc_subproc: finished processing terminated/stopped child
   17 547701212 [main] startxwin 15328 proc_subproc: returning 1
   20 547701232 [main] startxwin 15328 wait4: 0 = cygwait (...)
   18 547701250 [main] startxwin 15328 wait4: 0 = wait4(15484, 0x0, 1, 0x0)
.  231 547701481 [main] startxwin 15328 write: 1 = write(2, 0x611877D7, 1)
  314 547701795 [main] startxwin 15328 clock_nanosleep: clock_nanosleep (1.000000000)
999466 548701261 [main] startxwin 15328 clock_nanosleep: 0 = clock_nanosleep(1, 0, 1.000000000, 0.d)
  138 548701399 [main] startxwin 15328 wait4: calling proc_subproc, pid 15484, options 1
   78 548701477 [main] startxwin 15328 proc_subproc: args: 6, 2677248
   67 548701544 [main] startxwin 15328 proc_subproc: wval->pid 15484, wval->options 1
   74 548701618 [main] startxwin 15328 checkstate: nprocs 1
   65 548701683 [main] startxwin 15328 stopped_or_terminated: considering pid 15484, pgid 15484, w->pid 15484
   60 548701743 [main] startxwin 15328 checkstate: no matching terminated children found
   60 548701803 [main] startxwin 15328 checkstate: returning -1
   59 548701862 [main] startxwin 15328 proc_subproc: waiting thread found no children
   59 548701921 [main] startxwin 15328 proc_subproc: finished processing terminated/stopped child
   54 548701975 [main] startxwin 15328 proc_subproc: returning 1
   34 548702009 [main] startxwin 15328 wait4: 0 = cygwait (...)
   23 548702032 [main] startxwin 15328 wait4: 0 = wait4(15484, 0x0, 1, 0x0)
.  249 548702281 [main] startxwin 15328 write: 1 = write(2, 0x611877D7, 1)
  319 548702600 [main] startxwin 15328 clock_nanosleep: clock_nanosleep (1.000000000)
999723 549702323 [main] startxwin 15328 clock_nanosleep: 0 = clock_nanosleep(1, 0, 1.000000000, 0.d)


----- Original Message -----
From: cygwin-xfree
To: HARVEY STEIN (BLOOMBERG/ 731 LEXIN), cygwin-xfree
At: Apr 12 2013 09:37:32

On 11/04/2013 18:00, Harvey Stein (BLOOMBERG/ 731 LEXIN) wrote:
> $ startxwin
[...]
> (--) 3 mouse buttons found

There should be a few more lines after this in a normal X server startup.

This looks like perhaps the X server is somehow getting stuck trying to run
xkbcomp during it's startup.  You might want to take a look at FAQ entries
[1],[2] which discuss software which has been known to interfere with the
operation of Cygwin.

[1] http://x.cygwin.com/docs/faq/cygwin-x-faq.html#freeze-at-startup
[2] http://cygwin.com/faq-nochunks.html#faq.using.bloda

> waiting for X server to begin accepting connections .
> ..
> ..
> ..
> ..
> .. 

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]