This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Large memory usage by gdb
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Alex Lindsay <alexlindsay239 at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 26 Jul 2017 08:27:55 +0100
- Subject: Re: Large memory usage by gdb
- Authentication-results: sourceware.org; auth=none
- References: <8d511930-9914-9aef-363f-2fff37dfc6a8@gmail.com>
Alex Lindsay <alexlindsay239@gmail.com> writes:
> My OS is Ubuntu 17.04. Using both gdb 7.12 and 8.0, I experience large
> memory usage when debugging my executable. As I add breakpoints and
> run the executable multiple times in a single session, memory usage
> grows continuously, regularly hitting 10s of GBs. I don't recall
> experiencing this issue with earlier Ubuntu versions (and also likely
> earlier versions of gdb). When I debug the same executable with
> lldb`, memory usage is pretty much constant at around 2 GB. Does
> anyone have any suggestions?
What is your executable? Can you give us some characteristics of your
executable to help us to reproduce this problem? Is it multi-threaded
program? Is it a C or C++ program? Does it load many shared library?
--
Yao (齐尧)