Skip to content

fix(server): claim the GNU C++ runtime at engine startup (#2720 to stage) - #2735

Merged
stepmikhaylov merged 1 commit into
stagefrom
fix/RR-2676-libstdcxx-claim-stage
Oct 20, 2026
Merged

stepmikhaylov merged 1 commit into
stagefrom
fix/RR-2676-libstdcxx-claim-stage

Conversation

@stepmikhaylov

@stepmikhaylov stepmikhaylov commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Stage side of #2720

A task running parse beside a node that imports torch died at start with SIGSEGV
at 0x20 in libstdc++: Tika's prebuilt lib7-Zip-JBinding.so carries a statically
linked GCC libstdc++ whose GNU-unique locale facet ids bind process-wide to the
first definer, so loaded into a libc++ engine it renumbered the system runtime's
facet table and the next std::ostream to format a number reached a facet that was
not there.

plat::lin::init() now claims libstdc++.so.6 with RTLD_GLOBAL, beside the Crashpad
registration and for the same reason. One runtime owns the ids and a bundled copy
arriving later is inert. Fails open where the library is absent, since a host
without it cannot load GCC-built code either.

Linux only. Costs 0.86 MB resident, shared and file-backed, and 0.42 ms once per
process.

Fixes #2676

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
(cherry picked from commit 074c316)
@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 2
  • develop
  • release/.*

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: rocketride-org/rocketride-server/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 7110790b-db02-47ec-90d7-59335b15b9c2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the module:server C++ engine and server components label Oct 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor
🤖 Internal: Discord sync marker

Auto-managed by the Discord notification workflow. Stores the linked Discord message ID and forum thread ID. Do not edit or delete.

@stepmikhaylov
stepmikhaylov enabled auto-merge (squash) October 20, 2026 16:00
@stepmikhaylov
stepmikhaylov merged commit 28eb033 into stage Oct 20, 2026
@stepmikhaylov
stepmikhaylov deleted the fix/RR-2676-libstdcxx-claim-stage branch October 20, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:server C++ engine and server components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants