From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Carlos O'Donell Newsgroups: gmane.emacs.bugs Subject: bug#43389: 28.0.50; Emacs memory leaks using hard disk all time Date: Sun, 22 Nov 2020 22:35:28 -0500 Organization: Red Hat Message-ID: <4553ebe5-7490-7dab-6f14-4fc2adf1b047@redhat.com> References: <86y2j2brg2.fsf@protected.rcdrun.com> <83blfxth7c.fsf@gnu.org> <83y2j0qb2v.fsf@gnu.org> <831rgppg3w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3773"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 Cc: fweimer@redhat.com, 43389@debbugs.gnu.org, trevor@trevorbentley.com, dj@redhat.com, michael_heerdegen@web.de To: Jean Louis , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 23 04:36:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kh2eA-0000rB-W8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Nov 2020 04:36:10 +0100 Original-Received: from localhost ([::1]:38546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kh2e9-000638-Jh for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Nov 2020 22:36:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kh2e2-00062u-Qg for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 22:36:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kh2e2-0007sm-Hw for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 22:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kh2e2-0004Pf-FB for bug-gnu-emacs@gnu.org; Sun, 22 Nov 2020 22:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Carlos O'Donell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Nov 2020 03:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43389 X-GNU-PR-Package: emacs Original-Received: via spool by 43389-submit@debbugs.gnu.org id=B43389.160610254016933 (code B ref 43389); Mon, 23 Nov 2020 03:36:02 +0000 Original-Received: (at 43389) by debbugs.gnu.org; 23 Nov 2020 03:35:40 +0000 Original-Received: from localhost ([127.0.0.1]:48688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kh2df-0004P0-IT for submit@debbugs.gnu.org; Sun, 22 Nov 2020 22:35:39 -0500 Original-Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:33039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kh2dc-0004Oq-7c for 43389@debbugs.gnu.org; Sun, 22 Nov 2020 22:35:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606102535; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cQQIQ6f+u4wKI0QrmYybLtqI5qTJaKHDYD0YMIeDGto=; b=QaDY4dJjy4xL3ZCAUWu11OntAL5/wXeQwI2vo8SEJ0ngoDxUqkxBuId0o+XRid7GIRvjls S++SLFjxU1l3PVaxQHEyfC3iemPeXx9YLXJ2Mo0edNdJvLx6g3zdfjYbN7OdIaWTPabl5p 8/qvrMw1BusLs+6LFwv7Izeb2vbRzRo= Original-Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-448-EvmZw55SOXCC1vXnT4rzSQ-1; Sun, 22 Nov 2020 22:35:31 -0500 X-MC-Unique: EvmZw55SOXCC1vXnT4rzSQ-1 Original-Received: by mail-qk1-f197.google.com with SMTP id b11so3560887qkk.10 for <43389@debbugs.gnu.org>; Sun, 22 Nov 2020 19:35:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=cQQIQ6f+u4wKI0QrmYybLtqI5qTJaKHDYD0YMIeDGto=; b=LNE7AcZCYOnqCbWRfi1Rs3GHq4ugQ2oahhKfi4tF1fDpuL1n+Pg2wlaHhpnU1k4osf oT3/5QxXXUxYmT83zY6xR8F0pNv301q70zuEusnN3l/oJEtm2QUqcpnejPBB+mtSABd/ tYJqJ6bB43jMqV9l+O/YCM2aUefMhpJa67IfEQHKgK6xzRnfyO1TgEwWoIfw8x8peAB7 qwhLWq69HtuVM17JhmfBILxpkoIVdepty8Xd20moJrtx6REV0qyHOME0EgjLIPkMXQCQ lIxe/aFxcmaHsrtASTTAt/l4TCcJwLo6eztR+htBDLFqWtY9Gj6XP/Xs+ZfMWyMGuReH i6xg== X-Gm-Message-State: AOAM530Z8XHkUrWzNKt8PfpDgjyTBeF/fE4VP0LReOSuTpgqalUpQN0y nV/LDkht46hAt6B0M2HHo90YoECOv3f6o1uNz/F1BNk9Cim403oxdS562IwD1/YHnEyze79yG/N DSdTYsONF/gDLY1o= X-Received: by 2002:ad4:4743:: with SMTP id c3mr6509267qvx.31.1606102530788; Sun, 22 Nov 2020 19:35:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1LBx2N8bIBI8/iBd9VsHN8fqB02kzc6548oL2rwod+DX5EFHbI6ZUGDBUSAt7LY1bSaoGHw== X-Received: by 2002:ad4:4743:: with SMTP id c3mr6509259qvx.31.1606102530625; Sun, 22 Nov 2020 19:35:30 -0800 (PST) Original-Received: from [192.168.1.16] (198-84-214-74.cpe.teksavvy.com. [198.84.214.74]) by smtp.gmail.com with ESMTPSA id 13sm4467151qkp.16.2020.11.22.19.35.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Nov 2020 19:35:29 -0800 (PST) In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=carlos@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193890 Archived-At: On 11/19/20 10:16 PM, Jean Louis wrote: > * Eli Zaretskii [2020-11-19 17:38]: >> I think you should try using the malloc tracing tools pointed to here: >> >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43389#158 > > When running for long time Emacs will crush at certain point of time > as my hard disk get full as /tmp is just about 2 gigabytes. I did not > understand Carlos how to change the location for files. The glibc malloc tracer functionality can be adjusted with environment variables. Example: MTRACE_CTL_VERBOSE=1 MTRACE_CTL_FILE=./ls.mtr LD_PRELOAD=./libmtrace.so ls mtrace: writing to ./ls.mtr.350802 The appended PID helps keep the files distinct (and includes a sequence number in the event of conflict). In the above example the use of MTRACE_CTL_FILE=./ls.mtr instructs the tracer to write the trace file to the current directory. The tracer appends the PID of the traced process to the ls.mtr file name (and a sequence number that increases monotonically in the event of a name conflict). -- Cheers, Carlos.