xhprof
xhprof copied to clipboard
Segfault under cgroup limitation
Running xhprof in a cgroup-limited environment (using cpuset.cpus feature) causes xhprof to be killed by a segfault every time.
How to reproduce : easiest way is to create a lxc container with lxc.cgroup.cpuset.cpus = 0 on a multi-core computer and run scripts/xhprofile.php in it.
-$ pwd
~/xhprof/scripts
-$ ./xhprofile.php xhprofile.php
setaffinity: Invalid argument
Segmentation fault
Expected behavior : it should run. Well, at least, it should not get a segfault.
Environment : debian, kernel 3.12, lxc 0.8
Hi @billietl , It seems I encountered the same issue. Did you figure out any workaround for this problem?
ref: https://github.com/lxc/lxcfs/issues/88