backtrace-rs icon indicating copy to clipboard operation
backtrace-rs copied to clipboard

RFE: support compressed symbol tables in `.gnu_debugdata`

Open cuviper opened this issue 3 years ago • 3 comments

(from https://github.com/rust-lang/backtrace-rs/issues/410#issuecomment-832871699)

It would be really nice to see support for .gnu_debugdata, which contains compressed symbol tables. For example, the elfutils command eu-readelf --elf-section -s file... can read this.

https://fedoraproject.org/wiki/Features/MiniDebugInfo https://sourceware.org/gdb/onlinedocs/gdb/MiniDebugInfo.html

cuviper avatar Jun 18 '21 16:06 cuviper

This will need an LZMA decoder, probably the xz2 crate? Should this be a new cargo feature, or enabled for all linux systems?

philipc avatar Jun 18 '21 22:06 philipc

Ah, I suppose that's non-trivial, and probably rules out my hope of getting this into std's own backtracing. But for general use, a new cargo feature sounds reasonable to me.

cuviper avatar Jun 18 '21 22:06 cuviper

Adding this as a new feature-flagged item sounds plausible. We have discussed enabling compression for related stuff in std where we have linker/OS support for it, at least.

workingjubilee avatar Jun 26 '23 01:06 workingjubilee