Bug #72955 [Fbk->NoF]: PHP periodically crashes
Edit report at https://bugs.php.net/bug.php?id=72955&edit=1
ID: 72955
Updated by: php-bugs@lists.php.net
Reported by: nikolay at rockstonedev dot com
Summary: PHP periodically crashes
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Reproducible crash
Operating System: Gentoo
PHP Version: 7.0.10
Assigned To: cmb
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:
------------------------------------------------------------------------
[2021-06-09 14:44:59] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?
[1] <https://www.php.net/supported-versions.php>
------------------------------------------------------------------------
[2017-09-05 03:11:01] jerry at jmweb dot net
I have been running my install with "php_admin_value open_basedir" removed and I am still
seeing these crashes. So, perhaps it is a result from setting Document Root on VirtualHosts. The
difference between my setup and nikolay's is that I set Document Root directly through
Apache's DocumentRoot directive - I do not use php_admin_value doc_root for that.
This is a production server and I really need a fix for this. What information can I provide to help
a developer troubleshoot this?
Nikolay, are you still seeing these crashes?
------------------------------------------------------------------------
[2017-08-01 09:54:07] jerry at jmweb dot net
This may be related to https://bugs.php.net/bug.php?id=74770
How sure are you that the crash is a result from 'php_admin_value doc_root'? In my case,
the crash is from 'php_admin_value open_basedir' which you also set. I had to run Apache
bench to trigger the crash since it too is periodic.
------------------------------------------------------------------------
[2016-08-29 11:46:01] nikolay at rockstonedev dot com
"Periodically" means about in 1 case from 100 000 requests.
I can't run it with valgrind because this is a production server.
But isn't local vars output help you to find the problem?
(gdb) p chunk
$69 = (zend_mm_chunk *) 0x800000
Address 0x800000 isn't valid for chunk and access to it gives us segfault.
But it calculates right from
(gdb) p (char*) ((zend_string*)ptr)->val
$68 = 0x8dcd98 "doc_root"
0x8dcd98 "doc_root" is fully valid allocated address.
#define ZEND_MM_ALIGNED_BASE(size, alignment) \
(((size_t)(size)) & ~((alignment) - 1))
zend_mm_chunk *chunk = (zend_mm_chunk*)ZEND_MM_ALIGNED_BASE(ptr, ZEND_MM_CHUNK_SIZE);
0x8dcd98 & ~(0x200000 - 1) = 0x800000
------------------------------------------------------------------------
[2016-08-29 03:47:00] laruence@php.net
I can not reproduce this, maybe you could start httpd with
valgrind httpd -X
then try to trigger the error, and see what is outputted by valgrind.
thanks
------------------------------------------------------------------------
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=72955
--
Edit this bug report at https://bugs.php.net/bug.php?id=72955&edit=1
Thread (6 messages)