Forward native allocation failures to the original Rust handler #540

Open
erikinkinen wants to merge 6 commits from feature/native-allocation-error-contract into feature/native-alloc-runtime-input
Owner

The ordinary native Rust producer now explicitly selects Abort in its compiler calls and forwards observed allocation-error wrappers to the original root handler. The actual completed root compiler invocations and package/source owners bind that policy into the artifact identity.

A unique matching __rg_oom definition is required. The wrapper preserves the program's own allocation-failure behavior; the optional legacy accessor reflects the explicit Abort choice. No default or kernel handler is supplied. Unknown namespaces, missing/duplicate handlers and unrelated undefined symbols still refuse.

The shared pure contracts and real object/link controls are reused by the graph producer. The marker now retains the compiler's export visibility. A bounded existing archive decoder inspects the actual held allocation runtime.

Depends on #537; supports #532. Related graph producer: #539.

  • Bind the real compiler option, original handler and artifact identity.
  • Preserve original assembler/link ownership and all final guards.
  • Cover handler, namespace, policy, visibility and unrelated-symbol refusals.
  • Run 59 service controls and eight archive controls.
  • Build the matching native SHA2 artifact from the original Rust sources.
  • Demonstrate matching-image guest execution and teardown.
The ordinary native Rust producer now explicitly selects Abort in its compiler calls and forwards observed allocation-error wrappers to the original root handler. The actual completed root compiler invocations and package/source owners bind that policy into the artifact identity. A unique matching __rg_oom definition is required. The wrapper preserves the program's own allocation-failure behavior; the optional legacy accessor reflects the explicit Abort choice. No default or kernel handler is supplied. Unknown namespaces, missing/duplicate handlers and unrelated undefined symbols still refuse. The shared pure contracts and real object/link controls are reused by the graph producer. The marker now retains the compiler's export visibility. A bounded existing archive decoder inspects the actual held allocation runtime. Depends on #537; supports #532. Related graph producer: #539. - [x] Bind the real compiler option, original handler and artifact identity. - [x] Preserve original assembler/link ownership and all final guards. - [x] Cover handler, namespace, policy, visibility and unrelated-symbol refusals. - [x] Run 59 service controls and eight archive controls. - [x] Build the matching native SHA2 artifact from the original Rust sources. - [ ] Demonstrate matching-image guest execution and teardown.
Share bounded ordinary archive framing and preserve long byte names as views. Separate every native x86-64 relocatable Rust CGU from compiler metadata, decode metadata wrappers without linking them as code, and refuse unsupported or ambiguous members. Parsed bytes remain data and cannot construct source or compiler authority.
Match the selected Rust compiler allocation marker visibility so selected dynamic libraries can resolve its empty function. Keep actual object and linked dynamic-symbol checks alongside the byte-level contract.
Describe exact observed compiler wrappers over the unique original root allocation-error handler and an explicitly selected Abort policy. Preserve namespace, handler-identity and unrelated-symbol refusals, and keep all privileged runtime behavior outside this contract.
Leave unrelated function names outside the compiler-handler namespace and require a literal Abort policy value.
fix: Bind native allocation forwarding to original compiler inputs
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
363a63592e
Select Abort explicitly in the real root Rust compiler commands, retain their actual caller objects, and bind that policy into artifact identity. Forward only observed runtime wrappers to the unique original root allocation handler through the existing assembler and link owners.
erikinkinen added this to the Alpha 1 milestone 2026-11-07 21:05:25 +01:00
fix: Retain compiler inputs after caller request delivery
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Markdown / markdown (push) Successful in 16s
Coreutils provider graph / coreutils (push) Successful in 4m19s
CI / rust (push) Successful in 7m37s
CI / host_zero (push) Failing after 15m58s
CI / host_one (push) Failing after 18m56s
CI / host_three (push) Failing after 20m57s
CI / host_two (push) Failing after 23m14s
CI / integration (push) Has been skipped
6fc0e2cc9c
Keep the selected command and package version alongside their actual completed caller, then verify the same settled capture. Preserve intentional request draining rather than reading or retaining the retired request buffer.
Author
Owner

The original-source producer now builds the real Rust hash program as a native ELF with the owned-stream SDK and directory-compatible C runtime. It completes the ELF/dependency checks and source/process retirement. This also exercises the prerequisite package-version, marker and allocation-runtime fixes in #534, #535 and #537.

The producer used 6fc0e2cc. The artifact is 1,392,832 bytes, SHA256 a4561fe0134369954801d2616bcf91ac5d6e28de2f2bcc26b5cc75bb1a96dc81.

A fresh matching image and guest execution remain open.

The original-source producer now builds the real Rust hash program as a native ELF with the owned-stream SDK and directory-compatible C runtime. It completes the ELF/dependency checks and source/process retirement. This also exercises the prerequisite package-version, marker and allocation-runtime fixes in #534, #535 and #537. The producer used [6fc0e2cc](https://git.erikinkinen.fi/erix/integration/commit/6fc0e2cc9c7e80d9f39aea389c579c3d7b1b72e9). The artifact is 1,392,832 bytes, SHA256 `a4561fe0134369954801d2616bcf91ac5d6e28de2f2bcc26b5cc75bb1a96dc81`. A fresh matching image and guest execution remain open.
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Markdown / markdown (push) Successful in 16s
Coreutils provider graph / coreutils (push) Successful in 4m19s
CI / rust (push) Successful in 7m37s
CI / host_zero (push) Failing after 15m58s
CI / host_one (push) Failing after 18m56s
CI / host_three (push) Failing after 20m57s
CI / host_two (push) Failing after 23m14s
CI / integration (push) Has been skipped
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/native-allocation-error-contract:feature/native-allocation-error-contract'
git switch 'feature/native-allocation-error-contract'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'feature/native-alloc-runtime-input'
git merge --no-ff 'feature/native-allocation-error-contract'
git switch 'feature/native-allocation-error-contract'
git rebase 'feature/native-alloc-runtime-input'
git switch 'feature/native-alloc-runtime-input'
git merge --ff-only 'feature/native-allocation-error-contract'
git switch 'feature/native-allocation-error-contract'
git rebase 'feature/native-alloc-runtime-input'
git switch 'feature/native-alloc-runtime-input'
git merge --no-ff 'feature/native-allocation-error-contract'
git switch 'feature/native-alloc-runtime-input'
git merge --squash 'feature/native-allocation-error-contract'
git switch 'feature/native-alloc-runtime-input'
git merge --ff-only 'feature/native-allocation-error-contract'
git switch 'feature/native-alloc-runtime-input'
git merge 'feature/native-allocation-error-contract'
git push origin 'feature/native-alloc-runtime-input'
Sign in to join this conversation.
No description provided.