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

Re: [BUG] Halt during fetch on MacOS

From
Jeff King <peff@peff.net>
Date
Mar 6, 2014, 21:16 UTC
Message-ID
<20140306211645.GA11926@sigill.intra.peff.net>
In-Reply-To
<xmqqk3c7yyku.fsf@gitster.dls.corp.google.com>
On Thu, Mar 06, 2014 at 10:24:49AM -0800, Junio C Hamano wrote:
Show 17 quoted lines
> > OK, I've tried using my own build from master, and I still get the same results.
> >
> > I've done a little more investigation and discovered it always hangs at:
> > `atexit(notify_parent);` in `run-command.c:start_command`
> > when running:
> > trace: run_command: 'git-remote-https' 'aosp'
> > 'https://android.googlesource.com/platform/external/tinyxml2'
> >
> > Could this have to do with the atexit implementation?  (eg. limit on
> > the number of functions that can be registered, etc)
> 
> Thanks.
> 
> An interesting theory indeed.  I read that an implementation is
> supposed to take at least ATEXIT_MAX (32) calls to atexit(3); while
> I do think we register functions with atexit(3) from multiple places
> in our code, I doubt we would be making that many.

It seems awfully weird that it would _hang_ in such a case, though. That sounds more like hitting a mutex that's internal to atexit(), or something similar.

Conley, can you see if dropping that atexit clears up the problem (you should be OK without it; git will just fail to notice the child's exec failure with as much detail).

-Peff
Previous: Junio C HamanoNext: Conley Owens
Message 10 of 11 in “[BUG] Halt during fetch on MacOS”
  1. Conley OwensFeb 28, 2014
  2. Jeff KingMar 1, 2014
  3. Kyle J. McKayMar 2, 2014
  4. Jacopo NotarstefanoMar 4, 2014
  5. Conley OwensMar 4, 2014
  6. Max HornMar 2, 2014
  7. Conley OwensMar 3, 2014
  8. Conley OwensMar 5, 2014
  9. Junio C HamanoMar 6, 2014
  10. Jeff KingMar 6, 2014
  11. Conley OwensMar 6, 2014

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.