Skip to content

Segmentation fault in actions-runner 2.331.0 on Rocky Linux 9.7 #4197

Open

Description

@daniel-widrick

Describe the bug
When attempting to run ephemeral GitHub Actions runners using the ghcr.io/actions/actions-runner:2.331.0 image on Rocky Linux 9.7 hosts, the runner immediately crashes with a segmentation fault (core dumped). Reverting to 2.330.0 resolves the issue.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy gha-runner-scale-set-controller:0.13.1 in a Kubernetes cluster.
  2. Launch ephemeral runner pods using ghcr.io/actions/actions-runner:2.331.0.
  3. Observe runner pod logs:
[RUNNER 2026-01-14 16:09:02Z INFO RunnerServer] Establish connection with 100 seconds timeout.
[RUNNER 2026-01-14 16:09:02Z INFO GitHubActionsService] Starting operation Location.GetConnectionData
/home/runner/run-helper.sh: line 36:    14 Segmentation fault      (core dumped) "$DIR"/bin/Runner.Listener run $*
Exiting with unknown error code: 139
Exiting runner...

Expected behavior
Runner should start and connect to GitHub without crashing

Runner Version and Platform

2.331.0

Host OS: Rocky Linux 9.7

Kernel flags: fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm constant_tsc nopl xtopology cpuid tsc_known_freq pni ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes hypervisor lahf_lm cpuid_fault pti

What's not working?

dmesg from host:

[  261.559979] .NET TP Worker[46774]: segfault at 20 ip 00007f97827e5b5c sp 00007f9709294110 error 4 in libssl.so.3[7f97827cc000+62000] likely on CPU 2
[  261.585173] .NET TP Worker[46792]: segfault at 20 ip 00007f5cd640fb5c sp 00007f5c56ff9110 error 4 in libssl.so.3[7f5cd63f6000+62000] likely on CPU 0

Activity

  1. added
    bug
    on Jan 14, 2026
  2. TingluoHuang commented on Jan 14, 2026

    @TingluoHuang
    Member

    We have to upgrade to ubuntu:24.04 as our base image, my guess is that's not compat with your Kubernetes
    #4018

  3. atmcarmo commented on Jan 29, 2026

    @atmcarmo

    Can confirm that I'm having the same issue with a host based on Amazon Linux 2023.

  4. atmcarmo commented on Mar 14, 2026

    @atmcarmo

    I can help with some workarounds.

    The issue looks to be related with hosts with FIPS mode enabled. This might have some incompatibility with github actions runners based on Ubuntu 24.

    So I think we might have two options:

    • Disable fips mode for openssl in the runner by setting OPENSSL_FORCE_FIPS_MODE to 0.
    • Consider installing openssl-fips-module-3 on the runner.
  5. daniel-widrick commented on Mar 14, 2026

    @daniel-widrick
    Author
    * Disable fips mode for openssl in the runner by setting `OPENSSL_FORCE_FIPS_MODE` to `0`.
    

    It would definitely simplify a lot of things in the world... but FIPS is critical to compliance in several sectors.

  6. jacob-kuder commented on May 13, 2026

    @jacob-kuder

    Any update on where we stand with this? We are also seeing issues with this on AL2023 backed AMIs/EKS nodes with our setup.

  7. LockedThread commented on Sep 16, 2026

    @LockedThread

    I can help with some workarounds.

    The issue looks to be related with hosts with FIPS mode enabled. This might have some incompatibility with github actions runners based on Ubuntu 24.

    So I think we might have two options:

    * Disable fips mode for openssl in the runner by setting `OPENSSL_FORCE_FIPS_MODE` to `0`.
    
    * Consider installing `openssl-fips-module-3` on the runner.
    

    This is a huge problem, especially because 2.330.0 is no longer supported.

  8. LockedThread commented on Sep 16, 2026

    @LockedThread

    I think this error might actually be related to dotnet/runtime#122538. I am looking into it now.

  9. LockedThread commented on Sep 16, 2026

    @LockedThread

    I was able to reproduce this and narrow it down.

    This appears to be the same failure mode described in dotnet/runtime#122538: .NET’s OpenSSL initialization can dereference a NULL SSL_CTX when OpenSSL provider/configuration initialization fails. Since the OP does not say if they are using FIPS, Icannot say if this is the same exact issue, however if you are using FIPS you may have simply forgotten to validate that your FIPS openssl package was installed and configured properly. A simple way to do this is to make a docker image based on the upstream runner image and simply use Ubuntu Pro to install the FIPS validated packages, which is what I highlight below as my answer.

    Environment:

    • Actions runner 2.337.0 (the failure also occurred with 2.331.0)
    • Ubuntu 24.04 Kata/Firecracker guest under KVM
    • Host kernel: 6.8.0-139-fips
    • Kata guest kernel: 6.18.35, booted with fips=1

    The crash dump faulting thread was:

    libssl.so.3!SSL_CTX_set_cipher_list
    libSystem.Security.Cryptography.Native.OpenSsl.so!
      CryptoNative_EnsureLibSslInitialized
    System.Net.Security!SslStreamPal.HandshakeInternal
    System.Net.Http!ConnectHelper.EstablishSslConnectionAsync
    

    The fault address was 0x20, and the runner exited with code 139.
    Initially, the guest reported FIPS mode enabled, but the OpenSSL provider was missing:

    Default FIPS properties enabled: 1
    fips.so missing
    SSL_CTX_new: NULL
    probe_exit_status=3
    

    This is consistent with Canonical’s Noble-container bug: enabling fips-updates does not automatically install openssl-fips-module-3:
    canonical/ubuntu-pro-client#3487
    The fix was to explicitly install the provider package in the image:

    pro attach --attach-config /run/secrets/pro-attach-config
    pro enable fips-updates --assume-yes || \
      pro status | grep -Eq \
        'fips-updates[[:space:]]+yes[[:space:]]+enabled'
    
    apt-get update
    apt-get install -y openssl-fips-module-3
    

    The resulting image contained:

    openssl-fips-module-3 3.0.13-0ubuntu3.15+Fips1
    /usr/lib/x86_64-linux-gnu/ossl-modules/fips.so
    

    The diagnostic then succeeded:

    SSL_CTX_new: SUCCESS
    SSL_CTX_set_cipher_list(ALL): 1
    probe_exit_status=0
    

    openssl list -providers showed the active Ubuntu 24.04 OpenSSL Cryptographic Module. A runner using this image connected to GitHub and reached:

    Connected to GitHub
    Current runner version: '2.337.0'
    Listening for Jobs
    

    with no segmentation fault.

    The immediate cause appears to be an OpenSSL FIPS configuration in which the FIPS provider was requested but fips.so was absent. It is my understanding that runner uses .NET 8.0 which does not have the upstream fix to provide a useful OpenSSL configuration/provider error instead of dereferencing NULL, as proposed in dotnet/runtime#122538.

  10. LockedThread commented on Sep 22, 2026

    @LockedThread

    @daniel-widrick Does the solution I provided fix your problem?

  11. daniel-widrick commented on Sep 23, 2026

    @daniel-widrick
    Author

    @daniel-widrick Does the solution I provided fix your problem?

    We unfortunately, decided to leave the GHE platform. I'm unable to verify if the fix would have helped our environment.. but it does sound promising.

    I'll see if my notes or any of our dangling VMs might provide any more insight if I get a chance.

  12. daniel-widrick commented on Sep 23, 2026

    @daniel-widrick
    Author

    Proposed fix appears to work when tested on the dangling infra we have left laying around. Root cause appears to be the missing tips provider in the 24.04 base image.

    Of note.. we also tested without pro via the upstream openssl provider. That appears to work as well but would likely raise eyebrows in our compliance department of yore.

  13. LockedThread commented on Sep 23, 2026

    @LockedThread

    Proposed fix appears to work when tested on the dangling infra we have left laying around. Root cause appears to be the missing tips provider in the 24.04 base image.

    Of note.. we also tested without pro via the upstream openssl provider. That appears to work as well but would likely raise eyebrows in our compliance department of yore.

    That's very interesting. In that case, I think this issue could be considered user error caused by incorrect downstream error handling (.NET Runtime seg faulting when openssl configs fail).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions