This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: du core dump if run on directory being deleted?
(Oh, and running du sometimes causes the delete to emit warnings like
build.deleteme.8300\src\THIRD_~1\webgl\src\sdk\tests\CONFOR~1\ogles\GL
- The directory is not empty.
Evidently du holds the directory open, or something. )
On Mon, May 21, 2018 at 7:58 PM, Dan Kegel <dank@kegel.com> wrote:
> Hi! Given a rather large directory build.deleteme, doing
> rmdir /s /q build.deleteme
> in a CMD window, and then doing
> du build.deleteme
> in a cygwin window, seems to result in a reproducible crash;
> at least, it happened the two times I tried it :-)
>
> Log of the cygwin window:
>
> buildbot@rbb-win10-1 /cygdrive/c/builds/xxxxx
> $ du build.deleteme
> du: cannot access
> 'build.deleteme/src/third_party/pdfium/testing/resources/pixel/bug_543018_1.in':
> No such file or directory
> Aborted (core dumped)
>
> buildbot@rbb-win10-1 /cygdrive/c/builds/xxxxx
> $ du build.deleteme
> 0 build.deleteme/src/third_party/pdfium/testing/resources
> 4 build.deleteme/src/third_party/pdfium/testing
> 8 build.deleteme/src/third_party/pdfium
> 4 build.deleteme/src/third_party/perl/perl/lib/Module
> du: cannot access
> 'build.deleteme/src/third_party/perl/perl/lib/mro.pm': No such file or
> directory
> du: cannot access
> 'build.deleteme/src/third_party/perl/perl/lib/NDBM_File.pm': No such
> file or directory
> 0 build.deleteme/src/third_party/perl/perl/lib/Net/FTP
> du: cannot access
> 'build.deleteme/src/third_party/perl/perl/lib/Net/netent.pm': No such
> file or directory
> du: cannot access
> 'build.deleteme/src/third_party/perl/perl/lib/Net/Netrc.pm': No such
> file or directory
> du: cannot access
> 'build.deleteme/src/third_party/perl/perl/lib/Net/NNTP.pm': No such
> file or directory
> du: cannot access
> 'build.deleteme/src/third_party/perl/perl/lib/Net/Ping.pm': No such
> file or directory
> Aborted (core dumped)
>
> Here are du.exe.stackdump and cygcheck.out.
>
> FWIW, this was a few minutes after rebooting to turn off windows defender.
> - Dan
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple