delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/24/09:51:46

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" <rdiezmail-cygwin AT yahoo DOT de>
Subject: Crash with ntea on USB memory sticks
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019