Edit report at https://bugs.php.net/bug.php?id=78894&edit=1
ID: 78894
Updated by: php-bugs@lists.php.net
Reported by: luis dot armengol at koyi dot tv
Summary: Preload: double free or corruption crash
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: opcache
Operating System: Centos 7.3
PHP Version: 7.4.2
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2020-01-30 11:58:59] w1zzard at gmx dot net
Guess that means no preloading with 7.4.2 either - wait for 7.4.3
------------------------------------------------------------------------
[2020-01-27 11:33:33] w1zzard at gmx dot net
Indeed, the error happens with opcache.preload_user=root, too. I just got lucky on my first test
run.
What's the recommended way to enable preloading now?
Empty opcache.preload_user results in Fatal Error "opcache.preload_user" has not been
defined
------------------------------------------------------------------------
[2020-01-27 11:12:51] nikic@php.net
> Correct, changing from opcache.preload_user=username to opcache.preload_user=root fixes the
> problem.
I don't think that works. The referenced issue occurs with any use of opcache.preload_user,
independent of whether it's root or not. Specifying root might just work by luck.
> Why do the docs say "Preloading code as root is not allowed for security reasons. This
> directive facilitates to let the preloading to be run as another user."
Preloading under root is not allowed by default, but explicit use of opcache.preload_user=root is
allowed, if you do want to run preloading under root (e.g. if you use Docker and you're root
anyway).
------------------------------------------------------------------------
[2020-01-27 11:06:13] w1zzard at gmx dot net
Correct, changing from opcache.preload_user=username to opcache.preload_user=root fixes the problem.
Thanks!
Why do the docs say "Preloading code as root is not allowed for security reasons. This
directive facilitates to let the preloading to be run as another user."
------------------------------------------------------------------------
[2020-01-27 08:30:49] nikic@php.net
Do you make use of opcache.preload_user? If so, this might be bug #79128.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=78894
--
Edit this bug report at https://bugs.php.net/bug.php?id=78894&edit=1