darcs

Issue 1348 DeleteFile: permission denied (darcs check on windows)

Title DeleteFile: permission denied (darcs check on windows)
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, eivuokko, jaredj, kirby, kowey, mornfall, thorkilnaur, wglozer
Assigned To
Topics Windows

Created on 2009-02-05.20:14:22 by mornfall, last changed 2009-08-27.14:24:58 by admin.

Messages
msg7277 (view) Author: mornfall Date: 2009-02-05.20:14:19
This finally made the Windows buildslave get its act together. It now builds
darcs and runs tests. A bunch fails, with following error:

darcs.exe: DeleteFile: permission denied (The process cannot access the file because it is being used by another process.)

Vast majority of these is in check (and maybe repair), plus at least one in
optimize --compress. I suppose all of these are because it's trying to delete a
file that it didn't close, which fails on windows (I wish I knew why...).

Moreover, there seems to be a bug in ShellHarness, since only a subset of
failed tests is printed near the end. I guess that should be filed separately,
or fixed right away (I haven't looked yet why that could be though).

Yours,
   Petr.
msg7639 (view) Author: kowey Date: 2009-04-09.12:25:45
Salvatore had sent a message to the mailing list suggesting that this may not
even be our bug, but something Windows related.

We're a little bit stuck on this because we can't reproduce this failure
anywhere else but on the build slave.

I've filed a separate bug http://bugs.darcs.net/issue1428 for the shell harness
issue.
msg8192 (view) Author: kowey Date: 2009-08-16.22:37:09
I believe this was fixed in darcs 2.3 by:

Tue Jul 14 14:42:32 BST 2009  Petr Rockai <me@mornfall.net>
  * Use mmapFilePS in gzReadFilePS to avoid lazy bytestring readFile.
  
  It turns out that the lazy readFile does not close the filedescriptor soon
  enough in some cases and causes DeleteFile failures on win32. mmapFilePS uses
  mmap when available and falls back to strict bytestring readFile, neither of
  which causes these issues.
History
Date User Action Args
2009-02-05 20:14:23mornfallcreate
2009-04-09 12:25:49koweysetpriority: bug
nosy: + wglozer, eivuokko, kirby, jaredj, - darcs-users
topic: + Windows
status: unread -> unknown
messages: + msg7639
2009-08-16 22:37:13koweysetstatus: unknown -> resolved
nosy: kowey, wglozer, eivuokko, simon, thorkilnaur, jaredj, dmitry.kurochkin, mornfall, kirby
messages: + msg8192
2009-08-25 17:40:36adminsetnosy: + darcs-devel, - simon
2009-08-27 14:24:58adminsetnosy: kowey, wglozer, darcs-devel, eivuokko, thorkilnaur, jaredj, dmitry.kurochkin, mornfall, kirby