Crash with ntea on USB memory sticks
Larry Hall (Cygwin)
reply-to-list-only-lh@cygwin.com
Mon Aug 24 14:55:00 GMT 2009
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
<http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>? 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:
<http://cygwin.com/1.7/cygwin-ug-net/using-cygwinenv.html>
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
More information about the Cygwin
mailing list