Bug 2389182

Summary: nodejs22 --force-fips -p 'crypto.getFips()' causes segfault
Product: [Fedora] Fedora Reporter: TomasJuhasz <tjuhasz>
Component: nodejs20Assignee: TomasJuhasz <tjuhasz>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: aradchen, jstanek, sgallagh, tjuhasz
Target Milestone: ---Flags: tjuhasz: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-09-02 14:11:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description TomasJuhasz 2025-08-18 13:27:40 UTC
node --force-fips -p 'crypto.getFips()' causes segfault, this is due to a missing previously used patch (https://gitlab.com/redhat/centos-stream/rpms/nodejs/-/blob/stream-nodejs-18-rhel-8.10.0/nodejs-fips-disable-options.patch?ref_type=heads).





Reproducible: Always

Steps to Reproduce:
1. node --force-fips -p 'crypto.getFips()'
2.
3.
Actual Results:

  #  node[2002]: std::shared_ptr<node::InitializationResultImpl> node::InitializeOncePerProcessInternal(const std::vector<std::__cxx11::basic_string<char> >&, ProcessInitializationFlags::Flags) at ../../src/node.cc:1235
  #  Assertion failed: ncrypto::CSPRNG(nullptr, 0)

----- Native stack trace -----

 1: 0x7f4d6a214957 node::Assert(node::AssertionInfo const&) [/lib64/libnode.so.127]
 2: 0x7f4d6a1db128  [/lib64/libnode.so.127]
 3: 0x7f4d6a1dc4dc node::Start(int, char**) [/lib64/libnode.so.127]
 4: 0x7f4d69e105b5  [/lib64/libc.so.6]
 5: 0x7f4d69e10668 __libc_start_main [/lib64/libc.so.6]
 6: 0x561442566035 _start [node]
Aborted                    (core dumped) node --force-fips -p 'crypto.getFips()'

Comment 1 Fedora Update System 2025-09-02 13:31:49 UTC
FEDORA-2025-cb128a3232 (nodejs22-22.19.0-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-cb128a3232

Comment 2 Fedora Update System 2025-09-02 13:39:57 UTC
FEDORA-2025-9549b0b4cb (nodejs22-22.19.0-2.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-9549b0b4cb

Comment 3 Fedora Update System 2025-09-02 13:40:01 UTC
FEDORA-2025-f018a2bb8a (nodejs22-22.19.0-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-f018a2bb8a

Comment 4 Fedora Update System 2025-09-02 13:40:04 UTC
FEDORA-2025-f11a9e8a8e (nodejs22-22.19.0-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-f11a9e8a8e

Comment 5 Fedora Update System 2025-09-02 14:11:01 UTC
FEDORA-2025-cb128a3232 (nodejs22-22.19.0-2.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2025-09-03 00:51:07 UTC
FEDORA-2025-f018a2bb8a has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-f018a2bb8a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-f018a2bb8a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2025-09-03 01:14:05 UTC
FEDORA-2025-9549b0b4cb has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-9549b0b4cb`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-9549b0b4cb

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2025-09-03 01:31:48 UTC
FEDORA-2025-f11a9e8a8e has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-f11a9e8a8e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-f11a9e8a8e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2025-09-11 01:19:12 UTC
FEDORA-2025-f11a9e8a8e (nodejs22-22.19.0-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2025-09-12 19:27:10 UTC
FEDORA-2025-9549b0b4cb (nodejs22-22.19.0-2.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2025-09-18 00:56:07 UTC
FEDORA-2025-f018a2bb8a (nodejs22-22.19.0-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.