delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/01/19:09:03

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4D6D8A8D.3060509@redhat.com>
Date: Tue, 01 Mar 2011 17:08:45 -0700
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.8-1 ls -l /proc/sys/Device causes system reset
References: <242664 DOT 64054 DOT qm AT web161702 DOT mail DOT bf1 DOT yahoo DOT com>
In-Reply-To: <242664.64054.qm@web161702.mail.bf1.yahoo.com>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
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

--------------enig4ABF50F73996B077E58F774A
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 03/01/2011 04:57 PM, Tim Coalson wrote:
> The problem:
>=20
> $ /bin/ls -l /proc/sys/Device
>=20
> hit enter, and my system instantly reboots, without shutdown.  Without th=
e -l=20
> option, works fine.  Unfortunately, ls with colors enabled also causes th=
is=20
> behavior, even without -l, as in:
>=20
> $ /bin/ls --color=3Dauto /proc/sys/Device

That's because ls --color=3Dauto enables stat() to know how to color
names, where omitting it relies on plain readdir() to just list the
name.  So it's obviously the act of stat()ing one of the devices in that
directory that is making windows upset.  Can you narrow it down to which
object, by trying things like 'ls --color=3Dauto -d
/proc/sys/Device/[0-9]*' to limit to stat()ing just file names starting
with a digit, and so forth?  I couldn't reproduce your crash on my WinXP
system.

--=20
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig4ABF50F73996B077E58F774A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJNbYqNAAoJEKeha0olJ0NqKawIAKAaytpDaxcNWI2AJGKJplju
ZdVZGuCFju0ykyZha4LS1V5BBvFhu+V4AERSzQr9C3FRSw3F/PBKrZylwZgqQU7/
QVRgbeUNyohqUzUQRLiXLwVmDoSmLuWD8g8/Soq4LZdIGPYnPqhfU6wDo8x9BybC
W9tn+jFWC6UxGKRM4rpBeXaeCNYr/upHrYVA1equc6gvmpKNPb8mPj+qdcOEHtjb
2Tevz13YsO+EdpTgoZABgkveEODZM6egjWatLWUqoFx8Z3RbQ/QZZmvf5Edkktfi
CYYfDLu5l5FmbFQX1SBmtt2WC5b9QkItnEg35SuP1Yq0QNmJHnEbyFKChaJA5AA=
=JWWo
-----END PGP SIGNATURE-----

--------------enig4ABF50F73996B077E58F774A--

- Raw text -


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