copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Bash Tool Fails with posix_spawnp Error After Extended Use

Open hamadycisselp360 opened this issue 1 month ago • 1 comments

Describe the bug

Running bash tools consistently fails after a period of time with the error: <exited with error: posix_spawnp failed.>

Affected version

0.0.358

Steps to reproduce the behavior

 1. Start multiple bash operations or long-running bash commands
 2. After some time (varies), bash tool execution fails
 3. Error appears to be related to process spawning

Expected behavior

Bash tools should execute reliably without timing out or failing due to process spawning issues.

Additional context

Error Details

 - **Error Type**: posix_spawnp failure
 - **Component**: Bash tool
 - **Frequency**: Intermittent, occurs after extended usage
 
 ## Environment
 - OS: macOS/Linux (POSIX-based)
 - Bash Tool Version: [Current]
 - Date Reported: 2025-11-27
 
 ## Possible Root Causes
 - File descriptor exhaustion
 - Process limit reached
 - Resource cleanup not happening properly
 - Signal handling issues
 
 ## Suggested Investigation
 - Check system resource limits (ulimit)
 - Verify proper cleanup of spawned processes
 - Review signal handling and process termination
 - Investigate file descriptor management
 
 ## Related Issues
 - None identified yet

hamadycisselp360 avatar Nov 27 '25 14:11 hamadycisselp360