bugThe libunwind project - Bugs: bug #48349, loading symbols from /usr/lib/debug

 
 

bug #48349: loading symbols from /usr/lib/debug

Submitted by:  Martin Dorey <mdorey>
Submitted on:  Thu 30 Jun 2016 12:52:24 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 14 Jan 2017 02:16:58 AM UTC, comment #1:

Closed without comment? Sad face.

Ah, closed because committed to master, with https://github.com/djwatson/libunwind/commit/1f4929c05d5f3e97db51b818992963074346a79c. Happy face!

Martin Dorey <mdorey>
Thu 30 Jun 2016 12:52:24 AM UTC, original submission:

Debian likes to hive off symbol information to separate -dbg packages, installing the debug information in a parallel tree rooted at /usr/lib/debug. libunwind doesn't know how to find these files but it's easy, per the tested, attached patch, to make it so. I don't see /usr/lib/debug at http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLIBLIBRARIESFORPROGRAMMINGANDPA but https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Debugging_with_gdb/separate-debug-files.html says it's not just Debian and hints it might be driven by gdb. I do see mention of /usr/lib/debug in libunwind already, but only in a DWARF-specific part of the code.

A minor concern might be checking errno to see if the problem is ENOENT before trying the alternate path. That might be better than flogging a mmap problem or being out of file handles or whatever.

Martin Dorey <mdorey>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #37630:  usr-lib-debug.take1.patch added by mdorey (697B - text/x-patch - suggested fix)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by djwatson24 (Updated the item)
  • -unavailable- added by mdorey (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 13 Jan 2017 05:30:05 PM UTCdjwatson24Open/ClosedOpen=>Closed
    Thu 30 Jun 2016 12:52:24 AM UTCmdoreyAttached File-=>Added usr-lib-debug.take1.patch, #37630

    Back to the top


    Powered by Savane 3.1-cleanup1