Skip to content

os: Chdir is not reentrant #27658

@blissnd

Description

@blissnd

Reproduction and description of bug:

https://github.com/blissnd/BUG_IN_GOLANG

Using LockOSThread() makes no difference to the issue as shown here:

https://github.com/blissnd/BUG_IN_GOLANG/tree/workaround?files=1

Concurrency code should be reentrant and should not keep state between threads, especially when their is no access to shared memory or race conditions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions