Closed
Description
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.