Skip to content

debuginfo: LLDB segfaults for some archives containing padding bytes at the end. #15950

Closed
@michaelwoerister

Description

@michaelwoerister

There's another bug in LLDB that causes it to segfault when reading archive files. This one has already been fixed in May (llvm-mirror/lldb@e7e7a50) but it still exists in a lot of LLDB binaries out there.

As far as I can tell, the bug occurs when a number of object files are stored in an archive and the last one ends at an uneven byte offset. This often seems to be the case for compressed byte-code archives in rlibs (maybe regular object files are always padded to an even size?).

I'm currently compiling a possible workaround (pad the bytecode objects to an even size). It would be good if we could allow for rust code to be debugged with older LLDB versions too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions