Bug 597445

Summary: Fix error on C++ application calling exec
Product: Red Hat Enterprise Linux 6 Reporter: Jan Kratochvil <jan.kratochvil>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Muller <pmuller>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: cagney, ebachalo, ohudlick, pmuller
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gdb-7.1-24.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 20:26:41 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:

Description Jan Kratochvil 2010-05-29 00:10:03 UTC
Description of problem:
C++ (libstdc++ linked) application on system with libstdc++ (=gcc) debuginfo installed calling exec() will stop on error.
This is an Archer branch [next-over-throw] regression.
It has been bugreported by Martin Stransky while debugging Firefox.

Version-Release number of selected component (if applicable):
gdb-7.1-21.el6

How reproducible:
Always.

Steps to Reproduce:
#include <unistd.h>
int
main ()
{
  execl ("/bin/true", "true", NULL);
  return 0;
}
debuginfo-install gcc
g++ -o exec exec.c
gdb -q -ex r ./exec

Actual results:
Cannot access memory at address 0x7ffff764ab60

Expected results:
Program exited normally.

Additional info:
http://cvs.fedoraproject.org/viewvc/rpms/gdb/F-12/gdb-archer-next-over-throw-cxx-exec.patch?content-type=text%2Fplain&view=co

devel_ack:
Safe fix.

qa_ack:
New testcase: gdb.cp/cxxexec.exp

Comment 1 RHEL Program Management 2010-05-29 00:15:22 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Petr Muller 2010-08-03 14:50:24 UTC
# runtest --tool=gdb gdb.cp/cxxexec.exp
(...)
                === gdb Summary ===

# of expected passes            3

Comment 4 releng-rhel@redhat.com 2010-11-10 20:26:41 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.