NixOS frame-pointer enable

I was just reading Ubuntu 24.04 LTS To Enable Frame Pointers By Default For Better Profiling/Debugging - Phoronix today. Is similar functionality possible with NixOS? If so, how? Any pointers?

3 Likes

Yeah this would be a nice thing to have. I recently got hit by this problem when I was trying to debug something with eBPF. eBPF programs can only do frame pointer based unwinding.

We discussed in stdenv nixpkgs channel to enable it, I think there’s no strong opposition.

cc @alois31 @trofi

2 Likes

Note that currently we don’t have debug symbols for a large part of nixpkgs anyway. You would have to rebuild to get them.