[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-06-12 Thread Athos Ribeiro
This was released in mantic by the security team as well. Tagging as such ** Changed in: php8.2 (Ubuntu Mantic) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bu

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-05-02 Thread Launchpad Bug Tracker
This bug was fixed in the package php8.1 - 8.1.2-1ubuntu2.17 --- php8.1 (8.1.2-1ubuntu2.17) jammy-security; urgency=medium * SECURITY UPDATE: Heap buffer-overflow - debian/patches/CVE-2022-4900.patch: prevent potential buffer overflow for large valye of php_cli_server_work

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-26 Thread Timo Aaltonen
Hello Lars-Göran, or anyone else affected, Accepted php7.4 into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/php7.4/7.4.3-4ubuntu2.21 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-26 Thread Timo Aaltonen
Hello Lars-Göran, or anyone else affected, Accepted php8.1 into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/php8.1/8.1.2-1ubuntu2.16 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-22 Thread Athos Ribeiro
** Tags removed: verification-done-mantic ** Tags added: verification-needed-mantic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2057576 Title: php-fpm sometimes SIGSEGVs (signal 11) when running f

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-18 Thread Andreas Hasenack
So what are you saying, that phpinfo() is causing random segfaults? So you have a run with just phpinfo() with the php8.2 packages from release and proposed? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bu

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-16 Thread Athos Ribeiro
By removing the call to phpinfo(), I could get back to zero errors with the package in -proposed (and a few thousand with the package in the release pocket), meaning the observed noise was indeed unrelated to this bug/fix. This is ApacheBench, Version 2.3 <$Revision: 1903618 $>

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-16 Thread Athos Ribeiro
** Changed in: php8.1 (Ubuntu Jammy) Status: Triaged => In Progress ** Changed in: php7.4 (Ubuntu Focal) Status: Triaged => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2057

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-11 Thread Athos Ribeiro
Reproducing the issue in mantic with the script provided in the SRU test plan: + echo 'Number of SIGSEGV failures:' Number of SIGSEGV failures: + lxc exec php-fpm-segfault -- sh -c 'cat /var/log/php8.2-fpm.log | grep -c SIGSEGV' 5102 Which confirms the issue. When tryong to verify the fix, I go

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-11 Thread Athos Ribeiro
** Description changed: [ Impact ] Running fpm_get_status may result in a segmentation fault. [ Test Plan ] The following script is a reproducer for the described bug: #!/bin/bash set -eux trap cleanup EXIT - UBUNTU_SERIES=${UBUNTU_SERIIES:-mantic} + UBUNTU_SERIE

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-11 Thread Athos Ribeiro
FWIW, the regression tests were flaky or unrelated (re-trigger or migration-reference/0 got things passing again). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2057576 Title: php-fpm sometimes SIGS

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-11 Thread Athos Ribeiro
Thank you, Lars! I am about to prepare the SRUs for jammy and focal (the mantic one is already in proposed). Are you referring to the package in mantic- proposed (with the fix) or the package without the fix? i.e., is this relevant for the SRU verification? -- You received this bug notification

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-11 Thread Lars-Göran Karlstedt
Hi guys, thanks for pushing this forward. I've found another issue related to this but I'm still investigating so not sure yet what to make of it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2057576

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-10 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~athos-ribeiro/ubuntu/+source/php7.4/+git/php7.4/+merge/464010 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2057576 Title: php-fpm sometimes

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-10 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~athos-ribeiro/ubuntu/+source/php8.1/+git/php8.1/+merge/464008 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2057576 Title: php-fpm sometimes

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-04-05 Thread Timo Aaltonen
Hello Lars-Göran, or anyone else affected, Accepted php8.2 into mantic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/php8.2/8.2.10-2ubuntu2 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https:

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-27 Thread Athos Ribeiro
** Changed in: php8.2 (Ubuntu Mantic) Status: Triaged => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2057576 Title: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_s

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-27 Thread Athos Ribeiro
** Description changed: [ Impact ] Running fpm_get_status may result in a segmentation fault. [ Test Plan ] - WIP + The following script is a reproducer for the described bug: + + #!/bin/bash + + set -eux + + trap cleanup EXIT + + UBUNTU_SERIES=${UBUNTU_SERIIES:-mantic} + PHP_VE

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-26 Thread Athos Ribeiro
** Description changed: + [ Impact ] + + Running fpm_get_status may result in a segmentation fault. + + [ Test Plan ] + + WIP + + [ Where problems could occur ] + + The change in question is straightforward: + + We are replacing a string interpolation for a string literal because the + varia

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-26 Thread Launchpad Bug Tracker
** Merge proposal linked: https://code.launchpad.net/~athos-ribeiro/ubuntu/+source/php8.2/+git/php8.2/+merge/463141 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2057576 Title: php-fpm sometimes

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-25 Thread Athos Ribeiro
Thanks Lars, I will proceed with the SRUs then! This is fixed upstream in php-8.3.1, php-8.2.14, and php-8.1.27. Hence, this should be fixed in noble, but needs fixing in mantic, jammy, and focal. ** Also affects: php7.4 (Ubuntu Jammy) Importance: Undecided Status: New ** Also affects:

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-21 Thread Lars-Göran Karlstedt
Yeah no problem Athos, I feel like maybe you can take it from here. The official fix is not mine and I haven't even tested that one so I don't think I'm needed here. Thanks Athos. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https:/

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-20 Thread Athos Ribeiro
** Also affects: php7.4 (Ubuntu Focal) Importance: Undecided Status: New ** Also affects: php7.4 (Ubuntu Jammy) Importance: Undecided Status: New ** Also affects: php7.4 (Ubuntu Mantic) Importance: Undecided Status: New ** No longer affects: php7.4 (Ubuntu Jammy) *

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-19 Thread Athos Ribeiro
Hey Lars, I guess I missed you on IRC (sry). To answer your question, yes, since we do have an upstream patch available, it would be better to just go ahead and backport that one! Not that it is any better or than your own patch. It is just easier to deal with changes on the same file/function/lin

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-15 Thread Athos Ribeiro
Great! All we need for SRUs should be described in https://wiki.ubuntu.com/StableReleaseUpdates. We can start with filling the SRU bug template, as described in https://wiki.ubuntu.com/StableReleaseUpdates#SRU_Bug_Template. We want to re-write the bug description to include all those fields descr

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-15 Thread Lars-Göran Karlstedt
Yeah sure I can try if you're willing to help. I've tried to learn about how to work with .deb packages so I know the basics but I'll probably need some guidance. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.n

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-14 Thread Athos Ribeiro
Nice catch, Lars :) Apparently this had been around for a while and was fixed upstream a few months ago: https://github.com/php/php-src/commit/df259f88daaf7df5673fd78a0a1b76a1d831d0a2 Since you did all the work here so far, would you like to drive the SRU by providing debdiffs for mantic, jammy,

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-14 Thread Lars-Göran Karlstedt
I think I've found what causes the SIGSEGV, see line 59 in sapi/fpm/fpm/fpm_status.c: It uses scoreboard_p after it checks it for NULL 57scoreboard_p = fpm_scoreboard_acquire(NULL, 1); 58if (!scoreboard_p) { 59zlog(ZLOG_NOTICE, "[pool %s] status: scoreboard already

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-14 Thread Athos Ribeiro
** Changed in: php7.4 (Ubuntu) Status: New => Triaged ** Changed in: php7.4 (Ubuntu) Assignee: (unassigned) => Athos Ribeiro (athos-ribeiro) ** Tags added: server-todo -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-12 Thread Lars-Göran Karlstedt
I've tested on another 20.04.6 and I could reproduce it, here's what I did: place this php script somewhere accessible for web-server & php-fpm: http://localhost/status.php after a couple of seconds SIGSEGV warnings started to appear in the php- fpm log. ** Changed in: php7.4 (Ubuntu) S

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-12 Thread Athos Ribeiro
Hi Lars, Thanks for taking the time to report this bug and help making Ubuntu better. I suppose you are able to reproduce the issue constantly then? Would you mind providing a short (reliable) reproducer for the issue I could use to verify and investigate from a fresh Ubuntu 20.04 installation?

[Bug 2057576] Re: php-fpm sometimes SIGSEGVs (signal 11) when running fpm_get_status

2024-03-12 Thread Lars-Göran Karlstedt
** Description changed: Like the title says, we do run fpm_get_status a lot. We're trying to get metrics about our systems performance this way. lsb_release -rd: Description: Ubuntu 20.04.6 LTS Release: 20.04 - apt-cache policy pkgname + apt-cache policy php-fpm php-fpm: -