xhprof icon indicating copy to clipboard operation
xhprof copied to clipboard

Segfault under cgroup limitation

Open billietl opened this issue 9 years ago • 2 comments

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

billietl avatar Dec 04 '14 09:12 billietl

Hi @billietl , It seems I encountered the same issue. Did you figure out any workaround for this problem?

SlavaValAl avatar Aug 08 '17 22:08 SlavaValAl

ref: https://github.com/lxc/lxcfs/issues/88

druggo avatar Feb 28 '18 13:02 druggo