SegmentationFault (11) on Apache (macOS) - php

I'm getting a segmentation fault on macOS, but only when using PHP from homebrew (tried with 7.2, 7.3). If I switch back to default macOS PHP, it works fine.
[Tue Jun 02 22:47:54.220053 2020] [core:notice] [pid 66936] AH00052: child pid 35517 exit signal Segmentation fault (11)
[Tue Jun 02 22:47:55.289187 2020] [core:notice] [pid 66936] AH00052: child pid 35520 exit signal Segmentation fault (11)
[Tue Jun 02 22:49:17.040809 2020] [core:notice] [pid 66936] AH00052: child pid 35521 exit signal Segmentation fault (11)
[Tue Jun 02 22:49:18.116103 2020] [core:notice] [pid 66936] AH00052: child pid 35964 exit signal Segmentation fault (11)
[Tue Jun 02 22:49:19.183073 2020] [core:notice] [pid 66936] AH00052: child pid 35966 exit signal Segmentation fault (11)
I tried to dump Apache core, but had no luck. It only happens (as far as I know) on login screens, such as PhpMyAdmin and wp-login.
Any thoughts?
Thanks!

Related

Designed a extension by c++ for PHP, I got some error

I designed an extension by c++ for PHP. When I run an extension-related method, there occurred a PHP error. I found this /var/log/apache2/error.log file;
But already I am running a similar type of extension in my system.
PHP version: 7.2.34
operation system: ubuntu 18.04
Zend Engine v3.2.0
error :
[Wed Apr 07 20:01:58.215958 2021] [core:notice] [pid 32197] AH00051: child pid 32198 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Apr 07 20:01:58.216005 2021] [core:notice] [pid 32197] AH00051: child pid 32199 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Apr 07 20:01:59.218515 2021] [core:notice] [pid 32197] AH00051: child pid 32200 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Apr 07 20:01:59.218573 2021] [core:notice] [pid 32197] AH00051: child pid 32201 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Apr 07 20:01:59.218589 2021] [core:notice] [pid 32197] AH00051: child pid 32202 exit signal Segmentation fault (11), possible coredump in /etc/apache2
Has anyone seen similar before? Is there any fix for this?

Apache 2 PHP "not found or unable to stat" crashes our site

Our server started to get hit with a particular URL from many different IPs. The URL was for the file wp-login.php. We are running PHP but we are not running Word Press. This looks like some sort of brute force attack. We have thousands of error log entries that look like this:
[Mon Sep 25 08:49:02.199784 2017] [:error] [pid 55904] [client 85.101.234.119:62848] script '/var/www/html/wp-login.php' not found or unable to stat
[Mon Sep 25 08:52:59.426923 2017] [:error] [pid 62559] [client 157.50.13.248:57481] script '/var/www/html/wp-login.php' not found or unable to stat
[Mon Sep 25 08:59:24.561571 2017] [:error] [pid 73252] [client 42.115.49.147:39332] script '/var/www/html/wp-login.php' not found or unable to stat
[Mon Sep 25 09:03:36.470029 2017] [:error] [pid 74502] [client 24.14.179.217:34758] script '/var/www/html/wp-login.php' not found or unable to stat
Eventually we get the following error log entry:
[Tue Sep 26 07:31:04.925077 2017] [mpm_prefork:error] [pid 53301] AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
Then we start getting thousands of these entries:
[Tue Sep 26 07:40:26.028058 2017] [core:notice] [pid 53301] AH00051: child pid 61097 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:27.032093 2017] [core:notice] [pid 53301] AH00051: child pid 61118 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:28.032829 2017] [mpm_prefork:error] [pid 53301] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Tue Sep 26 07:40:38.034664 2017] [core:notice] [pid 53301] AH00051: child pid 61127 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:38.035026 2017] [core:notice] [pid 53301] AH00051: child pid 61116 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:38.035068 2017] [core:notice] [pid 53301] AH00051: child pid 61115 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:39.499756 2017] [mpm_prefork:error] [pid 53301] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Tue Sep 26 07:40:49.501294 2017] [core:notice] [pid 53301] AH00051: child pid 73499 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:49.501632 2017] [core:notice] [pid 53301] AH00051: child pid 73498 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:49.501667 2017] [core:notice] [pid 53301] AH00051: child pid 73500 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:49.501764 2017] [core:notice] [pid 53301] AH00051: child pid 61188 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:49.501797 2017] [core:notice] [pid 53301] AH00051: child pid 61170 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:40:50.509833 2017] [mpm_prefork:error] [pid 53301] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Tue Sep 26 07:41:00.512913 2017] [mpm_prefork:error] [pid 53301] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Tue Sep 26 07:41:10.529013 2017] [core:notice] [pid 53301] AH00051: child pid 61268 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:41:10.535317 2017] [core:notice] [pid 53301] AH00051: child pid 61201 exit signal Bus error (7), possible coredump in /etc/apache2
[Tue Sep 26 07:41:10.535367 2017] [core:notice] [pid 53301] AH00051: child pid 61204 exit signal Bus error (7), possible coredump in /etc/apache2
Then we have literally 100 or more apache2 processes running and our swap space maxes out and the server comes to a crawl and is unresponsive.
I temporarily fixed it by putting a blank wp-login.php page in the root and restarting apache. But now I can reproduce the same behavior by simply making a request to a bogus URL. I get a 404 but I also get more apache2 processes running and the same log entries.
I don’t know very much about Apache and it’s configuration. Is there anyone that can help me with this issue ?
Thanks,
Warren

The "connection was reset" when trying to get svn-diff between two revisions in php

I was trying to get svn difference of same file in two revisions.
I referred this http://php.net/manual/en/function.svn-diff.php
<?php
list($diff, $errors) = svn_diff(
'http://www.example.com/svnroot/trunk/foo', SVN_REVISION_HEAD,
'http://www.example.com/svnroot/branches/dev/foo', SVN_REVISION_HEAD
);
if (!$diff) exit;
$contents = '';
while (!feof($diff)) {
$contents .= fread($diff, 8192);
}
fclose($diff);
fclose($errors);
var_dump($contents);
?>
But I always get below error as "connection was reset" when I run this.
error log is like below,
[Wed Jun 15 17:16:53.495806 2016] [core:notice] [pid 1343] AH00051: child pid 1437 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jun 15 17:16:53.496043 2016] [core:notice] [pid 1343] AH00051: child pid 1438 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jun 15 17:16:53.496131 2016] [core:notice] [pid 1343] AH00051: child pid 1439 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jun 15 17:16:53.496166 2016] [core:notice] [pid 1343] AH00051: child pid 1440 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jun 15 17:16:53.496198 2016] [core:notice] [pid 1343] AH00051: child pid 1441 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Wed Jun 15 17:16:54.498196 2016] [core:notice] [pid 1343] AH00051: child pid 2805 exit signal Segmentation fault (11), possible coredump in /etc/apache2

ModX Manager Failing to Load

I am attempting to login to my ModX install.
The manager login screen comes up, and I can type in my username and password. Once I hit login I am presented with the The connection was reset in firefox, and in Chrome with No data received - Unable to load the webpage because the server sent no data.
Error code: ERR_EMPTY_RESPONSE
The server is Ubuntu 13.10 running Apache 2 with php 5.5.3 and is my own personal server. All I've done is keep up with updates...
What can the issue be?
I don't know if this will help, but here is the log from my last restart of apache:
[Thu Apr 10 13:07:19.928031 2014] [mpm_prefork:notice] [pid 9826] AH00169: caught SIGTERM, shutting down
[Thu Apr 10 13:07:21.049656 2014] [suexec:notice] [pid 11164] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Thu Apr 10 13:07:21.077715 2014] [auth_digest:notice] [pid 11165] AH01757: generating secret for digest authentication ...
[Thu Apr 10 13:07:21.079094 2014] [:notice] [pid 11168] FastCGI: process manager initialized (pid 11168)
[Thu Apr 10 13:07:21.129505 2014] [:notice] [pid 11165] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Thu Apr 10 13:07:21.129536 2014] [:notice] [pid 11165] mod_python: using mutex_directory /tmp
[Thu Apr 10 13:07:21.232375 2014] [mpm_prefork:notice] [pid 11165] AH00163: Apache/2.4.6 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 PHP/5.5.3-1ubuntu2.3 mod_python/3.3.1 Python/2.7.5+ OpenSSL/1.0.1e configured -- resuming normal operations
[Thu Apr 10 13:07:21.232458 2014] [core:notice] [pid 11165] AH00094: Command line: '/usr/sbin/apache2'
[Thu Apr 10 13:08:09.296802 2014] [core:notice] [pid 11165] AH00051: child pid 11173 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Thu Apr 10 13:08:09.296887 2014] [core:notice] [pid 11165] AH00051: child pid 11187 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Thu Apr 10 13:08:34.337400 2014] [core:notice] [pid 11165] AH00051: child pid 11212 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Thu Apr 10 13:08:35.338551 2014] [core:notice] [pid 11165] AH00051: child pid 11188 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Thu Apr 10 13:08:35.338631 2014] [core:notice] [pid 11165] AH00051: child pid 11213 exit signal Segmentation fault (11), possible coredump in /etc/apache2

Issue when trying to configure new symfony2

I tried going to http://localhost/Symfony/web/config and then I clicked on "configure your symfony application" and then I am getting the following error:
No data received
Unable to load the webpage because the server sent no data.
Here are some suggestions:
Reload this webpage later.
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
Any idea what and how I should debug this? I am testing this on OS X Mountain Lion, apache2, and PHP 5.4.6
In my logs I am seeing the following:
[Tue Aug 28 00:59:29 2012] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/favicon.ico
[Tue Aug 28 00:59:51 2012] [notice] child pid 27878 exit signal Segmentation fault (11)
[Tue Aug 28 00:59:52 2012] [notice] child pid 27877 exit signal Segmentation fault (11)
[Tue Aug 28 00:59:52 2012] [notice] child pid 27875 exit signal Bus error (10)
[Tue Aug 28 01:00:10 2012] [notice] child pid 27879 exit signal Bus error (10)
[Tue Aug 28 01:00:14 2012] [notice] child pid 27882 exit signal Segmentation fault (11)
[Tue Aug 28 01:00:20 2012] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/favicon.ico
[Tue Aug 28 01:00:23 2012] [notice] child pid 27883 exit signal Bus error (10)
[Tue Aug 28 01:00:24 2012] [notice] child pid 27884 exit signal Segmentation fault (11)
[Tue Aug 28 01:00:26 2012] [notice] child pid 27885 exit signal Segmentation fault (11)
[Tue Aug 28 01:01:09 2012] [notice] child pid 27889 exit signal Segmentation fault (11)
[Tue Aug 28 01:01:09 2012] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/favicon.ico
[Tue Aug 28 01:01:15 2012] [notice] child pid 27892 exit signal Segmentation fault (11)
[Tue Aug 28 01:01:16 2012] [notice] child pid 27893 exit signal Segmentation fault (11)
[Tue Aug 28 01:01:20 2012] [notice] child pid 27894 exit signal Segmentation fault (11)
I guess you're looking for http://localhost/Symfony/web/config.php not http://localhost/Symfony/web/config.
It's in the docs. Check it: http://symfony.com/doc/current/book/installation.html#configuration-and-setup

Categories