Skip to content

Cannot use Glibc.stdout/stderr with Concurrency (error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state) #77866

Open
@weissi

Description

@weissi

Description

Getting a compiler error when using Glibc.stdout/stderr with Concurrency

error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state

Reproduction

import Glibc
Task { fputs("hello", stderr) }

Expected behavior

compiles fine

Environment

6.0.2

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    LinuxPlatform: LinuxbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.concurrencyFeature: umbrella label for concurrency language featuresinput & outputArea → standard library: Input & outputstandard libraryArea: Standard library umbrella

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions