Skip to content

Fix ulimit/core_pattern for Ubuntu 20+ hosts - #4462

Merged
steelhead31 merged 2 commits into
adoptium:masterfrom
steelhead31:fix_issue_4461
Jul 21, 2026
Merged

steelhead31 merged 2 commits into
adoptium:masterfrom
steelhead31:fix_issue_4461

Conversation

@steelhead31

@steelhead31 steelhead31 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Fixes #4461

Fix is required to both static docker nodes, and regular machines..

  • adopt_syscfg: override kernel.core_pattern from apport pipe handler to 'core.%p' for Ubuntu 22+ (any architecture), mirroring the existing RHEL 8 fix
  • Jenkins_User: add soft+hard limits.conf entries for core, nofile and nproc for Ubuntu 22+ (any architecture); the existing block only covered RedHat/CentOS 6-7 on x86_64

Fixes CreateCoredumpOnCrash JDK test failure where the apport pipe handler caused the test to throw regardless of ulimit -c value.

Checklist

VPC Completed OK: https://ci.adoptium.net/job/VagrantPlaybookCheck/2291/

Playbooks Complete Locally OK: ( with adoptopenjdk tags.. )

PLAY RECAP ************************************************************************************************************************************************
localhost                  : ok=309  changed=97   unreachable=0    failed=0    skipped=547  rescued=0    ignored=0   

root@adoptopenjdkU24:/vagrant# 

On Ubuntu 22+, kernel.core_pattern defaults to the apport pipe handler
(|/usr/share/apport/apport ...). The JDK CreateCoredumpOnCrash test
rejects any pipe-based handler at the process level, causing the test
to throw regardless of the ulimit -c value set in the shell.

Two roles updated, both conditioned on Ubuntu 22+ with no architecture
restriction so all arches (x86_64, aarch64, ppc64le, s390x, riscv64)
are covered:

adopt_syscfg: override kernel.core_pattern to 'core.%p' via sysctl,
mirroring the existing fix already applied for RedHat 8.

Jenkins_User: add soft and hard limits.conf entries for core, nofile
and nproc. The existing block only covered RedHat/CentOS 6-7 on
x86_64 and only set hard limits; soft limits are also required as
processes inherit the soft limit unless they explicitly raise it.

Co-authored-by: IBM Bob <no-reply@ibm.com>
@steelhead31
steelhead31 marked this pull request as ready for review July 21, 2026 09:18

@andrew-m-leonard andrew-m-leonard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@steelhead31
steelhead31 requested a review from Haroon-Khel July 21, 2026 09:19
@steelhead31 steelhead31 changed the title Fix ulimit/core_pattern for Ubuntu 22+ hosts Fix ulimit/core_pattern for Ubuntu 20+ hosts Jul 21, 2026
@steelhead31
steelhead31 merged commit cf91e74 into adoptium:master Jul 21, 2026
20 checks passed
@steelhead31
steelhead31 deleted the fix_issue_4461 branch July 21, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plinux and x64_linux nodes needing ulimit updates for test runtime/ErrorHandling/CreateCoredumpOnCrash.java

3 participants