1.7.8-1 ls -l /proc/sys/Device causes system reset

Eric Blake eblake@redhat.com
Wed Mar 2 00:08:00 GMT 2011


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

That's because ls --color=auto 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=auto -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.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20110302/533d4ff3/attachment.sig>


More information about the Cygwin mailing list