Skip to content

macOS: MallocStackLogging: can't turn off malloc stack logging because it was not enabled. appears when running Codex v0.118.0 #17139

@sriinnu

Description

@sriinnu

What version of Codex CLI is running?

v0.118.0

What subscription do you have?

pro

Which model were you using?

gpt-5.4

What platform is your computer?

Darwin 24.6.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

Terminal.app

What issue are you seeing?

codex(3912) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.

What steps can reproduce the bug?

  1. Open Terminal.app on macOS
  2. Launch Codex
  3. Observe repeated log output:
    codex(...) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
    
  4. Leave Codex running for a short time
  5. Terminal becomes filled with the repeated warning messages

What is the expected behavior?

expected behavior: I shouldn't see the repeated flooding of the error.
Codex should not continuously emit malloc logging warnings during normal use.
If malloc stack logging is not enabled, Codex should not repeatedly attempt to disable it or surface this warning to the user.

Additional information

  • Version: v0.118.0

  • Platform: macOS

  • Running via: Terminal.app

  • Reproducibility: every launch

  • Restarting Codex does not fix it

  • Checked Terminal environment with:

    env | grep -i malloc

    No malloc-related environment variables were present.

This suggests the repeated warning is not caused by user-set shell environment variables such as MallocStackLogging or MallocStackLoggingNoCompact.

The issue appears to be caused by Codex or one of its macOS runtime components repeatedly attempting to disable malloc stack logging when it is not enabled.

Metadata

Metadata

Assignees

Labels

TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingregressionBehaviors that worked in previous versions but were broken due to an update

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions