X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <4943CB49.2080509@t-online.de> Date: Sat, 13 Dec 2008 15:48:41 +0100 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 SeaMonkey/1.1.11 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: coreutils 6.12-2 on 1.7: du /proc/registry/KEY fails Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/