Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time

When loading core dump files into gdb, I am getting the following warning, looks like loading some symbols also fails because of this.

warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time

Any idea how I can resolve this?

like image 310
PMat Avatar asked Apr 18 '17 21:04

PMat


1 Answers

warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time

GDB supports a feature called "mini debug info". This feature allows adding a subset of full debugging info to a special section of the resulting file. Some Linux distros, like Fedora, use this to ship partial debuginfo so that stack traces can be more easily "symbolicated".

This section is compressed using LZMA, and so GDB must be built with LZMA support in order to read the section.

Your GDB was not built with this support, so it is informing you that it found a .gnu_debugdata section, but could not read it.

Normally this is of no concern. It may mean you see slightly worse stack traces for code from system libraries.

The fix is to rebuild GDB, making sure you have the LZMA development packages installed before running configure.

like image 91
Tom Tromey Avatar answered Jan 01 '23 21:01

Tom Tromey