Bug 2389183

Summary: nodejs20 --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: nodejs20-20.19.5-2.fc44 nodejs20-20.19.5-2.fc43 nodejs20-20.19.5-2.fc42 nodejs20-20.19.5-2.fc41 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-10-07 10:18:33 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:30:22 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 TomasJuhasz 2025-09-08 10:44:22 UTC
Patch with fix has been merged to rawhide and will be part of the next build.

Comment 2 Fedora Update System 2025-09-16 15:40:31 UTC
FEDORA-2025-2bde94babb (nodejs20-20.19.5-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-2bde94babb

Comment 3 Fedora Update System 2025-09-17 10:57:31 UTC
FEDORA-2025-8808941188 (nodejs20-20.19.5-2.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-8808941188

Comment 4 Fedora Update System 2025-09-17 10:57:36 UTC
FEDORA-2025-772714fcfc (nodejs20-20.19.5-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-772714fcfc

Comment 5 Fedora Update System 2025-09-17 10:57:40 UTC
FEDORA-2025-e93b5b8ea1 (nodejs20-20.19.5-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-e93b5b8ea1

Comment 6 Fedora Update System 2025-09-18 01:49:22 UTC
FEDORA-2025-8808941188 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-8808941188`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-8808941188

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

Comment 7 Fedora Update System 2025-09-18 02:15:22 UTC
FEDORA-2025-772714fcfc 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-772714fcfc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-772714fcfc

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

Comment 8 Fedora Update System 2025-09-18 02:50:38 UTC
FEDORA-2025-e93b5b8ea1 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-e93b5b8ea1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-e93b5b8ea1

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

Comment 9 Fedora Update System 2025-10-07 10:18:33 UTC
FEDORA-2025-2bde94babb (nodejs20-20.19.5-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 10 Fedora Update System 2025-10-07 13:49:44 UTC
FEDORA-2025-8808941188 (nodejs20-20.19.5-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-10-08 01:01:10 UTC
FEDORA-2025-772714fcfc (nodejs20-20.19.5-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2025-10-08 01:15:39 UTC
FEDORA-2025-e93b5b8ea1 (nodejs20-20.19.5-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.