Skip to content

env: unwrap panick when called program exited with SIGSEGV #3188

@jhasse

Description

@jhasse

When calling a program with env that segfaults, I'm getting:

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/uu/env/src/env.rs:311:67

With GNU env the error message is more helpful:

“env ./foo” terminated by signal SIGSEGV (Address boundary error)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions