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

file descriptor leak? or expected behavior?

From
BBBecky Bruce <becky.bruce@freescale.com>
Date
Nov 11, 2005, 22:58 UTC
Message-ID
<dd9dee136a573d72fc7332373cfd8ac1@freescale.com>
Folks,

My apologies if this is a known issue/question - I've searched the list and haven't found anything about this, but given the volume of traffic, it's easy to miss things.....

I grabbed 0.99.9g this morning, and tried to clone Paul Mackerras' linux merge tree. The clone failed and reported errors in http-fetch with a bunch of messages of the form:

error: Couldn't create temporary file .git/objects/04/48fa7de8a416a48cd1977f29858be54e67c078.temp for .git /objects/04/48fa7de8a416a48cd1977f29858be54e67c078: Error 24: Too many open files

I did some experimenting, and it looks like this crops up somewhere between git versions 0.99.8f and 0.99.9a. My question is, is git expected to try to open huge numbers of files, or is this a fd leak? I cranked up my ulimit, and am still unable to successfully clone this tree, although it fails differently (tail end of output....):

progress: 22 objects, 56146 bytes Also look at http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/ Getting pack list error: The requested URL returned error: 404 Getting pack list Getting index for pack e0d76ffe354ef5665028a6cb4506ea902f72e1d0 Getting pack e0d76ffe354ef5665028a6cb4506ea902f72e1d0 which contains 5014bfa48ac169e0748e1e9651897788feb306dc progress: 1322 objects, 5736795 bytes cg-fetch: objects fetch failed cg-clone: fetch failed

The command I ran, and the tree I tried to clone are:
 > cg-clone 
http://www.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge.git 
linux-2.6.paul

Cheers, -B

Next: Becky Bruce
Message 1 of 7 in “file descriptor leak? or expected behavior?”
  1. Becky BruceNov 11, 2005
  2. Becky BruceNov 11, 2005
  3. Fix bunch of fd leaks in http-fetchPetr Baudis, Nov 11, 2005
  4. Junio C HamanoNov 12, 2005
  5. Nick HengeveldNov 12, 2005
  6. Petr BaudisNov 12, 2005
  7. Nick HengeveldNov 13, 2005

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.