Skip to content

Some SWIFT_BACKTRACE options print a warning despite taking effect #81800

Closed
@czechboy0

Description

@czechboy0

Description

Tested on Linux, Swift 6.1.

For example, when I specify:

SWIFT_BACKTRACE=interactive=no,color=no,sanitize=no,threads=all,registers=all,images=all,output-to=/logs,format=json,symbolicate=fast

The launched process prints:

swift runtime: unknown output-to setting '/logs'
swift runtime: unknown backtracing setting 'format'
swift runtime: unknown backtracing setting 'symbolicate'

Reproduction

SWIFT_BACKTRACE=interactive=no,color=no,sanitize=no,threads=all,registers=all,images=all,output-to=/logs,format=json,symbolicate=fast
./any-swift-program-build-with-6.1-on-linux

Expected behavior

No warnings printed. Again, the options do take effect, so fixing this will just avoid confusion.

Environment

Swift version 6.1 (swift-6.1-RELEASE)
Target: aarch64-unknown-linux-gnu

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.triage neededThis issue needs more specific labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions