Bug 280775 - lang/php81 lots of SIGPIPE warnings in php-fpm.log
Summary: lang/php81 lots of SIGPIPE warnings in php-fpm.log
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-12 14:07 UTC by FiLiS
Modified: 2024-08-21 20:53 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description FiLiS 2024-08-12 14:07:11 UTC
After upgrading to the latest version of the port, we're seeing a lot of SIGPIPE warnings in the php-fpm.log:

[12-Aug-2024 15:56:27] WARNING: [pool www] child 13282 exited on signal 13 (SIGPIPE) after 5.575445 seconds from start
[12-Aug-2024 15:56:27] NOTICE: [pool www] child 13325 started
[12-Aug-2024 15:56:33] WARNING: [pool www] child 13325 exited on signal 13 (SIGPIPE) after 5.099562 seconds from start
[12-Aug-2024 15:56:33] NOTICE: [pool www] child 13328 started
[12-Aug-2024 15:57:08] WARNING: [pool www] child 11939 exited on signal 13 (SIGPIPE) after 216.912813 seconds from start
[12-Aug-2024 15:57:08] NOTICE: [pool www] child 13674 started

even on systems that aren't crazy busy, this happens. We don't see user-facing errors in the logs, though. Sometimes nginx logs a 499 error, probably during the child restart.

Any clues on where that could come from?
Comment 1 FiLiS 2024-08-13 08:11:10 UTC
Could this be related to the libxml2 patch from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280153 ?
I have downgraded one box to PHP 8.1.29 from before July 27th and the SIGPIPE errors went away.
Comment 2 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2024-08-17 00:50:26 UTC
Looks like it might be due to the libxml patches. In a very unlikely case if this is a showstopper for libxml update we might have to kill it even before it reaches it's EOL. :(

I will look into upstream.
Comment 3 FiLiS 2024-08-21 14:16:29 UTC
thank you for looking into it. It looks like the patches are only for libxml 2.12, while the current textproc/libxml2 port is 2.11, so PHP 8.1 could do without those for now as long as the libxml2 port isn't update beyond 2.12, right?
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-08-21 19:34:52 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=821186acad55e90b6b302bf1eb1c959b48ac03c7

commit 821186acad55e90b6b302bf1eb1c959b48ac03c7
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-08-21 19:25:33 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-08-21 19:34:16 +0000

    lang/php81: Disable the libxml2 patches

    Some patches were added for supporting libxml2 2.12 or newer however as
    libxml2 itself has not yet been updated these patches are not compatible
    with the previous versions and have runtime issues. These patches should
    be added again after textproc/libxml2 has been updated to 2.12 or newer.

    On the contrary if php81 has runtime issues even after the libxml2
    updates and with these patches we might have to remove php81 earlier
    than expected if there is no fix.

    PR:             280775
    Reported by:    freebsdbugs@filis.org

 lang/php81/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)