delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/01/06:31:47

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Tue, 1 Dec 2009 06:31:34 -0500
Message-ID: <2bf229d30912010331l7f041692ld4ed231a8b3edbf4@mail.gmail.com>
Subject: Issues with find in /proc
From: Chris Sutcliffe <ir0nh34d AT gmail DOT com>
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
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'm not sure if this is expected behaviour or not, but I've noticed
the following:

csutclif AT EUSH000065 /proc
$ find .
.
./loadavg
./meminfo
./registry
find: `./registry': Bad file descriptor
./stat
./version
./uptime
./cpuinfo
./partitions
./self
./mounts
./registry32
find: `./registry32': Bad file descriptor
./registry64
find: `./registry64': Bad file descriptor
./net
./5732
./5732/ppid
./5732/winpid
./5732/winexename
./5732/status
./5732/uid
./5732/gid
./5732/pgid
./5732/sid
./5732/ctty
./5732/stat
./5732/statm
./5732/cmdline
./5732/maps
./5732/fd
./5732/fd/3
./5732/exename
./5732/root
./5732/exe
./5732/cwd
./5732/mounts
./4460
./4460/ppid
./4460/winpid
./4460/winexename
./4460/status
./4460/uid
./4460/gid
./4460/pgid
./4460/sid
./4460/ctty
./4460/stat
./4460/statm
./4460/cmdline
./4460/maps
./4460/fd
./4460/fd/0
./4460/fd/1
./4460/fd/2
./4460/fd/255
./4460/exename
./4460/root
./4460/exe
./4460/cwd
./4460/mounts
./4080
./4080/ppid
./4080/winpid
./4080/winexename
./4080/status
./4080/uid
./4080/gid
./4080/pgid
./4080/sid
./4080/ctty
./4080/stat
./4080/statm
./4080/cmdline
./4080/maps
./4080/fd
./4080/fd/0
./4080/fd/1
./4080/fd/2
./4080/fd/3
./4080/fd/4
./4080/fd/5
assertion "ent->fts_info == FTS_NSOK || state.type != 0" failed: file
"/usr/src/findutils-4.5.4-1/src/findutils-4.5.4/find/ftsfind.c", line
475, function: consider_visiting
Aborted (core dumped)

Of particular interest to me is the fact that the registry*
directories respond with "Bad file descriptor" because I was trying to
use find to locate a subkey based on a string pattern.

I assume the core dump at the end shouldn't occur as well?

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org

--
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