Bug 596751 - [REG][6.0] Sometimes gdb aborts with a segmentation fault.
Summary: [REG][6.0] Sometimes gdb aborts with a segmentation fault.
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gdb
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Jan Kratochvil
QA Contact: Petr Muller
Keywords: Regression
Depends On:
TreeView+ depends on / blocked
Reported: 2010-05-27 12:53 UTC by Alan Matsuoka
Modified: 2018-10-27 12:03 UTC (History)
5 users (show)

Clone Of:
Last Closed: 2010-11-10 20:26:25 UTC

Attachments (Terms of Use)

Description Alan Matsuoka 2010-05-27 12:53:01 UTC
Description of Problem:
This is a REGRESSION issue from RHEL6.0 alpha3.

Sometimes gdb aborts with a segmentation fault when a debuggee is attached
by 'attach' subcommand and then 'continue' subcommand is executed.

Please see the following log:
[root@RHEL6SS4 suga]# ./test &
[1] 10304
[root@RHEL6SS4 suga]# gdb
GNU gdb (GDB) Red Hat Enterprise Linux (7.1-18.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
(gdb) attach 10304
Attaching to process 10304
Reading symbols from /root/suga/test...done.
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00007f05d9266ae0 in __nanosleep_nocancel () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install
(gdb) c
[1]+  Done                    ./test
Segmentation fault (core dumped)

Version-Release number of selected component:
Red Hat Enterprise Linux Version Number: 6.0
Release Number: Snapshot 4
Architecture: x86_64
Kernel Version: 2.6.32-25.el6.x86_64
Related Package Version: gdb-7.1-18.el6
Related Middleware/Application: none

Drivers or hardware or architecture dependency:

How reproducible:

Step to Reproduce:
===test.c =========================

int main()
       sleep (20);

1. Compile the above target program (test.c):
# gcc -g -o test test.c

2. Execute test program in back ground:
# ./test &
[1] Target-PID

3. Execute gdb command:
# gdb

4. Execute gdb subcommand:
(gdb) attach Target-PID
(gdb) continue

Actual Results:
Segmentation fault occurs.

Expected Results:
The debuggee finishes normally.

Summary of actions taken to resolve issue: none

Location of diagnostic data: none

Hardware configuration:
CPU Info: Intel(R) Xeon(R) CPU X5460 @ 3.16GHz x 8
Memory Info: 16GB
Hardware Component Information: none
Configuration Info: none

Business Impact:
This is a REGRESSION issue from RHEL6.0 alpha3.

The 'attach' subcommand is basic function of gdb.
It is often used by our middleware developers and investigator.
Therefore, this issue has a very bad influence to our middleware developers.
And they might stop tests by this issue and make it impossible for us to
ship our
middleware and application on schedule.

So it is necessary the fix of this issue is released by RHEL6.0 GA.

Target Release: 6.0GA
Errata Request: No
Hotfix Request: No

Additional Info:
- The core file is attached.

This is the core file of gdb that aborts with a segmentation fault.

- The sosreport file is attached.
(The md5sum is: 28bdf0cabf5fabac8b4b68fcb1eaa88f)

Comment 1 RHEL Product and Program Management 2010-05-27 12:55:50 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

Comment 5 Jan Kratochvil 2010-05-27 17:57:24 UTC
Post upstream:

Comment 7 Fedora Update System 2010-06-01 21:50:54 UTC
gdb-7.1-24.fc13 has been submitted as an update for Fedora 13.

Comment 8 Fedora Update System 2010-06-02 18:14:57 UTC
gdb-7.1-24.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 releng-rhel@redhat.com 2010-11-10 20:26:25 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.