Skip to content

getcwd() failed error in certain scenarios #44

@konard

Description

@konard

🐛 Bug Description

getcwd() system call fails in certain scenarios when using command-stream, particularly when the current directory has been deleted or permissions have changed.

🔴 Impact

  • Scripts fail in CI/CD environments
  • Directory operations become unreliable
  • Error messages are cryptic and hard to debug

📝 Problem Details

The error "getcwd() failed" occurs when:

  • Current directory was deleted after process started
  • Permissions changed on parent directories
  • Working in temporary directories that get cleaned up

🔧 Workaround

Always use absolute paths and avoid relying on current working directory.

🔗 References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions