X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_55,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Message-ID: <4A5DCFA7.9020106@byu.net> Date: Wed, 15 Jul 2009 06:46:31 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [1.7] bug in chdir References: <20090715084635 DOT GQ27613 AT calimero DOT vinschen DOT de> In-Reply-To: <20090715084635.GQ27613@calimero.vinschen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Corinna Vinschen on 7/15/2009 2:46 AM: >> $ cd //home >> $ # huh? no error reported? > > Sorry Eric, but I can't reproduce this. I tried it on XP and 2K8R2 > with identical result. Weird - it's failing for me on my home network as well, and only passing at work (and then, only for certain names). > If you're able to cd to //home, then there must be some crucial > difference in your environment. You should debug this, at least with > strace, so we can find out under what circumstances this occurs. (time passes...) on my home machine: $ uname -a CYGWIN_NT-5.1 LOUNGE 1.7.0(0.212/5/3) 2009-07-13 10:28 i686 Cygwin ... 80 7228161 [main] bash 2228 chdir: dir '//bin' 366 7228527 [main] bash 2228 normalize_posix_path: src //bin 67 7228594 [main] bash 2228 normalize_posix_path: //bin = normalize_posix_path (//bin) 41 7228635 [main] bash 2228 mount_info::conv_to_win32_path: conv_to_win32_path (//bin) 40 7228675 [main] bash 2228 set_flags: flags: binary (0x2) 37 7228712 [main] bash 2228 mount_info::conv_to_win32_path: src_path //bin, dst \\bin, flags 0x2, rc 0 64 7228776 [main] bash 2228 build_fh_pc: fh 0x6123D60C - --- Process 2228, exception 000006BA at 7C812AFB 2217 7230993 [main] bash 2228 __set_errno: int chdir(const char*):2569 val 2 73 7231066 [main] bash 2228 chdir: -1 = chdir (//bin) on my work machine: $ uname -a CYGWIN_NT-5.1 EBLAKE 1.7.0(0.212/5/3) 2009-07-13 10:28 i686 Cygwin 56 6950464 [main] bash 25480 chdir: dir '//bin' 28 6950492 [main] bash 25480 normalize_posix_path: src //bin 28 6950520 [main] bash 25480 normalize_posix_path: //bin = normalize_posix_path (//bin) 28 6950548 [main] bash 25480 mount_info::conv_to_win32_path: conv_to_win32_path (//bin) 29 6950577 [main] bash 25480 set_flags: flags: binary (0x2) 27 6950604 [main] bash 25480 mount_info::conv_to_win32_path: src_path //bin, dst \\bin, flags 0x2, rc 0 36 6950640 [main] bash 25480 build_fh_pc: fh 0x6123D6E4 - --- Process 25480, exception 000006BA at 7C812AFB 1859 6952499 [main] bash 25480 __set_errno: int chdir(const char*):2569 val 2 39 6952538 [main] bash 25480 chdir: -1 = chdir (//bin) ... 52 796747 [main] bash 12648 chdir: dir '//home' 28 796775 [main] bash 12648 normalize_posix_path: src //home 29 796804 [main] bash 12648 normalize_posix_path: //home = normalize_posix_path (//home) 27 796831 [main] bash 12648 mount_info::conv_to_win32_path: conv_to_win32_path (//home) 29 796860 [main] bash 12648 set_flags: flags: binary (0x2) 28 796888 [main] bash 12648 mount_info::conv_to_win32_path: src_path //home, dst \\home, flags 0x2, rc 0 33 796921 [main] bash 12648 build_fh_pc: fh 0x6123D6E4 69161 866082 [main] bash 12648 mount_info::conv_to_posix_path: conv_to_posix_path (\\home, no-keep-rel, no-add-slash) 45 866127 [main] bash 12648 normalize_win32_path: \\home = normalize_win32_path (\\home) 30 866157 [main] bash 12648 mount_info::conv_to_posix_path: //home = conv_to_posix_path (\\home) 28 866185 [main] bash 12648 chdir: 0 = chdir() cygheap->cwd.posix '//home' native '\??\UN\\home' ... $ ls -dF //eblake //home //bin ls: cannot access //bin: No such file or directory //eblake/ //home/ I guess that means, since //bin failed but //home succeeded, that there is a machine on the domain at my work which is named home but which is offline at the moment? - -- Don't work too hard, make some time for fun as well! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpdz6cACgkQ84KuGfSFAYCMpgCfZUkZykAO2SKoOx0diqy8xuWE K+wAoKrIFLnBFjtYsj6N5hHjV0oO6nUP =cHOG -----END PGP SIGNATURE----- -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple