Skip to content

fix(process-hardening): preserve macos malloc diagnostics#24479

Merged
fcoury-oai merged 1 commit into
mainfrom
fcoury/preserve-malloc-diagnostics
May 25, 2026
Merged

fix(process-hardening): preserve macos malloc diagnostics#24479
fcoury-oai merged 1 commit into
mainfrom
fcoury/preserve-malloc-diagnostics

Conversation

@fcoury-oai

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #24459 and partial behavioral revert of a71fc47 / #16699.

  • Stop removing MallocStackLogging* and MallocLogFile* from macOS pre-main hardening.
  • Remove documentation that claims Codex suppresses those allocator diagnostic controls.
  • Retain the shared remove_env_vars_with_prefix refactor and existing LD_ / DYLD_ hardening.

Why

#24459 fixes the composer-corruption problem at the terminal stderr boundary while preserving redirected stderr. With that guard in place, stripping macOS malloc diagnostic settings is unnecessary and can hide diagnostics intentionally enabled by callers.

Validation

  • just fmt
  • just test -p codex-process-hardening
  • just argument-comment-lint-from-source -p codex-process-hardening
  • git diff --check

@fcoury-oai fcoury-oai merged commit 8a94430 into main May 25, 2026
31 checks passed
@fcoury-oai fcoury-oai deleted the fcoury/preserve-malloc-diagnostics branch May 25, 2026 20:26
@github-actions github-actions Bot locked and limited conversation to collaborators May 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants