git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Issue: repack semi-frequently fails on Windows (msysgit) - suspecting file descriptor issues

From
AMAndreas Mohr <andi@lisas.de>
Date
Apr 16, 2015, 11:48 UTC
Message-ID
<20150416114846.GC30818@rhlx01.hs-esslingen.de>
In-Reply-To
<20150416114235.GB30818@rhlx01.hs-esslingen.de>
On Thu, Apr 16, 2015 at 01:42:35PM +0200, Andreas Mohr wrote:
Show 31 quoted lines
> Hi,
> 
> On Thu, Apr 16, 2015 at 01:31:02PM +0200, Johannes Schindelin wrote:
> > Hi,
> > 
> > On 2015-04-16 13:10, Thomas Braun wrote:
> > > I've never had this issue. The error message from unlinking the file
> > > means that someone is still accessing the file and thus it can not be
> > > deleted (due to the implicit file locking on windows).
> > 
> > Best guess is that an antivirus is still accessing it. There is a tool called `WhoUses.exe` in msysGit (I do not remember if I included it into Git for Windows 1.x for end users) which could be used to figure out which process accesses a given file still: https://github.com/msysgit/msysgit/blob/master/mingw/bin/WhoUses.exe (maybe that would help you identify the cause of the problem).
> 
> Oh my. Botched mail conversation...
> I tried to f'up on this messy start ASAP, so I even managed to omit this final *pre-existing* part:
> "
> Please note that this system is hampered by a crappy virus scanner
> dependency (F-Secure),
> which could be the culprit for this issue (e.g. by keeping files busy
> for longer than expected),
> however I really don't think that it takes part in this issue.
> "
> 
> The reason that I suspect that it's not virus scanner related is:
> - standalone git gc --auto works immediately
>   (hmm but this might also point at the opposite - namely virus scanner
>   still accessing files of a prior operation only in case there *was*
>   a prior operation)
> - file descriptor scope handling issue in git source code is very easily imaginable
> - only a very rebase-heavy workflow of a sufficiently large repo
>   is likely to have this issue turn up in a frequently enough manner,
>   thus it's quite likely that it's not observed (or reported) all too often
OK, at this point in time it's my turn to actually verify
that indeed it's NOT the virus scanner:
- generate rebase-heavy activity
- update
- hit issue
- unload virus (~ scanner?? I'm unsure on exact terminology to be used ;-)
- update
- profit!?
(and possibly have a try at WhoUses.exe there, too - thanks for the hint!)
Andreas Mohr
Previous: Andreas MohrNext: Andreas Mohr
Message 5 of 13 in “Issue: repack semi-frequently fails on Windows (msysgit) - suspecting file descriptor issues”
  1. Andreas MohrApr 16, 2015
  2. Thomas BraunApr 16, 2015
  3. Johannes SchindelinApr 16, 2015
  4. Andreas MohrApr 16, 2015
  5. Andreas MohrApr 16, 2015
  6. Andreas MohrApr 16, 2015
  7. Johannes SchindelinApr 16, 2015
  8. Andreas MohrApr 16, 2015
  9. Jeff KingApr 16, 2015
  10. Johannes SchindelinApr 16, 2015
  11. David MillerApr 16, 2015
  12. Andreas MohrApr 16, 2015
  13. rupert thurnerApr 23, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.