Skip to content

lldb process save-core will accept anything for the plugin name and silently produce a minidump #142581

Closed
@DavidSpickett

Description

@DavidSpickett

The following does not error:

(lldb) process save-core --plugin-name=notaplugin dump

Modified-memory or stack-memory only corefile created.  This corefile may 
not show library/framework/app binaries on a different system, or when 
those binaries have been updated/modified. Copies are not included
in this corefile.  Use --style full to include all process memory.

But produces a minidump instead:

$ file dump
dump: Mini DuMP crash report, 15 streams, Tue Jun  3 10:51:32 2025, 0 type
  1. This command should error, ideally with "and here are the valid plugins you could have chosen".
  2. The command should print something to tell you what format of core file was written. Whether you got the plugin name correct or not.

Many people will assume it's the native format of their platform, but it's not, at least not right now. I don't get an ELF core on Linux for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions