You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2022/06/15 20:18:38 UTC

[Bug 66124] New: Apache newer than 2.4.52 does not work with mod_php56 (5.6.40)

https://bz.apache.org/bugzilla/show_bug.cgi?id=66124

            Bug ID: 66124
           Summary: Apache newer than 2.4.52 does not work with mod_php56
                    (5.6.40)
           Product: Apache httpd-2
           Version: 2.4.53
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: adsh@univ.kiev.ua
  Target Milestone: ---

Apache newer than 2.4.52 does not work with mod_php56 (5.6.40):

[Wed Jun 15 22:45:28.598120 2022] [mpm_event:notice] [pid 79088:tid 545689600]
AH00489: Apache/2.4.54 (FreeBSD) OpenSSL/1.1.1l-freebsd configured -- resuming
normal operations
[Wed Jun 15 22:45:28.598414 2022] [core:notice] [pid 79088:tid 545689600]
AH00094: Command line: '/usr/local/sbin/httpd'
[Wed Jun 15 22:45:32.702955 2022] [core:notice] [pid 79088:tid 545689600]
AH00052: child pid 79089 exit signal Segmentation fault (11)
[Wed Jun 15 22:45:33.731537 2022] [core:notice] [pid 79088:tid 545689600]
AH00052: child pid 79096 exit signal Segmentation fault (11)
[Wed Jun 15 22:45:33.734173 2022] [core:notice] [pid 79088:tid 545689600]
AH00052: child pid 79090 exit signal Segmentation fault (11)

Please restore compatibility that was lost after version 2.4.52.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 66124] Apache newer than 2.4.52 does not work with mod_php56 (5.6.40)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66124

--- Comment #3 from Reindl Harald <h....@thelounge.net> ---
running 2.4.54 (prefork) with mod_php 7.4.30 in production on dozens of servers
(Fedora) without the slightest issue

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 66124] Apache newer than 2.4.52 does not work with mod_php56 (5.6.40)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66124

--- Comment #9 from Rainer Jung <ra...@kippdata.de> ---
Sorry, don't know much about FreeBSD. Maybe

sysctl.sugid_coredump=1

and check permissions of /var/coredumps?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 66124] Apache newer than 2.4.52 does not work with mod_php56 (5.6.40)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66124

--- Comment #7 from Alexander Sheiko <ad...@univ.kiev.ua> ---
Stefan Eissing, the problem appeared during the update 2.4.52 => 2.4.53, while
strange paths to scripts began to appear in the logs - see above. There should
not be such paths - the point is somewhere in this. Paths should be like
/tmp/sess_4s95ac0elj5o50b7euvtcn28a3.

As for compatibility - all previous versions of Apache 2.4.x work fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 66124] Apache newer than 2.4.52 does not work with mod_php56 (5.6.40)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66124

--- Comment #10 from Alexander Sheiko <ad...@univ.kiev.ua> ---
sysctl kern.sugid_coredump
kern.sugid_coredump: 1

ls -l /var | grep core
drwxrwxrwx   2 root     wheel      512 Jun 19 22:10 coredumps

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 66124] Apache newer than 2.4.52 does not work with mod_php56 (5.6.40)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66124

--- Comment #5 from Stefan Eissing <ic...@apache.org> ---
I am not sure we are in a situation where we can help you. The fact is that PHP
5.6 is end-of-life since December 31, 2018.

As far as we are aware, we have retained backward compatibility in all Apache
2.4.x releases to our API.  

A way forward for you would be to produce core files and analyse where exactly
the crashes happen on your system and which components are involved. We *might*
find the cause looking at your backtraces. But it might be something which
results from php5.6 implementation restrictions/bugs which are not easily
remedied.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 66124] Apache newer than 2.4.52 does not work with mod_php56 (5.6.40)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66124

--- Comment #1 from Rainer Jung <ra...@kippdata.de> ---
Typical PHP builds are not thread-safe (except on Windows), so you must use the
prefork MPM, not the event MPM which you are using due to your log snippet.
Please change your LoadModule lines to load mpm_prefork instead of mpm_event
and try again. Let us know, if it works then.

Thanks and regards,

Rainer

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 66124] Apache newer than 2.4.52 does not work with mod_php56 (5.6.40)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66124

--- Comment #4 from Alexander Sheiko <ad...@univ.kiev.ua> ---
We are talking about PHP 5.6(40), which cannot be updated due to specific CMS
and other scripts.

Compatibility has been broken since Apache 2.4.53.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 66124] Apache newer than 2.4.52 does not work with mod_php56 (5.6.40)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66124

--- Comment #6 from Rainer Jung <ra...@kippdata.de> ---
For more on how to get a backtrace see:

https://httpd.apache.org/dev/debugging.html

especially "Debugging intermittent crashes".

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 66124] Apache newer than 2.4.52 does not work with mod_php56 (5.6.40)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66124

--- Comment #8 from Alexander Sheiko <ad...@univ.kiev.ua> ---
Rainer Jung, dumps generation not working:

--
# FreeBSD
mkdir -p /var/coredumps
chmod 777 /var/coredumps                        # for "kern.sugid_coredump=1"
sysctl kern.corefile=/var/coredumps/%U/%N.core
sysctl kern.coredump=1                          # default
--
grep Dump /usr/local/etc/apache24/httpd.conf
CoreDumpDirectory /var/coredumps
--
grep coredumpsize /etc/login.conf
        :coredumpsize=unlimited:\
--
[Sun Jun 19 22:33:07.362798 2022] [mpm_event:notice] [pid 17125:tid 545689600]
AH00489: Apache/2.4.54 (FreeBSD) OpenSSL/1.1.1l-freebsd configured -- resuming
normal operations
[Sun Jun 19 22:33:07.363150 2022] [core:notice] [pid 17125:tid 545689600]
AH00094: Command line: '/usr/local/sbin/httpd'
[Sun Jun 19 22:33:10.368381 2022] [core:notice] [pid 17125:tid 545689600]
AH00052: child pid 17127 exit signal Segmentation fault (11)
[Sun Jun 19 22:33:11.371415 2022] [core:notice] [pid 17125:tid 545689600]
AH00052: child pid 17133 exit signal Segmentation fault (11)
[Sun Jun 19 22:33:14.379395 2022] [core:notice] [pid 17125:tid 545689600]
AH00052: child pid 17134 exit signal Segmentation fault (11)
[Sun Jun 19 22:33:17.386427 2022] [core:notice] [pid 17125:tid 545689600]
AH00052: child pid 17135 exit signal Segmentation fault (11)
[Sun Jun 19 22:33:25.602397 2022] [core:notice] [pid 17125:tid 545689600]
AH00052: child pid 17137 exit signal Segmentation fault (11)
[Sun Jun 19 22:33:28.610408 2022] [core:notice] [pid 17125:tid 545689600]
AH00052: child pid 17138 exit signal Segmentation fault (11)
[Sun Jun 19 22:33:32.620385 2022] [core:notice] [pid 17125:tid 545689600]
AH00052: child pid 17139 exit signal Segmentation fault (11)
[Sun Jun 19 22:33:35.628381 2022] [core:notice] [pid 17125:tid 545689600]
AH00052: child pid 17140 exit signal Segmentation fault (11)
--
ls -l /var/coredumps/
total 0

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 66124] Apache newer than 2.4.52 does not work with mod_php56 (5.6.40)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66124

--- Comment #2 from Alexander Sheiko <ad...@univ.kiev.ua> ---
I use mod_php56 with option "Thread Safety => enabled". It worked perfectly on
all versions of event MPM Apache 2.4.xx to 2.4.52 inclusive. After the next
update to the version 2.4.53(54), problems began.

With prefork MPM I see the same problem:

[Thu Jun 16 15:10:09.695047 2022] [mpm_prefork:notice] [pid 18512] AH00163:
Apache/2.4.54 (FreeBSD) OpenSSL/1.1.1l-freebsd configured -- resuming normal
operations
[Thu Jun 16 15:10:09.695222 2022] [core:notice] [pid 18512] AH00094: Command
line: '/usr/local/sbin/httpd'
[Thu Jun 16 15:10:29.241614 2022] [:error] [pid 18521] [client a.b.c.d:12201]
PHP Warning:  session_write_close(): Failed to write session data (files).
Please verify that the current setting of session.save_path is correct () in
/usr/local/www/a/b/c.php on line 111, referer: https://a/b/d.php
[Thu Jun 16 15:10:35.171805 2022] [:error] [pid 18518] [client a.b.c.d:12204]
PHP Warning:  Unknown:
open(\x18@\xef\xbf\xbd%\xef\xbf\xbd\xef\xbf\xbd/sess_4s95ac0elj5o50b7euvtcn28a3,
O_RDWR) failed: No such file or directory (2) in Unknown on line 0, referer:
https://x/y/z.php?abcd
[Thu Jun 16 15:10:35.171918 2022] [:error] [pid 18518] [client a.b.c.d:12204]
PHP Warning:  Unknown: Failed to write session data (files). Please verify that
the current setting of session.save_path is correct () in Unknown on line 0,
referer: https://f/g/h.php?xyz
[Thu Jun 16 15:12:10.044048 2022] [core:notice] [pid 18512] AH00052: child pid
18530 exit signal Segmentation fault (11)
[Thu Jun 16 15:12:16.056110 2022] [core:notice] [pid 18512] AH00052: child pid
18521 exit signal Segmentation fault (11)
[Thu Jun 16 15:12:17.058081 2022] [core:notice] [pid 18512] AH00052: child pid
18515 exit signal Segmentation fault (11)
[Thu Jun 16 15:12:18.059989 2022] [core:notice] [pid 18512] AH00052: child pid
18517 exit signal Segmentation fault (11)
[Thu Jun 16 15:12:19.062076 2022] [core:notice] [pid 18512] AH00052: child pid
18529 exit signal Segmentation fault (11)
[Thu Jun 16 15:12:20.063809 2022] [core:notice] [pid 18512] AH00052: child pid
18520 exit signal Segmentation fault (11)

session.save_path is correct - /tmp

Something was broken in Apache, starting with version 2.4.53.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org