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

[17.09] bcc tools segfault #29913

Closed
shosti opened this issue Sep 29, 2017 · 6 comments
Closed

[17.09] bcc tools segfault #29913

shosti opened this issue Sep 29, 2017 · 6 comments

Comments

@shosti
Copy link
Contributor

shosti commented Sep 29, 2017

(Possibly related to #17683, I don't know enough to know for sure.)

Issue description

BCC tools on my system (17.09 beta) segfault.

Steps to reproduce

  1. In /etc/nixos/configuration.nix:
  environment.systemPackages = with pkgs; [
    ...
    linuxPackages.bcc
    ...
  ];
  1. sudo biolatency (I also tried biotop, biosnoop, and zfsslower)

Output: https://gist.github.com/4ed1132ca201dcdb47a8ea7074b50265 (similar for all tools).

Technical details

  • System: 17.09beta1199.a193400216 (Hummingbird)
  • Nix version: nix-env (Nix) 1.11.15
  • Nixpkgs version: "17.09beta1199.a193400216"
  • Sandboxing enabled: false
@orivej
Copy link
Contributor

orivej commented Sep 29, 2017

Please try to install bcc by adding programs.bcc.enable = true; into your configuration.nix after updating to 44b6a15 .

@orivej
Copy link
Contributor

orivej commented Sep 29, 2017

Otherwise install bcc without updating by adding these changes to your configuration.nix:

    environment.systemPackages = [ config.boot.kernelPackages.bcc ];
    boot.extraModulePackages = [ config.boot.kernelPackages.bcc ];

@globin @Mic92 Maybe sysdig and bcc modules should be included in the 17.09 release?

@Mic92
Copy link
Member

Mic92 commented Sep 29, 2017

No objections from my side. In fact they are more documentation then code.

@shosti
Copy link
Contributor Author

shosti commented Sep 29, 2017

Thanks for the info! Unfortunately the problem seems to persist. I've been able to reproduce on a VM with a minimal configuration: https://gist.github.com/4f86dfedc913d437b2660e3145e51b62 (my current NixOS version is 17.09beta1314.dc4750b3c3). The problem seems to be the same with the 4.13 kernel and the default 4.9 kernel.

@Mic92
Copy link
Member

Mic92 commented Sep 29, 2017

Right. Looks like we are running into this problem: iovisor/bcc#1221

@Mic92
Copy link
Member

Mic92 commented Sep 29, 2017

If I build the program manually source and run it from the build directory it seems not the trigger the bug.

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

No branches or pull requests

3 participants