X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Message-ID: <4A92A99A.5080307@cygwin.com> Date: Mon, 24 Aug 2009 10:54:18 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: "R. Diez" , Cygwin List Subject: Re: Crash with ntea on USB memory sticks References: <288621 DOT 27395 DOT qm AT web25406 DOT mail DOT ukl DOT yahoo DOT com> In-Reply-To: <288621.27395.qm@web25406.mail.ukl.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 08/24/2009 09:51 AM, R. Diez wrote: > Hi all: > > I've seen a simple "ls -la" command crashing on a couple of computers, and I've managed to track it down to the combination of USB memory sticks (formatted with FAT) and CYGWIN option ntea. This is a small demo script: > > #!/bin/bash > set -xv # Trace on. > > # This is my CYGWIN, (default value + tty) > export CYGWIN="winsymlinks nontea nontsec tty" > /bin/ls -la /cygdrive/j > > # Change nontea -> ntea > export CYGWIN="winsymlinks ntea nontsec tty" > # This crashes now. > /bin/ls -la /cygdrive/j > > The output of this script is as follows: > > $ ./test2.sh > > export CYGWIN="winsymlinks nontea nontsec tty" > + export 'CYGWIN=winsymlinks nontea nontsec tty' > + CYGWIN='winsymlinks nontea nontsec tty' > /bin/ls -la /cygdrive/j > + /bin/ls -la /cygdrive/j > /bin/ls: cannot access /cygdrive/j/EA DATA. SF: No such file or directory > total 0 > drwxr-xr-x 4 rdiez mkgroup-l-d 0 Jan 1 1970 . > dr-xr-xr-x 1 0 root 0 Jan 1 1970 .. > ?????????? ? ? ? ? ? EA DATA. SF > drwxr-xr-x 9 rdiez mkgroup-l-d 0 Sep 22 2008 SomeDir1 > drwxr-xr-x 2 rdiez mkgroup-l-d 0 Oct 20 2005 SomeDir2 > > > # Change nontea -> ntea > export CYGWIN="winsymlinks ntea nontsec tty" > + export 'CYGWIN=winsymlinks ntea nontsec tty' > + CYGWIN='winsymlinks ntea nontsec tty' > # This crashes now. > /bin/ls -la /cygdrive/j > + /bin/ls -la /cygdrive/j > /bin/ls: cannot access /cygdrive/j/EA DATA. SF: No such file or directory > /bin/ls: cannot access /cygdrive/j/.: Bad address > /bin/ls: reading directory n: Bad file descriptor > /bin/ls: closing directory n: Bad file descriptor > 6 [sig] ls 1976 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack) > ./test2.sh: line 10: 1976 Segmentation fault (core dumped) /bin/ls -la /cygdrive/j > > File EA DATA. SF is there, I guess it has been created at some point in time by cygwin. I cannot open or delete it though. Actually, I would like to get rid of it, and I haven't find out yet how to do it! > > I'm not on this list, so please copy me on any replies. Did you read about "ntea" at ? This is the "large files" it's referring to. You can't delete it and, if you could, you'd be undoing what "ntea" does for you. You can't have it both ways. "ntea" is severely limited and troublesome to use. For these reasons, it has been removed in Cygwin 1.7: It's best if you don't get too comfortable using it. ;-) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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