Bug 660197

Summary: [5.6] Using call subcommand to the functions handling DSOs causes info program to behave abnormally
Product: Red Hat Enterprise Linux 5 Reporter: Masayoshi Yamazaki <myamazak>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.6CC: cww, ebachalo, moshiro, pmuller
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, a change to the list of shared libraries could corrupt the internal "bpstat" structure. Consequent to this, typing the "info program" command at a GDB prompt could cause the utility to terminate unexpectedly with a segmentation fault. This update ensures that the "bpstat" structure always contains the correct data, and running the "info program" command no longer causes the debugger to crash.
Story Points: ---
Clone Of:
: 669428 (view as bug list) Environment:
Last Closed: 2011-07-21 07:58:15 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:    
Bug Blocks: 590060, 661773, 669428, 669636    
Attachments:
Description Flags
Fix + testcase. none

Comment 3 Jan Kratochvil 2010-12-10 17:55:45 UTC
Created attachment 468024 [details]
Fix + testcase.

New testcases:
PASS: gdb.cp/infcall-dlopen.exp: test * info program
+Running gdb/testsuite/gdb.base/moribund-step.exp ...
+Running gdb/testsuite/gdb.base/watch-cond-infcall.exp ...

Comment 4 Eric Bachalo 2010-12-10 18:03:31 UTC
likely too late for 5.6, but should be in 5.6.z and 5.7.0

Comment 10 Jan Kratochvil 2011-01-13 20:35:18 UTC
* Thu Jan 13 2011 Jan Kratochvil <jan.kratochvil> - 7.0.1-33.el5
- Fix crash on stale bpstat (BZ 660197).

Comment 12 Jaromir Hradilek 2011-01-18 15:23:00 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:
Previously, a change to the list of shared libraries could corrupt the internal "bpstat" structure. Consequent to this, typing the "info program" command at a GDB prompt could cause the utility to terminate unexpectedly with a segmentation fault. This update ensures that the "bpstat" structure always contains the correct data, and running the "info program" command no longer causes the debugger to crash.

Comment 15 errata-xmlrpc 2011-07-21 07:58:15 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-1024.html