X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: "Yadin Y. Goldschmidt" Subject: Re: problem with starting services in 1.5.19 Date: Fri, 24 Feb 2006 14:56:12 -0500 Lines: 306 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I still did not get any response, can someone please help? Since I received no suggestions I ran strace on cygrunsrv -S cron. I give here the result with 1.5.18 first (cron starts) and 1.5.19 second (cron is not starting) I only give the end of the strace since the beginning is pretty much the same. 1.5.18: 205 27445 [main] cygrunsrv 3664 build_argv: argv[0] = 'cygrunsrv' 45 27490 [main] cygrunsrv 3664 build_argv: argv[1] = '-S' 42 27532 [main] cygrunsrv 3664 build_argv: argv[2] = 'cron' 42 27574 [main] cygrunsrv 3664 build_argv: argc 3 227 27801 [sig] cygrunsrv 3664 wait_sig: myself->dwProcessId 3664 68 27869 [sig] cygrunsrv 3664 wait_sig: entering ReadFile loop, readsig 0x70C, myself->sendsig 0x704 107 27976 [main] cygrunsrv 3664 build_fh_pc: fh 0x61155818 74 28050 [main] cygrunsrv 3664 open_shared: name (null), shared 0x60020000 (wanted 0x60020000), h 0x6F8 52 28102 [main] cygrunsrv 3664 _pinfo::set_ctty: checking if /dev/tty-1 changed 43 28145 [main] cygrunsrv 3664 _pinfo::set_ctty: attached tty1073741824 sid 3664, pid 3664, tty->pgid 3664, tty->sid 3664 151 28296 [main] cygrunsrv 3664 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0 47 28343 [main] cygrunsrv 3664 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000 60 28403 [main] cygrunsrv 3664 fhandler_base::set_flags: filemode set to binary 118 28521 [main] cygrunsrv 3664 fhandler_console::open: incremented open_fhs, now 1 44 28565 [main] cygrunsrv 3664 fhandler_console::open: opened conin$ 0xF, conout$ 0x13 63 28628 [main] cygrunsrv 3664 fhandler_console::output_tcsetattr: 0 = tcsetattr (,60020018) (ENABLE FLAGS 3) (lflag 107 oflag 9) 225 28853 [main] cygrunsrv 3664 handle_to_fn: nt name '\Device\HarddiskVolume1\yadin\stracecron1518.txt' 1232 30085 [main] cygrunsrv 3664 handle_to_fn: current match '\Device\HarddiskVolume1' 112 30197 [main] cygrunsrv 3664 handle_to_fn: derived path 'C:\yadin\stracecron1518.txt' 64 30261 [main] cygrunsrv 3664 mount_info::conv_to_posix_path: conv_to_posix_path (C:\robert\stracecron1518.txt, no-keep-rel, no-add-slash) 45 30306 [main] cygrunsrv 3664 normalize_win32_path: C:\yadin\stracecron1518.txt = normalize_win32_path (C:\yadin\stracecron1518.txt) 46 30352 [main] cygrunsrv 3664 mount_info::conv_to_posix_path: /cygdrive/c/yadin/stracecron1518.txt = conv_to_posix_path (C:\yadin\stracecron1518.txt) 45 30397 [main] cygrunsrv 3664 normalize_posix_path: src /cygdrive/c/yadin/stracecron1518.txt 42 30439 [main] cygrunsrv 3664 normalize_posix_path: /cygdrive/c/yadin/stracecron1518.txt = normalize_posix_path (/cygdrive/c/yadin/stracecron1518.txt) 44 30483 [main] cygrunsrv 3664 mount_info::conv_to_win32_path: conv_to_win32_path (/cygdrive/c/yadin/stracecron1518.txt) 45 30528 [main] cygrunsrv 3664 mount_info::cygdrive_win32_path: src '/cygdrive/c/yadin/stracecron1518.txt', dst 'c:\yadin\stracecron1518.txt' 42 30570 [main] cygrunsrv 3664 set_flags: flags: binary (0x2) 41 30611 [main] cygrunsrv 3664 mount_info::conv_to_win32_path: src_path /cygdrive/c/yadin/stracecron1518.txt, dst c:\yadin\stracecron1518.txt, flags 0x2A, rc 0 229 30840 [main] cygrunsrv 3664 symlink_info::check: not a symlink 53 30893 [main] cygrunsrv 3664 symlink_info::check: 0 = symlink.check (c:\yadin\stracecron1518.txt, 0x2263C0) (0x2A) 46 30939 [main] cygrunsrv 3664 path_conv::check: this->path(c:\yadin\stracecron1518.txt), has_acls(1) 47 30986 [main] cygrunsrv 3664 build_fh_pc: fh 0x61155A20 52 31038 [main] cygrunsrv 3664 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0 42 31080 [main] cygrunsrv 3664 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000 40 31120 [main] cygrunsrv 3664 fhandler_base::set_flags: filemode set to binary 40 31160 [main] cygrunsrv 3664 fhandler_base::init: created new fhandler_base for handle 0x678, bin 1 138 31298 [main] cygrunsrv 3664 build_fh_pc: fh 0x61155C28 47 31345 [main] cygrunsrv 3664 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0 42 31387 [main] cygrunsrv 3664 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000 41 31428 [main] cygrunsrv 3664 fhandler_base::set_flags: filemode set to binary 100 31528 [main] cygrunsrv 3664 fhandler_console::open: incremented open_fhs, now 2 43 31571 [main] cygrunsrv 3664 fhandler_console::open: opened conin$ 0xB, conout$ 0x2B 60 31631 [main] cygrunsrv 3664 fhandler_console::output_tcsetattr: 0 = tcsetattr (,60020018) (ENABLE FLAGS 3) (lflag 107 oflag 9) 83 31714 [main] cygrunsrv 3664 dll_crt0_1: user_data->main 0x404DB0 43 31757 [main] cygrunsrv 3664 __set_errno: void dll_crt0_1(char*):880 val 0 42 31799 [main] cygrunsrv 3664 wait_for_sigthread: wait_sig_inited 0x708 2022359 2054158 [main] cygrunsrv 3664 close: close (0) 115 2054273 [main] cygrunsrv 3664 fhandler_console::close: decremented open_fhs, now 1 47 2054320 [main] cygrunsrv 3664 close: 0 = close (0) 241 2054561 [main] cygrunsrv 3664 close: close (1) 47 2054608 [main] cygrunsrv 3664 fhandler_base::close: closing '/cygdrive/c/yadin/stracecron1518.txt' handle 0x678 48 2054656 [main] cygrunsrv 3664 close: 0 = close (1) 240 2054896 [main] cygrunsrv 3664 close: close (2) 96 2054992 [main] cygrunsrv 3664 fhandler_console::close: decremented open_fhs, now 0 44 2055036 [main] cygrunsrv 3664 close: 0 = close (2) 140 2055176 [main] cygrunsrv 3664 do_exit: do_exit (0), exit_state 0 49 2055225 [main] cygrunsrv 3664 void: 0x0 = signal (20, 0x1) 41 2055266 [main] cygrunsrv 3664 void: 0x0 = signal (1, 0x1) 40 2055306 [main] cygrunsrv 3664 void: 0x0 = signal (2, 0x1) 40 2055346 [main] cygrunsrv 3664 void: 0x0 = signal (3, 0x1) 40 2055386 [main] cygrunsrv 3664 sigproc_terminate: entering 52 2055438 [main] cygrunsrv 3664 proc_terminate: nprocs 0 41 2055479 [main] cygrunsrv 3664 proc_terminate: leaving 70 2055549 [main] cygrunsrv 3664 sigproc_terminate: sigproc handling not active 40 2055589 [main] cygrunsrv 3664 proc_terminate: nprocs 0 39 2055628 [main] cygrunsrv 3664 proc_terminate: leaving 43 2055671 [main] cygrunsrv 3664 __to_clock_t: dwHighDateTime 0, dwLowDateTime 156250 41 2055712 [main] cygrunsrv 3664 __to_clock_t: total 00000000 0000000F 41 2055753 [main] cygrunsrv 3664 __to_clock_t: dwHighDateTime 0, dwLowDateTime 312500 43 2055796 [main] cygrunsrv 3664 __to_clock_t: total 00000000 0000001F 159 2055955 [sig] cygrunsrv 3664 wait_sig: done 725 2056680 [sig] cygrunsrv 3664 _cygtls::remove: wait 0x0 164 2056844 [main] cygrunsrv 3664 pinfo::maybe_set_exit_code_from_windows: pid 3664, exit value - old 0x80000000, windows 0xDEADBEEF, cygwin 0x80000000 Now with 1.5.19: 643 29308 [main] cygrunsrv 616 build_argv: argv[0] = 'cygrunsrv' 63 29371 [main] cygrunsrv 616 build_argv: argv[1] = '-S' 44 29415 [main] cygrunsrv 616 build_argv: argv[2] = 'cron' 42 29457 [main] cygrunsrv 616 build_argv: argc 3 258 29715 [sig] cygrunsrv 616 wait_sig: myself->dwProcessId 616 65 29780 [sig] cygrunsrv 616 wait_sig: entering ReadFile loop, readsig 0x70C, myself->sendsig 0x708 112 29892 [main] cygrunsrv 616 build_fh_pc: fh 0x6115E854 73 29965 [main] cygrunsrv 616 open_shared: name (null), n 0, shared 0x60020000 (wanted 0x60020000), h 0x6F8 54 30019 [main] cygrunsrv 616 _pinfo::set_ctty: old no ctty 42 30061 [main] cygrunsrv 616 _pinfo::set_ctty: attached ctty /dev/console sid 616, pid 616, tty->pgid 616, tty->sid 616 150 30211 [main] cygrunsrv 616 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0 46 30257 [main] cygrunsrv 616 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000 43 30300 [main] cygrunsrv 616 fhandler_base::set_flags: filemode set to binary 135 30435 [main] cygrunsrv 616 init_cygheap::manage_console_count: fhandler_console::open: console_count 1, amount 1, ctty /dev/console, avoid_freeing_console 0 48 30483 [main] cygrunsrv 616 fhandler_console::open: opened conin$ 0xF, conout$ 0x13 64 30547 [main] cygrunsrv 616 fhandler_console::output_tcsetattr: 0 = tcsetattr (,60020018) (ENABLE FLAGS 3) (lflag 107 oflag 9) 218 30765 [main] cygrunsrv 616 handle_to_fn: nt name '\Device\HarddiskVolume1\yadin\stracecron.txt' 15267 46032 [main] cygrunsrv 616 handle_to_fn: current match '\Device\HarddiskVolume1' 114 46146 [main] cygrunsrv 616 handle_to_fn: derived path 'C:\yadin\stracecron.txt' 46 46192 [main] cygrunsrv 616 mount_info::conv_to_posix_path: conv_to_posix_path (C:\yadin\stracecron.txt, no-keep-rel, no-add-slash) 45 46237 [main] cygrunsrv 616 normalize_win32_path: C:\yadin\stracecron.txt = normalize_win32_path (C:\yadin\stracecron.txt) 47 46284 [main] cygrunsrv 616 mount_info::conv_to_posix_path: /cygdrive/c/yadin/stracecron.txt = conv_to_posix_path (C:\yadin\stracecron.txt) 46 46330 [main] cygrunsrv 616 normalize_posix_path: src /cygdrive/c/yadin/stracecron.txt 43 46373 [main] cygrunsrv 616 normalize_posix_path: /cygdrive/c/yadin/stracecron.txt = normalize_posix_path (/cygdrive/c/yadin/stracecron.txt) 44 46417 [main] cygrunsrv 616 mount_info::conv_to_win32_path: conv_to_win32_path (/cygdrive/c/yadin/stracecron.txt) 45 46462 [main] cygrunsrv 616 mount_info::cygdrive_win32_path: src '/cygdrive/c/yadin/stracecron.txt', dst 'c:\yadin\stracecron.txt' 43 46505 [main] cygrunsrv 616 set_flags: flags: binary (0x2) 41 46546 [main] cygrunsrv 616 mount_info::conv_to_win32_path: src_path /cygdrive/c/yadin/stracecron.txt, dst c:\yadin\stracecron.txt, flags 0x2A, rc 0 222 46768 [main] cygrunsrv 616 symlink_info::check: not a symlink 57 46825 [main] cygrunsrv 616 symlink_info::check: 0 = symlink.check (c:\yadin\stracecron.txt, 0x2262B0) (0x2A) 46 46871 [main] cygrunsrv 616 path_conv::check: this->path(c:\yadin\stracecron.txt), has_acls(1) 47 46918 [main] cygrunsrv 616 build_fh_pc: fh 0x6115EA5C 53 46971 [main] cygrunsrv 616 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0 41 47012 [main] cygrunsrv 616 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000 42 47054 [main] cygrunsrv 616 fhandler_base::set_flags: filemode set to binary 43 47097 [main] cygrunsrv 616 fhandler_base::init: created new fhandler_base for handle 0x6C4, bin 1 114 47211 [main] cygrunsrv 616 build_fh_pc: fh 0x6115EC64 46 47257 [main] cygrunsrv 616 fhandler_base::set_flags: flags 0x10002, supplied_bin 0x0 43 47300 [main] cygrunsrv 616 fhandler_base::set_flags: O_TEXT/O_BINARY set in flags 0x10000 43 47343 [main] cygrunsrv 616 fhandler_base::set_flags: filemode set to binary 108 47451 [main] cygrunsrv 616 init_cygheap::manage_console_count: fhandler_console::open: console_count 2, amount 1, ctty /dev/console, avoid_freeing_console 0 47 47498 [main] cygrunsrv 616 fhandler_console::open: opened conin$ 0xB, conout$ 0x2B 61 47559 [main] cygrunsrv 616 fhandler_console::output_tcsetattr: 0 = tcsetattr (,60020018) (ENABLE FLAGS 3) (lflag 107 oflag 9) 102 47661 [main] cygrunsrv 616 fhandler_console::need_invisible: invisible_console 0 46 47707 [main] cygrunsrv 616 dll_crt0_1: user_data->main 0x404DB0 43 47750 [main] cygrunsrv 616 __set_errno: void dll_crt0_1(char*):919 val 0 42 47792 [main] cygrunsrv 616 wait_for_sigthread: wait_sig_inited 0x710 7034165 7081957 [main] cygrunsrv 616 fhandler_console::write: 22D090, 35 86 7082043 [main] cygrunsrv 616 fhandler_console::write: at 99(c) state is 0 148 7082191 [main] cygrunsrv 616 fhandler_console::write: 35 = write_console (,..35) 262 7082453 [main] cygrunsrv 616 fhandler_console::write: 22D090, 20 42 7082495 [main] cygrunsrv 616 fhandler_console::write: at 58(:) state is 0 78 7082573 [main] cygrunsrv 616 fhandler_console::write: 20 = write_console (,..20) 312 7082885 [main] cygrunsrv 616 fhandler_console::write: 22D090, 103 46 7082931 [main] cygrunsrv 616 fhandler_console::write: at 58(:) state is 0 133 7083064 [main] cygrunsrv 616 fhandler_console::write: at 84(T) state is 0 124 7083188 [main] cygrunsrv 616 fhandler_console::write: at 10(0x20) state is 0 83 7083271 [main] cygrunsrv 616 fhandler_console::write: 103 = write_console (,..103) 211 7083482 [main] cygrunsrv 616 fhandler_console::write: 610FB167, 1 45 7083527 [main] cygrunsrv 616 fhandler_console::write: at 10(0x20) state is 0 81 7083608 [main] cygrunsrv 616 fhandler_console::write: 1 = write_console (,..1) 252 7083860 [main] cygrunsrv 616 close: close (0) 64 7083924 [main] cygrunsrv 616 init_cygheap::manage_console_count: fhandler_console::close: console_count 1, amount -1, ctty /dev/console, avoid_freeing_console 0 46 7083970 [main] cygrunsrv 616 close: 0 = close (0) 245 7084215 [main] cygrunsrv 616 close: close (1) 42 7084257 [main] cygrunsrv 616 fhandler_base::close: closing '/cygdrive/c/yadin/stracecron.txt' handle 0x6C4 51 7084308 [main] cygrunsrv 616 close: 0 = close (1) 245 7084553 [main] cygrunsrv 616 close: close (2) 62 7084615 [main] cygrunsrv 616 init_cygheap::manage_console_count: fhandler_console::close: console_count 0, amount -1, ctty /dev/console, avoid_freeing_console 0 46 7084661 [main] cygrunsrv 616 close: 0 = close (2) 143 7084804 [main] cygrunsrv 616 do_exit: do_exit (256), exit_state 0 48 7084852 [main] cygrunsrv 616 void: 0x0 = signal (20, 0x1) 42 7084894 [main] cygrunsrv 616 void: 0x0 = signal (1, 0x1) 41 7084935 [main] cygrunsrv 616 void: 0x0 = signal (2, 0x1) 42 7084977 [main] cygrunsrv 616 void: 0x0 = signal (3, 0x1) 81 7085058 [main] cygrunsrv 616 sigproc_terminate: entering 43 7085101 [main] cygrunsrv 616 sig_send: sendsig 0x708, pid 616, signal -42, its_me 1 53 7085154 [main] cygrunsrv 616 sig_send: Not waiting for sigcomplete. its_me 1 signal -42 47 7085201 [main] cygrunsrv 616 sig_send: returning 0x0 from sending signal -42 41 7085242 [main] cygrunsrv 616 proc_terminate: nprocs 0 40 7085282 [main] cygrunsrv 616 proc_terminate: leaving 128 7085410 [main] cygrunsrv 616 __to_clock_t: dwHighDateTime 0, dwLowDateTime 156250 46 7085456 [main] cygrunsrv 616 __to_clock_t: total 00000000 0000000F 42 7085498 [main] cygrunsrv 616 __to_clock_t: dwHighDateTime 0, dwLowDateTime 156250 40 7085538 [main] cygrunsrv 616 __to_clock_t: total 00000000 0000000F 799 7086337 [main] cygrunsrv 616 pinfo::exit: Calling ExitProcess n 0x100, exitcode 0x1 "Yadin Y. Goldschmidt" wrote in message news:dtkgrf$v0q$1 AT sea DOT gmane DOT org... >I will try sending the attachment again so it will not be encoded. > > "Yadin Y. Goldschmidt" wrote in message news:dtkg8l$soi$1 AT sea DOT gmane DOT org... >>I reported this in the past but received no response. Services like cron >> and sshd hang up when starting with cygrunsrv in 1.5.29. Upon reboot, >> most >> often one starts >> and the other hangs. The problem is best nanifested when from the cygwin >> prompt >> I type "cygrunsrv -S cron" or "cygrunsrv -S sshd". With 1.5.18 they start >> with no problem. with 1.5.19 I get: >> "cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error >> 1053: >> The service did not respond to the start or control request in a timely >> fashion" >> When looking at ps -a the process cygrunsrv is running but not cron or >> sshd. >> Again reverting to 1.5.18 everything works fine. I tried rebase all but >> it >> does not help. >> I tried the latest snapshot 20060222 and it does not help either. >> Yadin. -------------------------------------------------------------------------------- > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/