Bug 1013453

Summary: gdb eats gigabytes of memory very fast
Product: [Fedora] Fedora Reporter: cpg <cpg>
Component: gdbAssignee: Sergio Durigan Junior <sergiodj>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 19CC: gbenson, jan.kratochvil, palves, pmuldoon, sergiodj, tromey
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: gdb-7.6.1-42.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-10 14:47:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description cpg 2013-09-30 06:31:33 UTC
Description of problem:

when debugging a go program, gdb eats memory at what looks like 1GB/sec and brings the machine to its knees.

Version-Release number of selected component (if applicable):


How reproducible:

fairly reproducible, nearly 100% of the time

Steps to Reproduce:
1. git clone https://github.com/amahi/spdy-proxy
2. cd spdy-proxy
3. make
4. gdb bin/p
5. run
6. ^C
7. goroutine 4 bt

Actual results:

gdb stops responding to ctrl-c and the machine becomes unresponsive.

on another ssh session, i could see gdb brutally eating memory

Expected results:

show a backtrace

Additional info:

sergiodj produced a test rpm that has a patch for this issue.

Comment 1 Sergio Durigan Junior 2013-09-30 06:36:31 UTC
Thanks for the report.  The bug is fixed by the following commit:

commit cbb25189b69e501ddca64917d810b54bb1466c93
Author: Doug Evans <dje@google.com>
Date:   Thu Aug 1 23:59:47 2013 +0000

        PR symtab/15695
        * valops.c (value_struct_elt): Add missing call to check_typedef.
        (value_find_oload_method_list): Ditto.
        * gdb.base/func-ptr.exp: New file.
        * gdb.base/func-ptr.c: New file.

I haven't regression-tested the patch when I generated the scratch build, but it fixes this bug.

Comment 2 Fedora Update System 2013-10-01 03:25:20 UTC
gdb-7.6.1-42.fc19 has been submitted as an update for Fedora 19.

Comment 3 Fedora Update System 2013-10-01 04:08:22 UTC
gdb- has been submitted as an update for Fedora 20.

Comment 4 Fedora Update System 2013-10-01 04:31:24 UTC
gdb-7.5.1-43.fc18 has been submitted as an update for Fedora 18.

Comment 5 Fedora Update System 2013-10-02 06:27:33 UTC
Package gdb-7.5.1-43.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gdb-7.5.1-43.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-10-10 14:47:40 UTC
gdb- has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2013-10-21 00:58:30 UTC
gdb-7.6.1-42.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.