NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.39k stars 14.34k forks source link

perf list broken after update #267993

Open anderspapitto opened 1 year ago

anderspapitto commented 1 year ago

Describe the bug

> perf list >/dev/null && echo ok
ok
> perf list -j
Segmentation fault

Additional context

I am using linuxPackages_latest.perf inside WSL. This was working before a nix flake update, and if I revert that update, it works again. The working version corresponds to this version of nixkpgs

    "nixpkgs": {
      "locked": {
        "lastModified": 1690239167,
        "narHash": "sha256-ql45o9jOLA9L32NmnYm8eXwhEFe36m91x1q6Kad3FLk=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "d0a7ba022ef00e015aaf87ae14432d8f6662f0c4",
        "type": "github"
      },
      "original": {
        "owner": "nixos",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
trofi commented 1 year ago

Can you get a gacktrace from perf crash? Should be a matter of running gdb --args perf list and typing bt in gdb session.

I wonder if it's related to libpfm dependency added a while ago in https://github.com/NixOS/nixpkgs/pull/250180