Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Error Cannot kill process XXXX: Operation not permitted! #17

Open
mdmvgithub opened this issue Dec 25, 2017 · 4 comments
Open

Error Cannot kill process XXXX: Operation not permitted! #17

mdmvgithub opened this issue Dec 25, 2017 · 4 comments

Comments

@mdmvgithub
Copy link

When Apache 2.4 tries to kill a instance that is running under a userid set by ruid2, it cannot kill process, giving the error Error Cannot kill process XXXX: Operation not permitted!
This happens for example on a PHP script handling Server Event Notifications that is in a loop.
Then other apache clients become affected giving emty responses.

@arekm
Copy link

arekm commented Feb 1, 2019

Where is the message coming from? I don't see "kill process" in mod_ruid2 sources.

Edit: from php:

./ext/opcache/ZendAccelerator.c: zend_accel_error(ACCEL_LOG_ERROR, "Cannot kill process %d: %s!", mem_usage_check->l_pid, strerror(errno));

@arekm
Copy link

arekm commented Feb 1, 2019

Most likely https://bugs.php.net/bug.php?id=76482

@mdmvgithub
Copy link
Author

mdmvgithub commented Feb 2, 2019 via email

@arekm
Copy link

arekm commented Feb 3, 2019

Not exactly. It's not apache. It's php (well, it's loaded as so into apache process). The killing code comes from php. php opcache module (which uses kill for some memory management reason). And the problem is that this php code doesn't handle EPERM well.

So this issue should be closed as this is not ruid2 problem.

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

No branches or pull requests

2 participants