Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js 20 Upgrade: Segmentation Fault Core Dump During Pipeline Lage Build Step #4514

Open
2 tasks done
Umesh-daiict opened this issue Dec 12, 2024 · 0 comments
Open
2 tasks done

Comments

@Umesh-daiict
Copy link

Node.js Version

20.15.0

NPM Version

10.7.0

Operating System

linux-gnu

Subsystem

Other

Description

We have tried multiple of above troubleshooting approaches but are still unable to resolve this issue. If anyone has encountered similar segmentation faults with Node.js 20 or has suggestions for further debugging, please share your thoughts.

  1. System Vitals Monitoring:
    ○ Monitored memory usage, agent configurations, and system vitals to identify any anomalies.
    ○ Found no indications of memory pressure or system resource limitations.
    2. Core Dump Analysis:
    ○ Installed Valgrind and a segfault handler to capture and analyze core dump logs.
    ○ Unfortunately, no meaningful insights were captured from the VM or agent machine logs.
    3. Node Version Update:
    ○ Verified and updated all Node.js native modules and dependencies for compatibility with Node.js 20.
    4. Heap Space Configuration:
    ○ Ensured no misconfigurations targeting the "new" space in the heap.
    ○ Adjusted heap settings with the following commands:
    node --max-old-space-size=8192 dist/server.js
    ○ Introduced the --max-semi-space-size parameter to configure the "new" space in the heap.
    5. Node Environment Cleanup:
    ○ Removed older versions of Node.js from the environment to prevent conflicts during pipeline execution.
    Any assistance or guidance would be appreciated. Please tag anyone relevant who can help us out.

Minimal Reproduction

  1. Use a Linux-based CI agent.
  2. Execute the following pipeline commands:
    yarn lage build bundle stage-deployment --concurrency 32
  3. Observe the segmentation fault during execution.

Output

We are encountering segmentation fault (core dump) when running our pipeline after upgrading to Node.js 20. This issue specifically arises during the execution of yarn lage build bundle steps on a Linux-based CI agent. The core dump logs do not provide sufficient insights into the root cause. This behaviour was not observed prior when running with Node.js 18, it's only been seen when we are trying to upgrade from Node 18.15.0 to Node 20.15.0

Before You Submit

  • I have looked for issues that already exist before submitting this
  • My issue follows the guidelines in the README file, and follows the 'How to ask a good question' guide at https://stackoverflow.com/help/how-to-ask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants