This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

coreutils 6.12-2 on 1.7: du /proc/registry/KEY fails


du.exe from coreutils 6.12-2 does not work with /proc/registry/KEY:

$ du /proc/registry/HKEY_LOCAL_MACHINE
du: cannot access `/proc/registry/HKEY_LOCAL_MACHINE/HARDWARE': No such file or directory
du: cannot access `/proc/registry/HKEY_LOCAL_MACHINE/SAM': No such file or directory
du: cannot access `/proc/registry/HKEY_LOCAL_MACHINE/SECURITY': No such file or directory
du: cannot access `/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE': No such file or directory
du: cannot access `/proc/registry/HKEY_LOCAL_MACHINE/SYSTEM': No such file or directory
0 /proc/registry/HKEY_LOCAL_MACHINE


This results in a .stackdump.

According to strace output, the problem probably occurs due to a failing dup() call:

fhandler_virtual::opendir: 0x6BB5F8 = opendir (/proc/registry/HKEY_LOCAL_MACHINE)
dtable::dup2: dup2 (3, 4)
...
fhandler_base::dup: dup(/proc/registry/HKEY_LOCAL_MACHINE) failed, handle 80000002, Win32 error 6
...
dtable::dup_worker: oldfh->dup failed



No problem if a subkey is used as argument:


$ du -b /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM
56      /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Control/AGP
...

The problem can also be reproduced with cygwin 1.7.0-31, so this is unrelated to my recent registry patches.

find and ls work as expected on /proc/registry/KEY.
du.exe from Cygwin 1.5 (coreutils 6.10-2), also works as expected on 1.7.


Christian



-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]