X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <288621.27395.qm@web25406.mail.ukl.yahoo.com> Date: Mon, 24 Aug 2009 13:51:29 +0000 (GMT) From: "R. Diez" Subject: Crash with ntea on USB memory sticks To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 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 (form= atted 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=3D"winsymlinks nontea nontsec tty" /bin/ls -la /cygdrive/j # Change nontea -> ntea export CYGWIN=3D"winsymlinks ntea nontsec tty" # This crashes now. /bin/ls -la /cygdrive/j The output of this script is as follows: $ ./test2.sh export CYGWIN=3D"winsymlinks nontea nontsec tty" + export 'CYGWIN=3Dwinsymlinks nontea nontsec tty' + CYGWIN=3D'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=3D"winsymlinks ntea nontsec tty" + export 'CYGWIN=3Dwinsymlinks ntea nontsec tty' + CYGWIN=3D'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 sta= te (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 tim= e by cygwin. I cannot open or delete it though. Actually, I would like to g= et 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. Thanks, Ruben -- 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