git 8728 fork:child -1 - 在初始之前等待longjmp死亡

时间:2011-10-14 12:28:14

标签: git cygwin

我正在尝试解决以下问题:

$ git pull
      2 [main] git 8728 fork: child -1 - died waiting for longjmp before initial
ization, retry 10, exit code 0xC0000135, errno 11
error: cannot fork() for rev-list: Resource temporarily unavailable
error: could not run rev-list
remote: Counting objects: 43, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 31 (delta 22), reused 0 (delta 0)
1301582 [main] git 8728 fork: child -1 - died waiting for longjmp before initial
ization, retry 10, exit code 0xC0000135, errno 11
error: cannot fork() for unpack-objects: Resource temporarily unavailable
fatal: fetch-pack: unable to fork off unpack-objects

根据一些谷歌搜索,我需要以某种方式从我的cygwin shell运行rebaseall。这是我做的:

从sytem32 / cmd.exe(“运行”菜单并输入“cmd”)执行:

cd \cygwin\bin
dash
PATH=. rebaseall -v

我明白了:

$ ./rebaseall -v
rebaseall: only ash or dash processes are allowed during rebasing
    Exit all Cygwin processes and stop all Cygwin services.
    Execute ash (or dash) from Start/Run... or a cmd or command window.
    Execute '/bin/rebaseall' from ash (or dash).

好的,再次尝试使用:C:\ Windows \ SysWOW64 \ cmd.exe:

Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

C:\Windows\SysWOW64>cd c:\

c:\>cd cygwin

c:\cygwin>cd bin

c:\cygwin\bin>ash
$ ./rebaseall -v
rebaseall: only ash or dash processes are allowed during rebasing
    Exit all Cygwin processes and stop all Cygwin services.
    Execute ash (or dash) from Start/Run... or a cmd or command window.
    Execute '/bin/rebaseall' from ash (or dash).

我怎么想:

  1. 解决我的初始问题
  2. 运行这个“rebaseall”thingy?
  3. 由于

2 个答案:

答案 0 :(得分:2)

我在Windows 7(32位)上有类似的问题。它看起来像

$ git pull
C:\PROGRA~1\Git\bin\sh.exe: *** 1. unable to allocate heap 0x10050000, heap_chunk_size 268435456, pid 4080, Win32 error 0
      0 [main] sh 3964 sync_with_child: child 4080(0x174) died before initialization with status code 0x1
   1064 [main] sh 3964 sync_with_child: *** child state waiting for longjmp
/libexec/git-core/git-sh-setup: fork: Resource temporarily unavailable

不幸的是,在我的情况下,变形没有帮助(我遵循了文章“No more STATUS_ACCESS_VIOLATION on Cygwin under Windows7”中提出的方法)

根据 issue 122 issue 122问题肯定是msys-1.0.dll ......

答案 1 :(得分:0)

不确定git问题,但你的rebaseall命令应该有效。你很可能还有一些Cygwin进程仍在运行。

  • 您的X服务器是否已关闭?从任务栏关闭它(X图标) - 如果你在那里看不到它可能已经崩溃但仍然是一个陈旧的过程。在这种情况下,从任务管理器中删除它(查找XWin.exe)。
  • 此外,如果您运行后台服务,则需要停止这些服务 - 请参阅http://cygwin.com/faq/faq.setup.html#faq.setup.uninstall-service了解如何列出并停止这些服务