Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 569235

Summary: failure to reset quick_addrmap in reread_symbols
Product: Red Hat Enterprise Linux 5 Reporter: Jan Kratochvil <jan.kratochvil>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: cagney, jakub, pmuller
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: abrt_hash:a349358060739a5f668aa3603ea35add417b7fd2
Fixed In Version: gdb-7.0.1-26.el5 Doc Type: Bug Fix
Doc Text:
GDB automatically reloads changed binary files from the disk before creating a new instance of the inferior. However, GDB could have terminated unexpectedly when doing so. With this update, this no longer occurs.
Story Points: ---
Clone Of: 562517 Environment:
Last Closed: 2011-01-13 23:53:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 562517    
Bug Blocks:    

Description Jan Kratochvil 2010-02-28 23:33:35 UTC
+++ This bug was initially created as a clone of Bug #562517 +++

abrt 1.0.4 detected a crash.

architecture: i686
Attached file: backtrace
cmdline: gdb bst_cmake
component: gdb
executable: /usr/bin/gdb
kernel: 2.6.31.12-174.2.3.fc12.i686.PAE
package: gdb-7.0.1-31.fc12
rating: 4
reason: Process was terminated by signal 11 (Segmentation fault)
release: Fedora release 12 (Constantine)

--- Additional comment from tromey on 2010-02-24 17:31:22 EST ---

I think this happens because reread_symbols doesn't reset
the quick_addrmap.  I am going to test this theory.

If you did not see gdb re-reading the symbols, then I don't have
a theory.  That would be useful to know.

--- Additional comment from tromey on 2010-02-24 17:35:36 EST ---

I looked, and this bug is fixed on the archer-tromey-delayed-psymfile
branch.  However, the fix isn't in gdb-archer.patch.
Maybe this is a merge error, or maybe it is just that a new merge is needed.
Jan, let me know if there is something else I ought to do here.

--- Additional comment from jan.kratochvil on 2010-02-28 14:21:39 EST ---

It is missing in archer-jankratochvil-fedora12 as it was accidentally included as a part of the archer-tromey-delayed-symfile merge from master e421d7b026e77f4dc127de49c01e80d533eb6825.

--- Additional comment from jan.kratochvil on 2010-02-28 18:30:04 EST ---

* Sun Feb 28 2010 Jan Kratochvil <jan.kratochvil> - 7.0.1-33.fc12
- [delayed-symfile] Backport fix of reread_symbols (Tom Tromey, BZ 562517).

Comment 4 Eva Kopalova 2010-11-16 16:59:10 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
GDB automatically reloads changed binary files from the disk before creating a new instance of the inferior. However, GDB could have terminated unexpectedly when doing so. With this update, this no longer occurs.

Comment 7 errata-xmlrpc 2011-01-13 23:53:39 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0099.html