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

nixos-option coredump with std::bad_alloc #100081

Open
nixinator opened this issue Oct 9, 2020 · 4 comments
Open

nixos-option coredump with std::bad_alloc #100081

nixinator opened this issue Oct 9, 2020 · 4 comments

Comments

@nixinator
Copy link
Member

nixinator commented Oct 9, 2020

nixos-option coredumps with std:bad_alloc when accessing attribute sets.

To Reproduce
Steps to reproduce the behavior:

  1. nixos-option system.defaultChannel.value

This attribute set contains:
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)

Expected behavior
A clear and concise description of what you expected to happen.

not to core dump :-)

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

  • system: "x86_64-linux"
  • host os: Linux 5.4.66, NixOS, 20.03.3011.13a15f262a2 (Markhor)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.6
  • channels(root): "nixos-20.03.3011.13a15f262a2"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

tried with upping memory to 32G. No change.

@doronbehar
Copy link
Contributor

It's more sever then that - it segfaults even when you run nixos-option --help if you are only curios - very not user friendly :)

cc @chkno

@stale
Copy link

stale bot commented Jun 7, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 7, 2021
@doronbehar
Copy link
Contributor

Still an issue, segfaults for me with: nixos-option with no arguments.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 10, 2021
@Aleksanaa
Copy link
Member

Still coredump but may not be the same cause:

=> nixos-option 
terminate called after throwing an instance of 'nix::ThrownError'
  what():  error:
       … while evaluating the attribute 'options'

         at /nix/store/i6hq63805y784dml4j8pgkrz3lryxzld-source/nixos/default.nix:15:17:

           14| {
           15|   inherit (eval) pkgs config options;
             |                 ^
           16|

       … while evaluating the attribute 'options'

         at /nix/store/i6hq63805y784dml4j8pgkrz3lryxzld-source/lib/modules.nix:319:9:

          318|         _type = "configuration";
          319|         options = checked options;
             |         ^
          320|         config = checked (removeAttrs config [ "_module" ]);

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: file 'nixos-config' was not found in the Nix search path (add it using $NIX_PATH or -I)

       at «none»:0: (source not available)
Aborted (core dumped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants