From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WAs3GvLP1WCukgAAgWs5BA (envelope-from ) for ; Fri, 25 Jun 2021 14:45:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cH/xFfLP1WB6JwAA1q6Kng (envelope-from ) for ; Fri, 25 Jun 2021 12:45:38 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CFEE81E7D2 for ; Fri, 25 Jun 2021 14:45:37 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9E8F826BE0; Fri, 25 Jun 2021 08:45:35 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 667571FEAB for ; Fri, 25 Jun 2021 08:45:33 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 57FA45FD21; Fri, 25 Jun 2021 08:45:33 -0400 (EDT) Received: (nullmailer pid 4072414 invoked by uid 1000); Fri, 25 Jun 2021 12:45:32 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Re: [PATCH 1/2] lib: write talloc report in notmuch_database_destroy In-Reply-To: <20210619005944.2267177-1-david@tethera.net> References: <20210619005944.2267177-1-david@tethera.net> Date: Fri, 25 Jun 2021 09:45:32 -0300 Message-ID: <87o8bui043.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: OJ5SVLJK7DP2J2EV5VWP65S745GV6YQA X-Message-ID-Hash: OJ5SVLJK7DP2J2EV5VWP65S745GV6YQA X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624625137; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=on8zCs1nhP5GN24BLX7/Bq0UfPMInWOw0VmE9vVDBB0=; b=MkGfI7vni7TXS0+5u+9/WKj3B5Tc7c/XIHyT4mpVSt09vevDBoqBAonYqw4+Kr2cwt0Fkk vKVmSJjBEBRRflfreGH5C8Mjjs2XXlod5mA49awD+gwYw3CPdK3AmC3jX+8MPNx9orOcvX VGy6cBMaQKxfGB0UHm0dixnQw5cubfRjXm+IKyw9gzNsMl0zzLPa0llPq834sxEneq7TlU HvGhpq9UAR0x1ci8craWStNYJYkba6fecKa4ry0sFenZ7G0CTcjTm1zc+cmwtQSzW+JPxg NBBZ5lBmIPV0SNGZCPRmpToMP/lnu8vsg8pKjm9qc40muwHE5wluyZcTzDlTmw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624625137; a=rsa-sha256; cv=none; b=MKaqe1+aL9wxKu+as1e+iX+vcNKgxfEmwVCbjtmC60pkbQb/s9ru9ZhB2l2Sb8Z85zCIC9 s3LNN6WSNnTBnrgj/Qj/g9euM3BfXGghN0VpD5DnSwZbzPP4hWSk+b0dfrpalKYa4CoUtt v2vsXhAUH8czZQALgu+7RjOZ7YPca5MEJslIbJaAF8z6g9CGe+v6/rXTe4ix+sKO9fGjPp QxlK92ZVhRpj29eXyjfRVJ2qLlCruIFHkI8ZFEqiASZDu624A0lL9FDAC/n6s+sOM62+F5 +zWIQKaB0xKv07JcrnzwB01hIP4sTH4I4cBZB4hF4K/Yr4tuRI8j7VCXGVrQHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.99 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: CFEE81E7D2 X-Spam-Score: -1.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8QKJbWrfx6N4 David Bremner writes: > Since most memory allocation is (ultimately) in the talloc context > defined by a notmuch_database_t pointer, this gives a more complete > view of memory still allocated at program shutdown. > > We also change the talloc report in notmuch.c to mode "a" to avoid > clobbering the newly reported log. applied to master d