Bug 575737 - syms_from_objfile mishandles duplicate section names
Summary: syms_from_objfile mishandles duplicate section names
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-22 09:50 UTC by Andreas Schwab
Modified: 2010-03-30 02:15 UTC (History)
2 users (show)

Fixed In Version: gdb-7.0.1-36.fc12
Clone Of:
Environment:
Last Closed: 2010-03-30 02:15:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Sourceware 11409 0 None None None Never

Description Andreas Schwab 2010-03-22 09:50:37 UTC
When gdb reads a separate debug info that contains two sections with the same
name it miscalculates the section offset of the duplicate section.  Any symbols
defined in such a section get the wrong address.

$ readelf -s /usr/lib/debug/usr/bin/emacs-23.1.debug | grep gdb_use_lsb
  4085: 0000000000804b20     4 OBJECT  GLOBAL DEFAULT   22 gdb_use_lsb
$ gdb emacs
GNU gdb (GDB) Fedora (7.0.1-34.fc12)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/emacs...Reading symbols from /usr/lib/debug/usr/bin/emacs-23.1.debug...done.
done.
(gdb) i addr gdb_use_lsb 
Symbol "gdb_use_lsb" is static storage at address 0xa19ba0.                     
(gdb)

Comment 1 Jan Kratochvil 2010-03-23 20:58:04 UTC
Fix posted:
http://sourceware.org/ml/gdb-patches/2010-03/msg00799.html

Comment 2 Fedora Update System 2010-03-26 19:27:18 UTC
gdb-7.0.1-36.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/gdb-7.0.1-36.fc12

Comment 3 Fedora Update System 2010-03-30 02:15:28 UTC
gdb-7.0.1-36.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.