This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ls.exe hangs on inaccessible directory if ntsec is turned off
On Mar 3 21:28, Corinna Vinschen wrote:
> At one point in opendir() a file handler is added to the descriptor
> table. This happened at a point at which it was already clear that
> opendir would succeed. Due to my changes from end of January this
> wasn't true anymore. The entry in the descriptor table was filled
> and *then* opendir tries to open the directory with NtOpenFile.
> This in turn leads to opendir deleting the file handler structure.
...if NtOpenFile fails.
> No problem... until the process exits and Cygwin tries to delete
> the file handler entry again in the cleanup code. Or, with a lot
> less words: Cygwin called free twice on the same address.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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/