Skip to content

Conversation

@cole-h
Copy link
Member

@cole-h cole-h commented Feb 2, 2026

Motivation

Context

@coderabbitai
Copy link

coderabbitai bot commented Feb 2, 2026

Important

Review skipped

Draft detected.

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.

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

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch abort-on-logic-error

Important

Action Needed: IP Allowlist Update

If your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:

  • 136.113.208.247/32 (new)
  • 34.170.211.100/32
  • 35.222.179.152/32

Failure to add the new IP will result in interrupted reviews.


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

@cole-h cole-h force-pushed the abort-on-logic-error branch from a4c5e47 to f1a800e Compare February 2, 2026 20:59
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
@github-actions
Copy link

github-actions bot commented Feb 3, 2026

@github-actions github-actions bot temporarily deployed to pull request February 3, 2026 14:19 Inactive
Comment on lines +413 to +415
typedef void (*cxa_throw_type)(void *, void *, void (*) (void *));

void __cxa_throw(void * exc, void * tinfo_, void (*dest)(void *))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance the second argument could be declared std::type_info * instead of void *? That would make the tinfo / tinfo_ distinction unnecessary.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That changes the mangled name in a way that doesn't match the real __cxa_throw, so unfortunately it doesn't work.

@edolstra
Copy link
Collaborator

edolstra commented Feb 3, 2026

ld has a --wrap feature that could be used to wrap __cxa_throw, hopefully in a way that would also work on static builds. See https://linux.die.net/man/1/ld.

We're already using that for __assert_fail, see nix-meson-build-support/common/assert-fail.

However, I'm not sure if that will redirect references in shared libraries like libstdc++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants