Skip to content

segmentation fault for non-existing drv #14571

@h0nIg

Description

@h0nIg

Describe the bug

trying to check for non-existing drv file

Steps To Reproduce

$ nix derivation show "/nix/store/8s38l1yxwmqgb6xadlm1a23akbsdkj39-doesnotexist.drv"
[1]    12406 segmentation fault (core dumped)  nix derivation show

$ nix run "github:nixos/nix/2.32.4" derivation show "/nix/store/8s38l1yxwmqgb6xadlm1a23akbsdkj39-doesnotexist.drv"
[1]    12605 segmentation fault (core dumped)  nix run "github:nixos/nix/2.32.4" derivation show

Expected behavior

$ nix run "github:nixos/nix/2.30.3" derivation show "/nix/store/8s38l1yxwmqgb6xadlm1a23akbsdkj39-doesnotexist.drv"
error: path '/nix/store/8s38l1yxwmqgb6xadlm1a23akbsdkj39-doesnotexist.drv' is not a valid store path

Metadata

$ nix-env --version
nix-env (Nix) 2.32.3

Additional context

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions