Bug 597445 - Fix error on C++ application calling exec
Summary: Fix error on C++ application calling exec
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gdb   
(Show other bugs)
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Jan Kratochvil
QA Contact: Petr Muller
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-29 00:10 UTC by Jan Kratochvil
Modified: 2016-09-20 02:06 UTC (History)
4 users (show)

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: ---


Attachments (Terms of Use)

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 Product and 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.


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