From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14537 invoked by alias); 25 Jul 2017 20:20:30 -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 14071 invoked by uid 89); 25 Jul 2017 20:20:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=hitting, continuously X-HELO: mail-it0-f68.google.com Received: from mail-it0-f68.google.com (HELO mail-it0-f68.google.com) (209.85.214.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 25 Jul 2017 20:20:28 +0000 Received: by mail-it0-f68.google.com with SMTP id 77so7042545itj.4 for ; Tue, 25 Jul 2017 13:20:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=cAbiLw6hKsFGFnanAdg4fPi8FHnYUyxr5Fd42OfBNF0=; b=XqvJf055rEhvKgtvjQqYN9rMoS39dZ3kvPrLYO+HoZdv2GUBPxjS2d0Ak+o84ZFf/q B47krgGRj1OCOBP00WIzd9BiLaaayf10yA6AvnVJh11Hg3PFhaLVbUkHkW3JLwYKzx/S jZmW9cktfPGVH5SlWZGz5pTcOmQWxVKWvLAzlszdVQWLigMPoLwYOkjK5zPIFf0qI09W GOxIJ0MdfnYcvPre2Fw4t1zZv6T2oj4gtbjE2P0Zcn3qgbcvzUDcV57dY3ACuEGgAMWZ aryrmkod5bduS1dClCutB3f4EA6v8BtkbXfbw+7hwjYQ0qoMkSdrB48NZB1rMfAaAzN8 K+mA== X-Gm-Message-State: AIVw112T3haZZcXTaO8QdhPmpC87PIvDBtlpTWJ2nQpK5A5L9QP7D6uQ H0FIFTOB/T+iJZyS3gk= X-Received: by 10.36.120.68 with SMTP id p65mr10569847itc.91.1501014026993; Tue, 25 Jul 2017 13:20:26 -0700 (PDT) Received: from [128.174.163.204] ([128.174.163.204]) by smtp.gmail.com with ESMTPSA id w66sm778145ita.27.2017.07.25.13.20.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jul 2017 13:20:26 -0700 (PDT) To: gdb@sourceware.org From: Alex Lindsay Subject: Large memory usage by gdb Message-ID: <8d511930-9914-9aef-363f-2fff37dfc6a8@gmail.com> Date: Tue, 25 Jul 2017 20:20:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00039.txt.bz2 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? Alex