NixOS / hydra

Hydra, the Nix-based continuous build system
http://nixos.org/hydra
GNU General Public License v3.0
1.16k stars 298 forks source link

hydra-eval-jobs crashes with SIGSEGV when evaluating a specific nixos toplevel #1409

Open linyinfeng opened 1 day ago

linyinfeng commented 1 day ago

Describe the bug

hydra-eval-jobs crashes with SIGSEGV when evaluating my nixos toplevel when I am using niri-flake's config.lib.niri.actions in my configuration.

The same toplevel can be successfully evaluated using nix.

Remove config.lib.niri.actions from my configuration (the commit), the toplevel can be successfully evaluated.

I created a gist holding the coredump information and I host the core file in https://static.li7g.com/hydra-eval-jobs.core.zst.

To Reproduce

Steps to reproduce the behavior: https://gist.github.com/linyinfeng/b94fea3293dabe14bf9246f5a05fc541#file-reproduce-sh

Expected behavior

No coredump.

Hydra Server:

github:nixos/nixpkgs/99dc8785f6a0adac95f5e2ab05cc2e1bf666d172#hydra (current (2024-09-19) nixos-unstable)

Additional context

The crash happens in libnixexpr.so. So the issue seems to be highly related to https://github.com/nixos/nix, but I can not reproduce the same behavior with nix.

Mic92 commented 6 hours ago

@linyinfeng can you reproduce the same issue with nix-eval-jobs? It could be a stack overflow.