Skip to content

coredump in nix 2.30.0 #13448

@RazYang

Description

@RazYang

Describe the bug

coredump when calling function which imported from file

Steps To Reproduce

/tmp/fun.nix:

{a}: a

nix run 'github:nixos/nix/2.30.0' -- eval --impure --expr 'import /tmp/fun.nix {a="a";b="b";}', which print coredump message:

terminating due to unexpected unrecoverable internal error: Unexpected condition in getStorage at ../include/nix/expr/value.hh:844
zsh: IOT instruction (core dumped)  nix run 'github:nixos/nix/2.30.0' -- eval --impure --expr

Expected behavior

nix run 'github:nixos/nix/2.30.0' -- eval --expr '({a}: a) {a="a";b="b";}'

error:
       … from call site
         at «string»:1:1:
            1| ({a}: a) {a="a";b="b";}
             | ^

       error: function 'anonymous lambda' called with unexpected argument 'b'
       at «string»:1:2:
            1| ({a}: a) {a="a";b="b";}
             |  ^
       Did you mean a?

Metadata

nix-env (Nix) 2.30.0

Additional context

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions