[Bug gdb/24495] gdb uses huge memory and then terminates
tromey at sourceware dot org
sourceware-bugzilla@sourceware.org
Sun Apr 28 15:05:00 GMT 2019
https://sourceware.org/bugzilla/show_bug.cgi?id=24495
--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
Thanks. I compiled this with the Fedora 29 system g++
and then ran gdb like:
bapiya. /bin/gdb -nx -q
(gdb) maint space 1
(gdb) file tt
Reading symbols from tt...done.
Space used: 10768384 (+1101824 for this command)
I guess 1 megabyte seems a bit high for such a small
program.
Starting uses some more memory, most likely due to
CU expansion:
(gdb) start
Temporary breakpoint 1 at 0x400ac3: file test.cpp, line 8.
Starting program: /tmp/tt
Space used: 13144064 (+2375680 for this command)
Re-running doesn't seem to add any memory.
(gdb) start
Temporary breakpoint 2 at 0x400ac3: file test.cpp, line 8.
Starting program: /tmp/tt
Space used: 24752128 (+0 for this command)
What numbers do you see?
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list