Skip to content

gimli-symbolize fails with compressed debug info #342

Description

@benesch

I've put together a full reproduction, with commentary, here: https://github.com/benesch/rust-zdebuginfo

The gist is that Rust generates an absolutely massive amount of debug info by default. (For a deep dive into why, see MaterializeInc/materialize#2691.) One easy workaround is to compress the debug info sections, which you can accomplish on Linux with a .cargo/config like the following:

rustflags = ["-C", "link-arg=-Wl,--compress-debug-sections=zlib-gabi"]

Unfortunately, with the new gimli-symbolizer feature, backtraces produced by such a binary fail to symbolicate, though the libbacktrace-based implementation handles them fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gimliRelated to the gimli implementation

    Type

    No type

    Fields

    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