{"thread":{"id":"12375","subject":"git-daemon hangs in futex()","startedAt":"2008-02-28T22:41:41Z","lastAt":"2008-02-29T14:26:12Z","messageCount":2,"participants":["Johan Sørensen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"70327","messageId":"9e0f31700802281441i33120d70s43ca9f4eced6b5c3@mail.gmail.com","threadId":"12375","inReplyTo":null,"subject":"git-daemon hangs in futex()","fromName":"Johan Sørensen","fromEmail":"johan@johansorensen.com","sentAt":"2008-02-28T22:41:41Z","receivedAt":"2008-02-28T22:41:41Z","isPatch":false,"sender":{"key":"johan@johansorensen.com","avatar":"https://gravatar.com/avatar/dad7869db9d9711098ad213108d1b09967181bb51b667d5a5088c7634ce46616?d=mp&s=160"},"body":"Hi,\n\nI'm having an issue with my git-daemon (1.5.4.3 on ubuntu gutsy), it\nworks fine for a few minutes, then it hangs (eg, \"git clone git://\"\nnever comes past \"initialized empty git repo\" adnd just sits and\nwaits) and strace on the git-daemon says:\n$ strace -Ff -p 27453\nProcess 27453 attached - interrupt to quit\nfutex(0x2b270fb50980, FUTEX_WAIT, 2, NULL) = -1 EINTR (Interrupted system call)\n\n.. and nothing more. But, if I attach to the git-daemon process with\nstrace before that happens, git-daemon keeps on working fine, so I can\nchange the outcome by observing it which is always nice, but not too\nhelpful.\nI don't think this is related to Wincents problem some time ago[1],\nbecause I can reproduce this when running dashed/dashless and\nwith/without --detach regardless of my env. Here's my git-daemon args:\n/usr/local/bin/git --exec-path=/usr/local/bin daemon\n--base-path=/home/git/repositories --verbose --export-all\n--pid-file=/home/git/run/git-daemon.pid --detach\n\nI'm not even sure if this is directly related to git or if it's some\nother library causing the futex wait, any hints would be greatly\nappreciated.\n\n[1]: http://kerneltrap.org/mailarchive/git/2008/2/5/732214\n\nThanks\nJS\n"},{"id":"70395","messageId":"9e0f31700802290626o22ffea7bj6a2410a860f75b1b@mail.gmail.com","threadId":"12375","inReplyTo":"9e0f31700802281441i33120d70s43ca9f4eced6b5c3@mail.gmail.com","subject":"Re: git-daemon hangs in futex()","fromName":"Johan Sørensen","fromEmail":"johan@johansorensen.com","sentAt":"2008-02-29T14:26:12Z","receivedAt":"2008-02-29T14:26:12Z","isPatch":false,"sender":{"key":"johan@johansorensen.com","avatar":"https://gravatar.com/avatar/dad7869db9d9711098ad213108d1b09967181bb51b667d5a5088c7634ce46616?d=mp&s=160"},"body":"On Thu, Feb 28, 2008 at 11:41 PM, Johan Sørensen\n<johan@johansorensen.com> wrote:\n> Hi,\n>\n>  I'm having an issue with my git-daemon (1.5.4.3 on ubuntu gutsy), it\n>  works fine for a few minutes, then it hangs (eg, \"git clone git://\"\n>  never comes past \"initialized empty git repo\" adnd just sits and\n>  waits) and strace on the git-daemon says:\n>  $ strace -Ff -p 27453\n>  Process 27453 attached - interrupt to quit\n>  futex(0x2b270fb50980, FUTEX_WAIT, 2, NULL) = -1 EINTR (Interrupted system call)\n>\n>  .. and nothing more. But, if I attach to the git-daemon process with\n>  strace before that happens, git-daemon keeps on working fine, so I can\n>  change the outcome by observing it which is always nice, but not too\n>  helpful.\n\nUpon further investigation, it seems that this could be related to me\nupdating glibc to 2.6.1. Google suggest that it can because libc\nswitched to NPTL. I'm not familiar with the internals of it, so I\ncan't decide if this is a git issue (by indirect usage of glibc\nfunctions) or not?\n\nThanks\nJS\n"}]}