git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem with git-daemon and mmap.
@ 2007-04-25  6:51 Tim Ansell
  2007-04-25  7:42 ` Gerrit Pape
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tim Ansell @ 2007-04-25  6:51 UTC (permalink / raw)
  To: git

Hello,

I am trying to use git-daemon on a Debian stable machine. We converted
our repositories from darcs to git using tailor (which seemed to work
well). Most of the repositories work fine, however our web repository
which is quite large (about ~126Mb) is causing problems when trying to
clone via git-daemon.

The repository is public, you can find our gitweb here
 http://git.thousandparsec.net/gitweb/gitweb.cgi?p=web.git;a=summary

You can clone using the following URLs,
 http://git.thousandparsec.net/git/web.git
 git://git.thousandparsec.net/git/web.git
 git+ssh://<username>@git.thousandparsec.net/git/web.git

I can clone the repository fine locally (using both cg-clone and
git-clone) and with both git+ssh:// and http://

When trying to clone via git-daemon the git-daemon process dies with an
the following error (in the git-daemon logs - timestamps trimmed to make
the log more readable),

[30957] Connection from 203.122.246.117:20108
[30957] Extended attributes (29 bytes) exist
<host=git.thousandparsec.net>
[30957] Request upload-pack for '/git/web.git'
fatal: Out of memory? mmap failed: Bad file descriptor
error: git-upload-pack: git-rev-list died with error.
fatal: git-upload-pack: aborting due to possible repository corruption
on the remote side.
[30957] Disconnected (with error)

On the client side you see,
<snip>
remote: Generating pack...
remote: aborting due to possible repository corruption on the remote
side.
fatal: early EOF
fatal: index-pack died with error code 128
<snip>

After chatting with people on #git (on freenode) I was able to produce a
strace for this, you can find a copy of this strace log here,
http://www.thousandparsec.net/~tim/strace.log

The machine as only 512mb of Ram. It isn't running much else apart from
a few websites served via apache. Here is some more (hopefully useful)
information about the machine,
verbal:~# cat /proc/meminfo 
MemTotal:       500536 kB
MemFree:         20556 kB
<snip>
SwapTotal:     1542232 kB
SwapFree:      1542200 kB

verbal:~# dpkg --list | grep git
ii  cogito                           0.18.2-1
version control system
ii  git-core                         1.5.1.1-1
fast, scalable, distributed revision control
ii  git-daemon-run                   1.5.1.1-1
fast, scalable, distributed revision control
ii  gitweb                           1.5.1.1-1
fast, scalable, distributed revision control

verbal:~# git --version
git version 1.5.1.1

Hopefully this gives you enough information to track down this bug. I'm
happy to provide more information if needed. I'll also be on #git, but
I'm in Australia so you might have a hard time catching me.

 
Thank you for your time.

Tim Ansell
--
http://blog.mithis.net/ - Mithro Rants about Stuff

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-04-25 16:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-25  6:51 Problem with git-daemon and mmap Tim Ansell
2007-04-25  7:42 ` Gerrit Pape
2007-04-25  8:01   ` Tim Ansell
2007-04-25  8:11     ` Gerrit Pape
2007-04-25  7:43 ` Shawn O. Pearce
2007-04-25 16:13   ` Linus Torvalds
2007-04-25  8:17 ` Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).