This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/625: gdb loops chewing up all memory on p command


>Number:         625
>Category:       gdb
>Synopsis:       gdb loops chewing up all memory on p command
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 01 20:58:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     John Carter
>Release:        5.2.1
>Organization:
>Environment:
Linux Redhat 7.3, gdb5.2.1 compiled using gcc-3.1.1, binutils-2.12.1 - Which is probably a fairly oddball setup, let me know if you want some more tests....
>Description:
The p command enters an infinite loops that consumes all memory. May be the same as bug 601?
>How-To-Repeat:
Compile and debug the attached 4 line c++ program.
b 'main'
run
Step until just past the   
  a << "blah";

Then 
  p a

Computer then freezes until linux's Out Of Memory killer kills gdb.
>Fix:
Dunno
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="a.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="a.C"

I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPHNzdHJlYW0+CgptYWluKCkKewogIHN0ZDo6b3N0
cmluZ3N0cmVhbSBhOwogIGEgPDwgImJsYWgiOwoKfQogIAo=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]