Problem/Motivation

https://pecl.php.net/package/APCu/5.1.25
- The apc.shm_segments ini option has been removed. Multiple SHM segments are no longer
supported. (They were already not supported when using mmap, which is the default mode of
operation)

However, the APCu check for 32MB in Drupal since https://www.drupal.org/project/drupal/issues/3466399 is referencing the segments INI value. But because it now returns false it will calculate an actual size of 0 and always display the warning that you need to set to 32MB or above.

Steps to reproduce

Update to APCu 5.1.25
Head to status report
Warning always appears

Proposed resolution

Check for segment count ini returning false and assume 1 if it does as it now always 1 in APCu 5.1.25

Remaining tasks

-

User interface changes

-

Introduced terminology

-

API changes

-

Data model changes

-

Release notes snippet

-

Issue fork drupal-3538854

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

driskell created an issue. See original summary.

cilefen’s picture

Version: 10.4.x-dev » 11.x-dev
Component: install system » system.module
andypost’s picture

The related issue already commited but it's not enough so probably the issue is complimentary to #3539331: Skip failing test with incorrect warning for system requirements about APCu memory

dww’s picture

Indeed, the other issue started as a critical due to repeated test fails on HEAD. We committed a stop-gap to skip that part of the test. There’s now an MR there to fix the status report, too, that needs review. But probably best for scope management and history to move that MR here and close that one as the hot-fix-the-tests issue it started as.

dww’s picture

Assigned: Unassigned » dww

I’ll work on moving over the code and cleaning up the other issue, stay tuned.

dww credited godotislate.

dww’s picture

Assigned: dww » Unassigned
Status: Active » Needs review

Opened MR here, with the code from https://git.drupalcode.org/issue/drupal-3539331/-/tree/3539331-fallback-...

Since both myself and @godotislate worked on that MR, adding credit for them, too.

dww’s picture

Issue tags: +Bug Smash Initiative

Tagging to be smashed.

Also, crediting @driskell for the clear bug report with correct analysis of the bug and accurate proposed resolution. Had @godotislate and I seen this issue while we were scrambling to fix #3539331: Skip failing test with incorrect warning for system requirements about APCu memory it would have saved some time, since we had to debug why the status report thought 3GB < 32MB and only with a little debugging output did we discover apc.shm_segments was 0 and then search to find it had been removed upstream. 😅

Pipeline here is mostly green, except for the dreaded package_manager build test fails. 😬 Queued that one to re-run. But this should be ready for review (and hopefully RTBC) now.

Thanks,
-Derek

berdir’s picture

Status: Needs review » Reviewed & tested by the community

Change looks good to me, monitoring project got hit by this as well but worse (division by zero error). Not related to this issue directly, just similar code.

andres.torres’s picture

Hi all!

Just wondering if this issue will be back-ported to D 10.5+ since Im experiencing the same problem.

Thanks in advance for the hard work!

  • alexpott committed 60782706 on 11.x
    Issue #3538854 by dww, driskell, andypost, godotislate: APCu requirement...
alexpott’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

Committed 6078270 and pushed to 11.x. Thanks!

We need an MR for 11.2.x - things have moved around a lot because hook stuff. ONce we have this in 11.2.x then yes we should get this in 10.6.x and 10.5.x too...

dww’s picture

Assigned: Unassigned » dww

Great, thanks! I'll work on a backport MR right now. Stay tuned.

dww’s picture

Version: 11.x-dev » 11.2.x-dev
Assigned: dww » Unassigned
Status: Patch (to be ported) » Needs review

Yeah, this didn't apply at all. Had to re-implement it in system.install (different indentation, etc, etc).

https://git.drupalcode.org/project/drupal/-/merge_requests/12988 for 11.2.x and lower.

https://git.drupalcode.org/issue/drupal-3538854/-/pipelines/572272 is basically looking good. I assume we ignore the PHP 8.5 phpunit deprecation warnings for these backport MRs, right?

Back to NR. Probably worth another set of eyes to look at this before the backport is RTBC.

andypost’s picture

Status: Needs review » Reviewed & tested by the community

thank you!

EDIT 8.5 is supposed to fail, fixes in #3523596: [meta] PHP 8.5 support

needs-review-queue-bot’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new91 bytes

The Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".

This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

dww’s picture

Status: Needs work » Reviewed & tested by the community
Issue tags: +no-needs-review-bot
alexpott’s picture

Version: 11.2.x-dev » 10.5.x-dev
Status: Reviewed & tested by the community » Fixed

Committed da29801 and pushed to 11.2.x. Thanks!
Committed and pushed 265731eb2b7 to 10.6.x and 392338a899e to 10.5.x. Thanks!

I did a cherry pick back to 10.x and fixed up the tiny conflict on commit.

  • alexpott committed 392338a8 on 10.5.x
    Issue #3538854 by dww, driskell, andypost, godotislate: APCu requirement...

  • alexpott committed 265731eb on 10.6.x
    Issue #3538854 by dww, driskell, andypost, godotislate: APCu requirement...
dww’s picture

Thanks! Doesn't look like you actually pushed the commit to 11.2.x. This issue doesn't show it, nor do I see it in Git.

dww’s picture

Version: 10.5.x-dev » 11.2.x-dev
Assigned: Unassigned » alexpott
Status: Fixed » Reviewed & tested by the community

  • alexpott committed b0385095 on 11.2.x
    Issue #3538854 by dww, driskell, andypost, godotislate: APCu requirement...
alexpott’s picture

Assigned: alexpott » Unassigned
Status: Reviewed & tested by the community » Fixed
dww’s picture

Version: 11.2.x-dev » 10.5.x-dev

Sweet, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.