Skip to content

src: add missing <cstdlib> for abort() declaration#63001

Open
ckerr wants to merge 1 commit intonodejs:mainfrom
ckerr:fix/missing-includes-builtin_info.cc
Open

src: add missing <cstdlib> for abort() declaration#63001
ckerr wants to merge 1 commit intonodejs:mainfrom
ckerr:fix/missing-includes-builtin_info.cc

Conversation

@ckerr
Copy link
Copy Markdown
Contributor

@ckerr ckerr commented Apr 28, 2026

Small PR to add #include <cstdlib> in src/builtin_info.cc because it uses abort().

This has been compiling up until now because abort() got picked up by a transitive declaration from another header. I noticed this when it broke in Electron today when we rolled our LLVM libc++ snapshot. Looks like LLVM libc++ cleaned up the transitive include that made this work for Electron before.

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Apr 28, 2026
Comment thread src/builtin_info.cc
builtin_info.cc calls `abort()` but didn't call `<cstdlib>` to pick up
its declaration.

This has been working because `abort()` got picked up by a transitive
declaration from another header, but it broke in Electron when we
rolled our LLVM libc++ snapshot from commit 8e870711923 to 9aaa9a2ee87.

Signed-off-by: Charles Kerr <charles@charleskerr.com>
@ckerr ckerr force-pushed the fix/missing-includes-builtin_info.cc branch from 1f578c7 to d5ad888 Compare April 28, 2026 04:34
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.65%. Comparing base (4e3a873) to head (d5ad888).
⚠️ Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
src/builtin_info.cc 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #63001      +/-   ##
==========================================
- Coverage   91.47%   89.65%   -1.83%     
==========================================
  Files         357      707     +350     
  Lines      150883   219509   +68626     
  Branches    23778    42084   +18306     
==========================================
+ Hits       138026   196809   +58783     
- Misses      12582    14588    +2006     
- Partials      275     8112    +7837     
Files with missing lines Coverage Δ
src/builtin_info.cc 0.00% <0.00%> (ø)

... and 470 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@richardlau richardlau added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 28, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 28, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Comment thread src/builtin_info.cc
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@RaisinTen RaisinTen added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue Add this label to land a pull request using GitHub Actions. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants