RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 597445 - Fix error on C++ application calling exec
Summary: Fix error on C++ application calling exec
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gdb
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Jan Kratochvil
QA Contact: Petr Muller
URL:
Whiteboard:
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:
Clone Of:
Environment:
Last Closed: 2010-11-10 20:26:41 UTC
Target Upstream Version:
Embargoed:


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