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

rebuild issues, grub #145249

Closed
davidak opened this issue Nov 9, 2021 · 5 comments
Closed

rebuild issues, grub #145249

davidak opened this issue Nov 9, 2021 · 5 comments
Labels
0.kind: bug Something is broken 6.topic: kernel The Linux kernel 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS

Comments

@davidak
Copy link
Member

davidak commented Nov 9, 2021

Describe the bug

When i rebuild my system, the desktop session (pantheon) crashes and there are some grub errors.

https://youtu.be/OT5M4J9bEak

Nov 09 19:14:30 gaming kernel: failed to validate module [nf_tables] BTF: -22
Nov 09 19:14:30 gaming kernel: BPF:[79706] ENUM  
Nov 09 19:14:30 gaming kernel: BPF:size=4 vlen=22
Nov 09 19:14:30 gaming kernel: BPF: 
Nov 09 19:14:30 gaming kernel: BPF:Invalid name
Nov 09 19:14:30 gaming kernel: BPF:

Steps To Reproduce

Steps to reproduce the behavior:

  1. nixos-rebuild
  2. desktop session crash, so i ran rebuild again in tty1 to avoid the shell session dissapear
  3. see a lot of grub (i guess) errors (reproducible)

Expected behavior

no crash, no errors

Additional context

Add any other context about the problem here.

Notify maintainers

pantheon maintainer @bobby285271: do you experience this as well?

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.15.0, NixOS, 21.11 (Porcupine)
  • multi-user?: no
  • sandbox: yes
  • version: nix-env (Nix) 2.3.16
  • channels(root): "home-manager-21.05, nixos-21.11pre328987.c935f5e0add, nixos-hardware, nixos-unstable-21.11pre328987.c935f5e0add"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@davidak davidak added the 0.kind: bug Something is broken label Nov 9, 2021
@Artturin
Copy link
Member

Artturin commented Nov 9, 2021

iirc this can happen because of mismatched kernel and kernel header versions
failed to validate module [nf_tables] BTF: -22

they aren't grub errors btw

@veprbl veprbl added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Nov 10, 2021
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nixos-rebuild-switch-crashes-wm-de/16127/5

@Mic92
Copy link
Member

Mic92 commented Nov 19, 2021

This seems to be independent from both pantheon and grub. I also get this with sway and systemd-boot.

@vcunat vcunat added the 6.topic: kernel The Linux kernel label Nov 19, 2021
@davidak
Copy link
Member Author

davidak commented Nov 19, 2021

FYI: at the time of writing the issue, it was reproducible every time i re-run the rebluild, but after i rebooted, i did not have the issue again. it's annoying and i had it in the past

@Artturin
Copy link
Member

Artturin commented Dec 7, 2021

#149244 may fix this because i saw similar errors in journalctl when i got #146383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: kernel The Linux kernel 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Projects
None yet
Development

No branches or pull requests

6 participants