public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/9538] gdb creates debuginfo path incorrectly for symlinked files
       [not found] <bug-9538-4717@http.sourceware.org/bugzilla/>
@ 2011-02-01 21:47 ` mail at eliasprobst dot eu
  2012-01-10 20:29 ` ppluzhnikov at google dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: mail at eliasprobst dot eu @ 2011-02-01 21:47 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=9538

Elias Probst <mail at eliasprobst dot eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mail at eliasprobst dot eu

--- Comment #1 from Elias Probst <mail at eliasprobst dot eu> 2011-02-01 21:46:55 UTC ---
I can confirm this behaviour.

The crash happens in:
/usr/lib64/dri/i965_dri.so
which is a symlink to
/usr/lib64/mesa/i965_dri.so

The splitted debugging symbols reside in
/usr/lib/debug/usr/lib64/mesa/i965_dri.so.debug

GDB is only able to create backtraces when copying the debugging symbols to
/usr/lib/debug/usr/lib64/dri/i965_dri.so.debug


I thin the fix is actually rather simple: GDB should simply do a readlink() on
the path of the file which is analyzed before looking for the corresponding
debugging symbols file.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug gdb/9538] gdb creates debuginfo path incorrectly for symlinked files
       [not found] <bug-9538-4717@http.sourceware.org/bugzilla/>
  2011-02-01 21:47 ` [Bug gdb/9538] gdb creates debuginfo path incorrectly for symlinked files mail at eliasprobst dot eu
@ 2012-01-10 20:29 ` ppluzhnikov at google dot com
  2012-01-10 20:36 ` ppluzhnikov at google dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: ppluzhnikov at google dot com @ 2012-01-10 20:29 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=9538

Paul Pluzhnikov <ppluzhnikov at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppluzhnikov at google dot
                   |                            |com
         AssignedTo|unassigned at sourceware    |ppluzhnikov at google dot
                   |dot org                     |com

--- Comment #2 from Paul Pluzhnikov <ppluzhnikov at google dot com> 2012-01-10 20:28:42 UTC ---
This just hit me as well:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/914448

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug gdb/9538] gdb creates debuginfo path incorrectly for symlinked files
       [not found] <bug-9538-4717@http.sourceware.org/bugzilla/>
  2011-02-01 21:47 ` [Bug gdb/9538] gdb creates debuginfo path incorrectly for symlinked files mail at eliasprobst dot eu
  2012-01-10 20:29 ` ppluzhnikov at google dot com
@ 2012-01-10 20:36 ` ppluzhnikov at google dot com
  2012-01-18 18:59 ` cvs-commit at gcc dot gnu.org
  2012-01-18 19:03 ` ppluzhnikov at google dot com
  4 siblings, 0 replies; 5+ messages in thread
From: ppluzhnikov at google dot com @ 2012-01-10 20:36 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=9538

Paul Pluzhnikov <ppluzhnikov at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |HEAD
   Target Milestone|---                         |7.4

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug gdb/9538] gdb creates debuginfo path incorrectly for symlinked files
       [not found] <bug-9538-4717@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2012-01-10 20:36 ` ppluzhnikov at google dot com
@ 2012-01-18 18:59 ` cvs-commit at gcc dot gnu.org
  2012-01-18 19:03 ` ppluzhnikov at google dot com
  4 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-01-18 18:59 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=9538

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-01-18 18:58:46 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    ppluzhnikov@sourceware.org    2012-01-18 18:58:43

Modified files:
    gdb            : ChangeLog symfile.c configure.ac configure 
                     config.in 
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.base: sepdebug.exp 

Log message:
    2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
    Jan Kratochvil  <jan.kratochvil@redhat.com>

    PR gdb/9538
    * symfile.c (find_separate_debug_file): New function.
    (terminate_after_last_dir_separator): Likewise.
    (find_separate_debug_file_by_debuglink): Also try realpath.
    * configure.ac (AC_CHECK_FUNCS): Add lstat.
    * configure: Regenerate.
    * config.in: Regenerate.

    testsuite/ChangeLog:

    2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>

    PR gdb/9538
    * gdb.base/sepdebug.exp: New test.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13747&r2=1.13748
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/symfile.c.diff?cvsroot=src&r1=1.325&r2=1.326
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/configure.ac.diff?cvsroot=src&r1=1.153&r2=1.154
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/configure.diff?cvsroot=src&r1=1.338&r2=1.339
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/config.in.diff?cvsroot=src&r1=1.131&r2=1.132
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3026&r2=1.3027
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/sepdebug.exp.diff?cvsroot=src&r1=1.34&r2=1.35

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug gdb/9538] gdb creates debuginfo path incorrectly for symlinked files
       [not found] <bug-9538-4717@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2012-01-18 18:59 ` cvs-commit at gcc dot gnu.org
@ 2012-01-18 19:03 ` ppluzhnikov at google dot com
  4 siblings, 0 replies; 5+ messages in thread
From: ppluzhnikov at google dot com @ 2012-01-18 19:03 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=9538

Paul Pluzhnikov <ppluzhnikov at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Paul Pluzhnikov <ppluzhnikov at google dot com> 2012-01-18 19:02:48 UTC ---
Fixed in trunk.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-18 19:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-9538-4717@http.sourceware.org/bugzilla/>
2011-02-01 21:47 ` [Bug gdb/9538] gdb creates debuginfo path incorrectly for symlinked files mail at eliasprobst dot eu
2012-01-10 20:29 ` ppluzhnikov at google dot com
2012-01-10 20:36 ` ppluzhnikov at google dot com
2012-01-18 18:59 ` cvs-commit at gcc dot gnu.org
2012-01-18 19:03 ` ppluzhnikov at google dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).