Skip to content

malloc error on macOS Sequoia: pointer being freed was not allocated - crashes on login #727

Description

@motorthings

Summary:
LastPass CLI crashes immediately on login with a malloc error on macOS Sequoia 15.6.

Environment:

  • OS: macOS Sequoia 15.6 (Darwin 24.6.0)
  • Architecture: Apple Silicon (arm64)
  • LastPass CLI version: 1.6.1_2 (installed via Homebrew)
  • Installation method: brew install lastpass-cli

Steps to Reproduce:

  1. Install lastpass-cli via Homebrew: brew install lastpass-cli
  2. Run: lpass login <email>
  3. Observe immediate crash before password prompt

Expected Behavior:
The command should prompt for the master password and proceed with login.

Actual Behavior:
The command crashes immediately with a malloc error:
lpass(78847,0x1fbe220c0) malloc: *** error for object 0x600000000001: pointer being freed was not allocated
lpass(78847,0x1fbe220c0) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort lpass login motorthings@gmail.com

Additional Context:

  • The error occurs with both default execution and with LPASS_DISABLE_PINENTRY=1
  • All lpass commands appear to trigger the same malloc error
  • The issue prevents any use of the CLI

Related Issues:
Similar malloc errors have been reported on previous macOS versions:

This appears to be a continuation of the library compatibility issues on newer macOS versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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