15.04: incomplete debug symbols package - please disable CONFIG_DEBUG_INFO_SPLIT or package the .dwo files

Bug #1413646 reported by Mauricio Faria de Oliveira
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
High
Andy Whitcroft

Bug Description

The kernel option CONFIG_DEBUG_INFO_SPLIT has been enabled in vivid (commit bb5f2d940954fb389f16a0f7ad05b5a53a7e5227).

It moves debuginfo to .dwo files, using gcc -split-dwarf.
The kernel packaging received no updates to include the .dwo files, AFAICT.

This results in gdb/crash not unable to find/read the kernel debug symbols, because the .dwo files are not present.

Possible solutions include:
1) Disable CONFIG_DEBUG_INFO_SPLIT
2) Update the packaging to include .dwo files.

Options #1 (patch attached) tested, and it worked.

Before:
----------

 # grep CONFIG_DEBUG_INFO_SPLIT /boot/config-3.18.0-9-generic
 CONFIG_DEBUG_INFO_SPLIT=y

gdb:

 (gdb) symbol-file /usr/lib/debug/boot/vmlinux-3.18.0-9-generic
 Reading symbols from /usr/lib/debug/boot/vmlinux-3.18.0-9-generic...
 warning: Could not find DWO CU arch/powerpc/kernel/.tmp_prom_init.dwo(0xa3396d7f33b2feee) referenced by CU at offset 0x24c [in module /usr/lib/debug/boot/vmlinux-3.18.0-9-generic]
 <and many other .dwo files>

crash:

 gdb called without error_hook: Dwarf Error: CU at offset 0x24c references unknown DWO with ID 51757104ad7ccc06 [in module /usr/lib/debug/boot/vmlinux-3.18.0-8-generic]
 Dwarf Error: CU at offset 0x24c references unknown DWO with ID 51757104ad7ccc06 [in module /usr/lib/debug/boot/vmlinux-3.18.0-8-generic]

 crash: /usr/lib/debug/boot/vmlinux-3.18.0-8-generic: no debugging data available

After:
--------

 # grep CONFIG_DEBUG_INFO_SPLIT /boot/config-3.18.0-9-generic
 # CONFIG_DEBUG_INFO_SPLIT is not set

gdb:

 (gdb) symbol-file /usr/lib/debug/boot/vmlinux-3.18.0-9-generic
 Reading symbols from /usr/lib/debug/boot/vmlinux-3.18.0-9-generic...done.

crash:

 # crash /usr/lib/debug/boot/vmlinux-3.18.0-9-generic /var/crash/201501221026/dump.201501221026
 <...>
       KERNEL: /usr/lib/debug/boot/vmlinux-3.18.0-9-generic
     DUMPFILE: /var/crash/201501221026/dump.201501221026 [PARTIAL DUMP]
 <...>
 crash>

Tags: patch
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :
Changed in linux (Ubuntu):
status: New → Confirmed
tags: added: patch
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
importance: Undecided → High
assignee: nobody → Andy Whitcroft (apw)
milestone: none → ubuntu-15.01
status: Confirmed → Fix Committed
Revision history for this message
Andy Whitcroft (apw) wrote :

I have turned this option off in the immediate term. I have also filed Bug: #1413664 to investigate fixing this properly.

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

@apw thanks, Andy.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 3.18.0-11.12

---------------
linux (3.18.0-11.12) vivid; urgency=low

  [ Leann Ogasawara ]

  * Release Tracking Bug
    - LP: #1414085

  [ Andy Whitcroft ]

  * SAUCE: arm64 -- psci tell the compiler which registers we are needing
    values in
    - LP: #1414002
 -- Leann Ogasawara <email address hidden> Fri, 23 Jan 2015 09:10:09 -0800

Changed in linux (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.