Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aborted (core dumped) trying to builtins.trace at specialArgs #8119

Closed
n8henrie opened this issue Mar 28, 2023 · 0 comments · Fixed by #8148
Closed

Aborted (core dumped) trying to builtins.trace at specialArgs #8119

n8henrie opened this issue Mar 28, 2023 · 0 comments · Fixed by #8148
Labels
bug language The Nix expression language; parser, interpreter, primops, evaluation, etc

Comments

@n8henrie
Copy link
Contributor

n8henrie commented Mar 28, 2023

Describe the bug

I get Aborted (core dumped) "$@" if I try to specialArgs = builtins.trace inputs inputs in my system flake. Tested on 2 different systems (the one below is a VM).

Nothing else changed in the configuration.nix (which was entirely different between the two systems).

[root@nixosvm:/etc/nixos]# nixos-rebuild switch
/run/current-system/sw/bin/nixos-rebuild: line 167:  1147 Aborted                 (core dumped) "$@"
{
  description = "NixOS VM";
  inputs.nixpkgs.url = "nixpkgs/nixos-22.05";
  outputs =
    { self
    , nixpkgs
    } @ attrs:
    let
      system = "aarch64-linux";
    in
    {
      nixosConfigurations.nixosvm = nixpkgs.lib.nixosSystem
        {
          inherit system;
          specialArgs = builtins.trace attrs attrs;
          modules = [
            ./configuration.nix
          ];
        };
    };
}

Expected behavior

Either work or given an error with an explanation.

nix-env --version output

[root@nixosvm:/etc/nixos]# nix-env --version
nix-env (Nix) 2.13.3

Additional context

I wonder if related:

@n8henrie n8henrie added the bug label Mar 28, 2023
roberth added a commit to hercules-ci/nix that referenced this issue Apr 1, 2023
@roberth roberth added the language The Nix expression language; parser, interpreter, primops, evaluation, etc label Apr 1, 2023
roberth added a commit to hercules-ci/nix that referenced this issue Apr 3, 2023
roberth added a commit to hercules-ci/nix that referenced this issue Apr 3, 2023
roberth added a commit to hercules-ci/nix that referenced this issue Apr 3, 2023
This catches bugs like NixOS#8119 early.
It is not the prettiest solution though, but one that can be applied
gradually.
roberth added a commit to hercules-ci/nix that referenced this issue Apr 3, 2023
This catches bugs like NixOS#8119 early.
It is not the prettiest solution though, but one that can be applied
gradually.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug language The Nix expression language; parser, interpreter, primops, evaluation, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants