Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not fork child process: Resource temporarily unavailable (-1).DLL rebasing may be required; see 'rebaseall / rebase --help'. #4375

Closed
1 task done
ghost opened this issue Apr 4, 2023 · 16 comments

Comments

@ghost
Copy link

ghost commented Apr 4, 2023

  • I was not able to find an open or closed issue matching what I'm seeing
Git version Details - 馃憞

$ git --version --build-options

git version 2.40.0.windows.1
cpu: x86_64
built from commit: 1d90ca2906dd4b7ddaf0669a13c173ec579d794a
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon

Microsoft Windows Details - 馃憞

$ cmd.exe /c ver

I'm using Windows 11.

Microsoft Windows [Version 10.0.22621.1413]

I didn't make any changes to the default settings of Git setup....during installation.

# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
> type "$env:USERPROFILE\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

I chose default options.

Q - Any other interesting things about your environment that might be related
to the issue you're seeing?

Ans - I am not aware of anything & have no clue what is causing this issue in my Laptop.

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other.

Ans - I'm using Git Bash, where I'm getting this error.

Q- What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.

Ans - I didn't run any command to trigger this issue. I got this error in my Git Bash. When I started/opened it for the very 1st time.
Then, I searched about this issue on internet & found these solutions, So, I tried these solutions馃憞

I tried the solutions suggested here

Q - What did you expect to occur after running these commands?

Ans - First of all, I didn't get any chance to run any command in Git Bash because I'am getting this error from the very time I installed it in my laptop.
I tried solve this problem & searched about it on Internet found some solution/ commends to run in the terminal/powershell. So, I tried those methods but they also didn't work.
Here is the link to those solutions which I found on internet-
I tried the solutions suggested here

I expected that Git Bash will start working normally. But it didn't work.

Q - What actually happened instead?

Ans - Nothing Happened.

Q - If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?

Ans - This problem is not occurring with a specific repository whereas It is a problem that is not allowing me write a single command in my Git Bash for the very 1st time since I installed it in my Laptop.

@ghost
Copy link
Author

ghost commented Apr 4, 2023

I tried all the solutions for this issue... which I found on Internet.... But none of them could solve this issue on my computer.

@ghost
Copy link
Author

ghost commented Apr 4, 2023

@PhilipOakley
Copy link

Maybe fill in a few details here would be a start? At the moment it is just a part time personal problem, rather than a full time professional activity.. [1]

  • I was not able to find an open or closed issue matching what I'm seeing

        Create an issue with the title I was not able to find an open or closed issue matching what I'm seeing. Press Enter to convert to an issue instantly. Press Alt-Enter to open the create new issue form in the current tab. Press Shift-Enter to open the create new issue form.
    

Setup

* Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

** insert your machine's response here **
* Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

** insert your machine's response here **
* What options did you set as part of the installation? Or did you choose the
  defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
> type "$env:USERPROFILE\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

** insert your machine's response here **
* Any other interesting things about your environment that might be related
  to the issue you're seeing?

** insert your response here **

Details

* Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

** insert your response here **

* What commands did you run to trigger this issue? If you can provide a
  [Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve)
  this will help us understand the issue.
** insert your commands here **
* What did you expect to occur after running these commands?

** insert here **

* What actually happened instead?

** insert here **

* If the problem was occurring with a specific repository, can you provide the
  URL to that repository to help us with testing?

** insert URL here **

[1] the original quote is from a redundancy / job hunt / career management course, but applies equally well here.

@rimrul
Copy link
Member

rimrul commented Apr 4, 2023

Tried these solutions.... None of them working...

I tried the solutions suggested here

All of those solutions revolve around ASLR, but that error message could be caused by various other things. It could be a cygheap mismatch, but that should be unlikely with v2.40.0. Have you tried rebasing like the message suggests?

Did you check wether some other software is interfering with Git for Windows? See this list of known troublemakers.

@proxy-m
Copy link

proxy-m commented Apr 15, 2023

Still the similar error, for me too.

@MaxKUlish1
Copy link

for me too!(

@dscho
Copy link
Member

dscho commented Apr 19, 2023

Y'all, there is way too little information provided in this report to do anything about it, so maybe instead of "me, too"ing, somebody could actually fill in the details, as asked for?

@proxy-m
Copy link

proxy-m commented Apr 23, 2023

@dscho At other configurations the problem reproduced too (64bit, 32bit; 7, 10 and maybe on future 55 and 666). Example:

      1 [main] bash 442 dofork: child -1 - forked process 5116 died unexpectedly, retry 0, exit code 0xC0000005, errno 11
                                         bash: fork: retry: Resource temporarily unavailable
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.40.0.windows.1
cpu: i686
built from commit: 1d90ca2906dd4b7ddaf0669a13c173ec579d794a
sizeof-long: 4
sizeof-size_t: 4
shell-path: /bin/sh
feature: fsmonitor--daemon

  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?

Windows 7, same under 8. 32-bit.

$ cmd.exe /c ver
Microsoft Windows [Version 6.1.7601]

  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
> type "$env:USERPROFILE\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt (same error for other configs)
Editor Option: VIM
Custom Editor Path:
Default Branch Option: master
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Disabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Enabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled


  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

Win 32 only

PS C:\Users\User> $PSVersionTable
[All updates installed. PS Just for info about system, I do not run from it.]
Name Value


PSVersion 5.1.14409.1005
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1005

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Bash

Just start (or fork) Git Bash several times. You can answer me about windows memory protection, but I tried to disable it, wrong answer.

  • What did you expect to occur after running these commands?

Stable work!

  • What actually happened instead?

Periodically random error about forks, died unexpectedly, 0xC0000005, errno 11, retry: Resource temporarily unavailable ... (Cygwin.dll error on previous git bash versions with suggestion restart system every time.)

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

No, it is not about repositories. It's about broken build.

@dscho
Copy link
Member

dscho commented Apr 24, 2023

@proxy-m please try to produce an actual MCVE.

@proxy-m
Copy link

proxy-m commented Apr 24, 2023

@proxy-m please try to produce an actual MCVE.

So, you still can not reproduce it... but continue closing issues about the problem. Strange.

I get the error more often when try to start some script with many forks from Git Bash.
But usually I get the error more than 1 times per 10-30 regular Git Bash startups or e.g. Gitk from it.

@PhilipOakley
Copy link

@proxy-m please try to produce an actual MCVE.

So, you still can not reproduce it... but continue closing issues about the problem. Strange.

I get the error more often when try to start some script with many forks from Git Bash. But usually I get the error more than 1 times per 10-30 regular Git Bash startups or e.g. Gitk from it.

Without a method of reproducing the problem, with some certainty, then it's not a problem that can be addressed by others who aren't seeing the same issues, hence the request for an MVCE.

You indicate that "error more often when try start some script with many forks from Git Bash", so that is a good starter for you to create a test script that forces that situation.

Then checking if it works on any other machines you can access. Once you have that MVCE, and some clarity on how to set up the machine (e.g. ancillary apps that need to be present), then others could have a look.

I appreciate it is frustrating, but it's still a "fails elsewhere" problem without that MVCE.

@proxy-m
Copy link

proxy-m commented Apr 25, 2023

@MaxKUlish1

for me too!(

How many RAM do you have?

Is your system distro language (i18n) English?

@iloveeclipse
Copy link

Same here, Windows 11, also with latest git installed from https://git-scm.com/download/win. Previously worked installation did work till today. Not sure if that was Windows update or git package update that caused the error - I do update both frequently.

@iloveeclipse
Copy link

OK, after playing with few older git releases (none worked, same error) I came to the conclusion that this is a Windows issue.

It turned out, changing global setting forForce relocation of images not compiled with /DYNAMICBASE to "off" and restart fixed the problem.
Interestingly, I never touched this option but it was set to on and it is NOT default according to the Windows itself?

I have German Windows (I assume the English option name would be Force relocation of images not compiled with /DYNAMICBASE), so here is the screenshot how it should look like:
image

@dscho
Copy link
Member

dscho commented May 10, 2023

Right, Cygwin (and as a consequence, MSYS2's runtime as well as Git for Windows' Bash) are incompatible with ASLR right now.

As the original reporter ghosted us, I'll close this here ticket.

@dscho dscho closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2023
@proxy-m
Copy link

proxy-m commented May 11, 2023

Interesting... non-English Windows version again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants