[BUG] Bash fork fails with STATUS_DLL_INIT_FAILED (0xC0000142) on Windows 11

Resolved 💬 5 comments Opened Apr 13, 2026 by nelsonp-dev Closed May 24, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Bash(cd "C:\Users\aboga\.claude\skills\notebooklm" && python scripts/run.py auth_manager.py status)
⎿ Error: Exit code 254
0 [main] bash 1981 dofork: child -1 - forked process 15656 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
/etc/profile: fork: retry: Resource temporarily unavailable
1106905 [main] bash 1981 dofork: child -1 - forked process 21760 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
/etc/profile: fork: retry: Resource temporarily unavailable
3228190 [main] bash 1981 dofork: child -1 - forked process 3604 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
/etc/profile: fork: retry: Resource temporarily unavailable
7352622 [main] bash 1981 dofork: child -1 - forked process 13520 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
/etc/profile: fork: retry: Resource temporarily unavailable
15485837 [main] bash 1981 dofork: child -1 - forked process 34520 died unexpectedly, retry 0, exit code 0xC0000142, errno 11

What Should Happen?

Bash should execute the command successfully and return the output of python scripts/run.py auth_manager.py status, which would indicate whether NotebookLM authentication is valid.

Error Messages/Logs

Bash(cd "C:\Users\aboga\.claude\skills\notebooklm" && python scripts/run.py auth_manager.py status)
⎿  Error: Exit code 254
       0 [main] bash 1981 dofork: child -1 - forked process 15656 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
 /etc/profile: fork: retry: Resource temporarily unavailable
 1106905 [main] bash 1981 dofork: child -1 - forked process 21760 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
 /etc/profile: fork: retry: Resource temporarily unavailable
 3228190 [main] bash 1981 dofork: child -1 - forked process 3604 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
 /etc/profile: fork: retry: Resource temporarily unavailable
 7352622 [main] bash 1981 dofork: child -1 - forked process 13520 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
 /etc/profile: fork: retry: Resource temporarily unavailable
 15485837 [main] bash 1981 dofork: child -1 - forked process 34520 died unexpectedly, retry 0, exit code 0xC0000142, errno 11

Steps to Reproduce

  1. Install Claude Code v2.1.104 on Windows 11.
  2. Install the notebooklm-skill from https://github.com/PleasePrompto/notebooklm-skill in ~/.claude/skills/notebooklm
  3. Launch Claude Code: claude
  4. Invoke the skill: /notebooklm add this notebook: <any URL>
  5. Claude Code triggers a Bash command; authorize with 1.
  6. Bash fails with STATUS_DLL_INIT_FAILED on every fork attempt during /etc/profile initialization.

Mitigations attempted (none resolved the issue):

  • Added C:\Program Files\Git as a Windows Defender exclusion path via Add-MpPreference -ExclusionPath
  • Set MSYS=noaslr and CYGWIN=noaslr as user environment variables
  • Fully closed and reopened PowerShell between each mitigation

Git for Windows is installed at C:\Program Files\Git with bash.exe at both \bin\bash.exe and \usr\bin\bash.exe.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.104 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

The STATUS_DLL_INIT_FAILED error during /etc/profile is a documented Cygwin/MSYS issue on modern Windows. Standard mitigations (Defender exclusion, noaslr) do not work, suggesting Claude Code may use a bundled bash or ignore user-level environment variables.

Would be helpful to know:

  • Does Claude Code use system Git Bash or a bundled version?
  • Is there a way to force a specific bash executable?
  • Known workarounds for Windows 11?

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗