Commit generates GC repack failure
Quoted 22 lines · Duy Nguyen
To: Randall S. Becker <[email protected]>
Cc: Git Mailing List <[email protected]>
Subject: Re: [Possible Bug] Commit generates GC repack failureQuoted 16 lines · Duy Nguyen
Quoted 13 lines · Randall S. Becker
Hi All,
I'm trying to track down what happened this morning. We had a commit that caused a background gc to occur. What happened was:
$ git commit -m "history commit ... " Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. warning: The last gc run reported the following. Please correct the root cause and remove .git/gc.log. Automatic cleanup will not be performed until the file is removed.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
fatal: open
/dev/nullfailed: Invalid function argument
sanitize_stdfds()insetup.ccan attempt to open/dev/nullthen redirect stdout and stderr to it. I think this is part of the daemonization that is done in background gc.However the message does not match. I think you will find this "open
/dev/nullfailed" line inrun-command.c
Mystery solved. The problem seems to occur with garbage collection on older versions of the operating system than the one we built 2.20.1 on. We sent out the advice to revert to 2.16.2, which was built on a prior revision that did not introduce incompatibilities. This was a specific situation with header files on a new version of the OS that introduced incompatibilities. The impact was not limited to the line in run-command.c, but was way more extensive.
Thanks for the help,
Randall