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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not fork child process: Resource temporarily unavailable (-1). #1081

Closed
raihan-uddin opened this issue Nov 23, 2017 · 20 comments
Closed

Comments

@raihan-uddin
Copy link

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

@pedrorijo91
Copy link
Member

Hey @theprogrammingthinker,

As you can see in the issue template (https://github.com/git/git-scm.com/blob/master/.github/ISSUE_TEMPLATE.md), this repository is not the proper way to report issues about git itself. You should follow the steps at https://git-scm.com/community to report your problem.

Also, this issue does not contain enough information to be debugged. Make sure you include what you are trying to achieve, the steps you are following, and the expected output.

@jnavila
Copy link
Contributor

jnavila commented Nov 23, 2017

@pedrorijo91 So much for the additional warning 😛

@pedrorijo91
Copy link
Member

@jnavila true :( I think we need to develop a captcha v3 for this 😅

@raihan-uddin
Copy link
Author

raihan-uddin commented Nov 23, 2017

@jnavila @pedrorijo91 Sorry about that. I got it. It will not happen in next time. anyway, thank you. 😞

@jnavila
Copy link
Contributor

jnavila commented Nov 23, 2017

@theprogrammingthinker No problem. You're facing an issue and looking for help; that's sane.

@gamitech
Copy link

Here is the fix.
1 Go to you Windows Defender Security Center settings
2 Click on App & Browser Control
3 At the bottom click on the "Exploit Protection Settings" link
4 Go to "Program Settings" and click on the "Add program to customize" -> "Choose exact file path"
5 Navigate to "C:\Program Files\Git\usr\bin\sh.exe" and add it
6 Override and turn off the following:
Mandatory ASLR
Randomize memory allocations (Bottom-up ASLR)
7 Click "Apply" and now everything should work fine.

Good luck,
Gabriel

@sxlijin
Copy link
Contributor

sxlijin commented Jan 29, 2018

NO NO NO NO NO NO NO NO NO NO NO NO NO.

Turning off ASLR is not OK. This is a seriously important kernel-level security measure. Do not advise people to turn it off.

@gamitech
Copy link

Please read my comment before going NO NO NO.
I said they need to be disabled for those executables only. They cannot work and are not compatible with these features (high randomization , high entropy ASLR) becasue they "assume" the load address of some DLLs which ASLR pretty much wants you to not assume. Turning it off only for those processes until the problem is fixed will not cause any harm as before the the ASLR was turned off for them by default. I work in this field trust me, those processes were broken before this versio of Windows 10. This one just made a feature default which was not there before by default.
Anyway, ignoring what @sxlijin is saying, if you want them to work just they way they did before, no more no less secure, you simply need to turn those features off. The rest of the OS will work in its default mode for existing processes and files.
You will also notice if you look in the Program Settings that Microsoft themselves disable some if these feature for some of their executable or other incompatible ( crappy ) software.
Cheers, all.

@sxlijin
Copy link
Contributor

sxlijin commented Jan 29, 2018

@gamitech: apologies for the tone of my initial response, but please remember that GitHub is a public forum, and people often come in from search results when trying to find a fix for whatever issue they have. Simply recommending that people turn off ASLR for whatever binary is borking itself is not a good recipe for secure systems.

Now that you've explained why the fix is both acceptable and necessary, I have no issue with your recommendation. Also, if anyone watching this knows what issue in git-for-windows/git should be cross-linked, please link it - I couldn't find it after a cursory search.

@sxlijin
Copy link
Contributor

sxlijin commented Jan 29, 2018

Nvm. Found it - git-for-windows/git#1412.

@gamitech
Copy link

@sxlijin No problem man! ;)

@avenue19
Copy link

avenue19 commented Aug 1, 2018

Tried gamitech's suggestion and it had no effect for me. I uninstalled 2.17 and installed 2.18, and that fixed it.

@acinnes
Copy link

acinnes commented Aug 25, 2018

I was tripped up by this today, in connection with WSL Terminal and Git Bash. Disabling ASLR for relevant binaries does fix it, but the list of binaries is unclear and potentially long. See mintty/wsltty#6 (comment) for instructions on scripting the ASLR disable step for all binaries under a base directory.

@amosbatista
Copy link

Hi. I was with this problem, but I could get throught it disabling my antivirus.

@lopandpe
Copy link

Resolution for me, 3 years before:

mintty/wsltty#6 (comment)

@G00Dway
Copy link

G00Dway commented Oct 22, 2022

Here is the fix. 1 Go to you Windows Defender Security Center settings 2 Click on App & Browser Control 3 At the bottom click on the "Exploit Protection Settings" link 4 Go to "Program Settings" and click on the "Add program to customize" -> "Choose exact file path" 5 Navigate to "C:\Program Files\Git\usr\bin\sh.exe" and add it 6 Override and turn off the following: Mandatory ASLR Randomize memory allocations (Bottom-up ASLR) 7 Click "Apply" and now everything should work fine.

Good luck, Gabriel

didnt work :(

@Fabian-Hillary
Copy link

Here is the fix. 1 Go to you Windows Defender Security Center settings 2 Click on App & Browser Control 3 At the bottom click on the "Exploit Protection Settings" link 4 Go to "Program Settings" and click on the "Add program to customize" -> "Choose exact file path" 5 Navigate to "C:\Program Files\Git\usr\bin\sh.exe" and add it 6 Override and turn off the following: Mandatory ASLR Randomize memory allocations (Bottom-up ASLR) 7 Click "Apply" and now everything should work fine.

Good luck, Gabriel THIS DID NOT WORK

@Ritesh1707
Copy link

Didn't work on my device alany other suggestions

@Johnyboy234
Copy link

Header Header
Cell Cell
Cell Cell

@antgustech
Copy link

What do you if you machine is work issued and only admin can change defender settings?

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