-
Type: Task
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Build
-
Labels:None
-
Server Development Platform
RHEL and Fedora systems use LZMA to compress debuginfo in binaries called MiniDebugInfo. Currently, our third-party copy of libunwind supports MiniDebugInfo but we do not enable support for MiniDebugInfo in libunwind. By enabling support, we will improve our stack traces on some platforms.
We should enable this in 4.4.1. It will not be a breaking change since MongoDB binaries link in liblzma already in 4.4.0. This means that packages like RPMs require lzma to be installed on the system. Currently, we link to lzma but do not use any functions in it. The ld.gold libary
Support can be enabled by defining HAVE_LZMA. We should also test for the <lzma.h> header in SConstruct.
References:
https://fedoraproject.org/wiki/Features/MiniDebugInfo
https://sourceware.org/gdb/onlinedocs/gdb/MiniDebugInfo.html