Files
nix/tests/functional
Sergei Zimmerman 6e78cc90d3 libexpr: Fix invalid handling of errors for imported functions
c39cc00404 has added assertions for
all Value accesses and the following case has started failing with
an `unreachable`:

(/tmp/fun.nix):

```nix
{a}: a
```

```
$ nix eval --impure --expr 'import /tmp/fun.nix {a="a";b="b";}'
```

This would crash:

```
terminating due to unexpected unrecoverable internal error: Unexpected condition in getStorage at ../include/nix/expr/value.hh:844
```

This is not a regression, but rather surfaces an existing problem, which previously
was left undiagnosed. In the case of an import `fun` is the `import` primOp, so that read is invalid
and previously this resulted in an access into an inactive union member, which is UB.
The correct thing to use is `vCur`. Identical problem also affected the case of a missing argument.

Add previously failing test cases to the functional/lang test suite.

Fixes #13448.
2025-07-11 20:20:48 +03:00
..
2025-05-21 17:31:41 -04:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2024-08-14 15:35:40 -04:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-05-12 15:06:54 +02:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-06-11 16:11:38 -04:00
2025-02-19 12:47:28 +01:00
2024-08-14 15:35:40 -04:00
2025-01-24 17:04:02 +01:00
2023-10-06 09:05:56 -04:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-06-19 15:23:10 -07:00
2024-10-16 17:18:07 +02:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-02-07 11:20:18 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-05-23 10:45:12 +02:00
2025-02-18 15:55:19 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 15:25:10 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-06-22 16:49:44 +02:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00
2024-08-14 15:16:06 +02:00
2025-02-11 20:58:48 +01:00
2024-08-14 15:16:06 +02:00
2025-05-24 00:40:06 +02:00
2025-01-24 17:04:02 +01:00
2024-08-14 15:16:06 +02:00
2025-05-09 16:55:13 +02:00
2024-08-14 15:16:06 +02:00
2024-08-14 15:16:06 +02:00
2024-06-11 16:05:57 +02:00
2025-01-24 17:04:02 +01:00
2025-01-24 17:04:02 +01:00