From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13412 invoked by alias); 26 Jul 2017 07:28:05 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 13264 invoked by uid 89); 26 Jul 2017 07:28:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:823, U*alexlindsay239, alexlindsay239gmailcom, HX-Received:Wed X-HELO: mail-it0-f42.google.com Received: from mail-it0-f42.google.com (HELO mail-it0-f42.google.com) (209.85.214.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 26 Jul 2017 07:28:03 +0000 Received: by mail-it0-f42.google.com with SMTP id v127so14391004itd.0 for ; Wed, 26 Jul 2017 00:28:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=PM0ExVQD2lOPy5pXkBXzkmjUzrV1rYS7HMh3shETL4U=; b=uoa79LVAoz+6LxDYZisSpZfhNqrxmVmim3rIZ2OPUqY+OePNVEVMT7zylE6NA5eHhU ESroPeTQPJE2P40Bdh3JR1GBJbnE1aRTgamjVhHwir22lmJRf7whDDmO6Qd7JfE2Y9At nzJbjxa3Q/C0IukAOMSRXvZ280Ud5lgLgI3VuSFbONH2hs9A9w5V5nOVVKXSw9/8bolF IadEp0fRFuSkIkuuuC/Ng7nrJ8gq31PIOPAUFwftFSPXOGk8OV+G73s9cdnvrm9Nvyo4 yiufXjNPv36zQ8Ek7SOEONjgnDDBiukSdgnw7OOUKeYbfVHt6DtI/vsBYUKxBs7AFwa/ M0Qw== X-Gm-Message-State: AIVw113vIFJSGRoMixiQmDgAg3W+MNMU6UkMNfHn1FPavQRfR2eRMmIm zgOn830iGnOKPt6O X-Received: by 10.36.230.5 with SMTP id e5mr41643ith.168.1501054082015; Wed, 26 Jul 2017 00:28:02 -0700 (PDT) Received: from E107787-LIN (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id h196sm7718664ioe.41.2017.07.26.00.28.00 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 26 Jul 2017 00:28:01 -0700 (PDT) From: Yao Qi To: Alex Lindsay Cc: gdb@sourceware.org Subject: Re: Large memory usage by gdb References: <8d511930-9914-9aef-363f-2fff37dfc6a8@gmail.com> Date: Wed, 26 Jul 2017 07:28:00 -0000 In-Reply-To: <8d511930-9914-9aef-363f-2fff37dfc6a8@gmail.com> (Alex Lindsay's message of "Tue, 25 Jul 2017 15:20:25 -0500") Message-ID: <86bmo7pshw.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00043.txt.bz2 Alex Lindsay 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? --=20 Yao (=E9=BD=90=E5=B0=A7)