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 Message-Id: <200311211942.hALJgY607658@nwsgpa.ih.lucent.com> From: "D. N. Knisely" To: Subject: Can't Read /cygdrive/c in snapshots from 1108 on (unknown windows error 122) Date: Fri, 21 Nov 2003 13:42:27 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Please excuse me if this has been reported previously, but I can't seem to find it mentioned in the archives. Starting with the 20031108 snapshot on (for each snapshot after that), I cannot read the "c:/" or "/cygdrive/c" drive. If I restore to any version of cygwin1.dll earlier that that, I get the normal expected behavior. An strace is excerpted below. It seems to go astray at "unknown windows error 122": "326 58973 [main] ls 3428 seterrno_from_win_error: /netrel/src/cygwin-snapsho t-20031119-1/winsup/cygwin/security.cc:1101 windows error 122" The same results come from any program that tried to enumerate the /cygdrive/c directory (e.g., perl, bash filename expansion, etc.). This problem definitely started only with the recent snapshots (which I need to run because of the select() 100% CPU problem that is fixed in these snapshots). D. Knisely ---------------------- strace excerpt: $ strace ls /cygdrive/c >trace.out ls: /cygdrive/c: Permission denied trace output: [.] 298 57280 [main] ls 3428 symlink_info::check: not a symlink 58 57338 [main] ls 3428 symlink_info::check: 0 = symlink.check (c:\, 0x22F5 30) (0x2000020) 60 57398 [main] ls 3428 path_conv::check: root_dir(c:\), this->path(c:\), s et_has_acls(8) 64 57462 [main] ls 3428 build_fh_pc: fh 0x61681384 56 57518 [main] ls 3428 stat_worker: (/cygdrive/c, 0x100223E8, 1, 0x6168138 4), file_attributes 54 66 57584 [main] ls 3428 fhandler_base::open: (c:\, 0x110000) query_open 1 119 57703 [main] ls 3428 fhandler_base::open: 0x70C = CreateFile (c:\, 0x0, 0x7, 0x22FC80, 0x3, 0x2000081, 0) 61 57764 [main] ls 3428 fhandler_base::set_flags: flags 0x110000, supplied_ bin 0x20000 57 57821 [main] ls 3428 fhandler_base::set_flags: O_TEXT/O_BINARY set in fl ags 0x10000 56 57877 [main] ls 3428 fhandler_base::set_flags: filemode set to binary 56 57933 [main] ls 3428 fhandler_base::open: 1 = fhandler_base::open (c:\, 0x110000) 57 57990 [main] ls 3428 fhandler_base::open_fs: 1 = fhandler_disk_file::ope n (c:\, 0x110000) 81 58071 [main] ls 3428 fhandler_base::fstat_by_handle: 1 = GetFileInformat ionByHandle (c:\, 1804) 514 58585 [main] ls 3428 get_file_attribute: file: c:\ 62 58647 [main] ls 3428 read_sd: file = c:\ 326 58973 [main] ls 3428 seterrno_from_win_error: /netrel/src/cygwin-snapsho t-20031119-1/winsup/cygwin/security.cc:1101 windows error 122 66 59039 [main] ls 3428 geterrno_from_win_error: unknown windows error 122, setting errno to 13 59 59098 [main] ls 3428 get_nt_attribute: read_sd Win32 error 122 57 59155 [main] ls 3428 fhandler_base::fstat_helper: 0 = fstat (, 0x100223E 8) st_atime=3FBE682B st_size=0, st_mode=0x4000, st_ino=5, sizeof=96 62 59217 [main] ls 3428 fhandler_base::close: closing '/cygdrive/c' handle 0x70C 78 59295 [main] ls 3428 stat_worker: 0 = (/cygdrive/c, 0x100223E8) 518 59813 [main] ls 3428 normalize_posix_path: src /cygdrive/c 59 59872 [main] ls 3428 normalize_posix_path: /cygdrive/c = normalize_posix _path (/cygdrive/c) 58 59930 [main] ls 3428 mount_info::conv_to_win32_path: conv_to_win32_path (/cygdrive/c) 61 59991 [main] ls 3428 mount_info::cygdrive_win32_path: src '/cygdrive/c', dst 'c:\' 57 60048 [main] ls 3428 set_flags: flags: text (0x2000000) 159 60207 [main] ls 3428 mount_info::conv_to_win32_path: src_path /cygdrive/ c, dst c:\, flags 0x2000020, rc 0 266 60473 [main] ls 3428 symlink_info::check: not a symlink 58 60531 [main] ls 3428 symlink_info::check: 0 = symlink.check (c:\, 0x22F6 20) (0x2000020) 61 60592 [main] ls 3428 path_conv::check: root_dir(c:\), this->path(c:\), s et_has_acls(8) 65 60657 [main] ls 3428 build_fh_pc: fh 0x61681384 329 60986 [main] ls 3428 read_sd: file = c:\ 141 61127 [main] ls 3428 seterrno_from_win_error: /netrel/src/cygwin-snapsho t-20031119-1/winsup/cygwin/security.cc:1101 windows error 122 63 61190 [main] ls 3428 geterrno_from_win_error: unknown windows error 122, setting errno to 13 58 61248 [main] ls 3428 check_file_access: flags 4, ret -1 225 61473 [main] ls 3428 writev: writev (2, 0x22DD40, 1) 60 61533 [main] ls 3428 fhandler_console::write: 22DDD0, 4 56 61589 [main] ls 3428 fhandler_console::write: at 108(l) state is 0 733 62322 [main] ls 3428 fhandler_console::write: 4 = write_console (,..4) 67 62389 [main] ls 3428 writev: 4 = write (2, 0x22DD40, 1), errno 13 68 62457 [main] ls 3428 writev: writev (2, 0x22DD60, 1) 57 62514 [main] ls 3428 fhandler_console::write: 22DDF0, 11 55 62569 [main] ls 3428 fhandler_console::write: at 47(/) state is 0 142 62711 [main] ls 3428 fhandler_console::write: 11 = write_console (,..11) 60 62771 [main] ls 3428 writev: 11 = write (2, 0x22DD60, 1), errno 13 69 62840 [main] ls 3428 writev: writev (2, 0x22DD40, 1) 57 62897 [main] ls 3428 fhandler_console::write: 22DDD0, 19 72 62969 [main] ls 3428 fhandler_console::write: at 58(:) state is 0 130 63099 [main] ls 3428 fhandler_console::write: 19 = write_console (,..19) 59 63158 [main] ls 3428 writev: 19 = write (2, 0x22DD40, 1), errno 13 61 63219 [main] ls 3428 writev: writev (2, 0x22F930, 1) 58 63277 [main] ls 3428 fhandler_console::write: 610E639F, 1 55 63332 [main] ls 3428 fhandler_console::write: at 10(0x20) state is 0 154 63486 [main] ls 3428 fhandler_console::write: 1 = write_console (,..1) 58 63544 [main] ls 3428 writev: 1 = write (2, 0x22F930, 1), errno 13 182 63726 [main] ls 3428 do_exit: do_exit (1) -- 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/