Skip to content

pow%fix: prevent debug frame expansion due to inlining, add test to validate execution in 128KiB stack - #82

Merged
kwvg merged 3 commits into
dashpay:developfrom
kwvg:dbg_frames
Oct 22, 2026
Merged

kwvg merged 3 commits into
dashpay:developfrom
kwvg:dbg_frames

Conversation

@kwvg

@kwvg kwvg commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

Additional Information

Downstream consumers experienced crashes due to the stack frames expanding well beyond what is permitted for mobile platforms. It is a variant of the bug mentioned in rust-lang/rust#99111 that is triggered in debug builds. Clippy large_stack_frames can catch this but is still in nursery.

This pull request tackles the issue by disabling compulsory inlining in debug builds and restricts non-static tables to few enumerated exceptions.

Breaking Changes

None expected.

How Has This Been Tested?

just test lint and verification with consumer tests.

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional tests
  • I have made corresponding changes to the documentation
  • I did not use agentic assistance (i.e. LLMs, AI) except as disclosed and can answer questions, comments and concerns without said assistance. I assume authorship of the code submitted.
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

Agent disclosure

Code generated with Claude Code using Opus 5.5, medium effort. Reviewed with Claude Code using Opus 5.5, medium effort.

@kwvg kwvg added this to the 0.2 milestone Oct 22, 2026
@kwvg kwvg self-assigned this Oct 22, 2026
@kwvg kwvg added the tag:skip-review This pull request should not be reviewed agentically. label Oct 22, 2026
@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Excluded labels (none allowed): 1
  • tag:skip-review

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

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

Copy link
Copy Markdown

Note

This pull request has no conflicts! 🎊 🎉 🎊

@kwvg
kwvg merged commit addedfa into dashpay:develop Oct 22, 2026
19 of 20 checks passed
@kwvg kwvg changed the title pow%fix: prevent debug frame expansion due to debug builds, add test to validate execution in 128KiB stack pow%fix: prevent debug frame expansion due to inlining, add test to validate execution in 128KiB stack Oct 23, 2026
@kwvg kwvg moved this to Primitives in base-sdk v0.2 Oct 27, 2026
@kwvg kwvg moved this from Primitives to Crypto in base-sdk v0.2 Oct 27, 2026
@github-actions github-actions Bot added the topic:Crypto Pull requests that primarily concern the dash-{pkc,pow} crate. label Oct 27, 2026
@kwvg kwvg modified the milestones: 0.2, 0.1 Nov 6, 2026
@kwvg kwvg removed this from base-sdk v0.2 Nov 6, 2026
@kwvg kwvg moved this to Crypto in base-sdk v0.1 Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tag:skip-review This pull request should not be reviewed agentically. topic:Crypto Pull requests that primarily concern the dash-{pkc,pow} crate.

Projects

Status: Crypto

Development

Successfully merging this pull request may close these issues.

1 participant