From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 943B86DE0183 for ; Mon, 20 Nov 2017 02:56:08 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.034 X-Spam-Level: X-Spam-Status: No, score=-0.034 tagged_above=-999 required=5 tests=[AWL=-0.014, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qcn0nS1ev9bC for ; Mon, 20 Nov 2017 02:56:07 -0800 (PST) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by arlo.cworth.org (Postfix) with ESMTPS id B419A6DE009B for ; Mon, 20 Nov 2017 02:56:06 -0800 (PST) Received: by mail-lf0-f51.google.com with SMTP id a132so9549891lfa.7 for ; Mon, 20 Nov 2017 02:56:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaute-vetsj-com.20150623.gappssmtp.com; s=20150623; h=date:from:subject:to:references:in-reply-to:mime-version:user-agent :message-id:content-transfer-encoding; bh=k42tc1bZYHUajTZtFRqhANBMOzcvXFJQE8IgX//bcxk=; b=APZGpAElmRePz8IqZJkhNz5T1Z6eJw89xZ8O3g/iLlfgu/pAlSpQT++Pf/DeMsDm9H 16pzBK1eEFcxbxf3RoPw64O55ogupt2O14BEpobXdGy1zjfj33mXMHZB2xSKkZnIDvKV Gp04kn6laJji0Ezg131nmtYphCE9P7QgaMGdTtTn7dAasNLtWKdzGYgVGPQHI0a70W4R JuVX/cpJCblKVa6XIGSOoeJJAZzb+LaGrEQav9qXLcaPgCCmBBEu+XtbftOIwCMjtAj6 l/PB0l6DBFGueBelDDvDiIRhJzkPrTgLCafCuB/7SbKdqefPlw6puFWkXmghniUX0lkV 8/eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:references:in-reply-to :mime-version:user-agent:message-id:content-transfer-encoding; bh=k42tc1bZYHUajTZtFRqhANBMOzcvXFJQE8IgX//bcxk=; b=nvbJvMPRcj3rJuHIqfRJ0HgRgiHJ8zAJJkpMVhjM9/G6qF9upFfvnt26qDmlHujQoi 4ZDgAPThWn4fTYhm1Bs7h0U8bZiKAr04IiWwgdNIOm01k7rf+SbaVZgfWISHbqmWuwS7 J3K2+kfsOGMJbsRNf1x2u1NWoZGs6onM6q1/bBwb1lWbZ0gs7fUq4fmnRSP70mO/Urb2 tbuOl1p5lsiYj0CnoAo2OInxDTtPUlAFRndfmzkcPm6yZm9akujf6JUI+GEAhy7w798D jdyWkqASlLwqI/4BZlRcVBkL7iyiHoCwEYC3k8SH7fEAU55DpdV5ijaesHCdFzziMo/x 5iEQ== X-Gm-Message-State: AJaThX5O8ZQtN4q3zI0aF77UdY6CntZOf8JQjRvvbwRWZphm7fXT+ZhE GOOJBabokZuEI+1smzg46iwChLFZBtg= X-Google-Smtp-Source: AGs4zMaHq8yQhhnFubwIu0ixd93ySmIfSI/8xH2v7LcR6hkSquRGMxIeEWxq0lKoIaypcwsfB0gelw== X-Received: by 10.25.225.8 with SMTP id y8mr3140509lfg.209.1511175364473; Mon, 20 Nov 2017 02:56:04 -0800 (PST) Received: from localhost (cm-84.215.128.252.getinternet.no. [84.215.128.252]) by smtp.gmail.com with ESMTPSA id g80sm1888689lfe.49.2017.11.20.02.56.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Nov 2017 02:56:03 -0800 (PST) Date: Mon, 20 Nov 2017 11:56:00 +0100 From: Gaute Hope Subject: Re: python bindings memory management To: David Bremner , notmuch@notmuchmail.org References: <1511105729.sleqpkzaf0.astroid@strange.none> <87lgj17tjl.fsf@tethera.net> In-Reply-To: <87lgj17tjl.fsf@tethera.net> MIME-Version: 1.0 User-Agent: astroid/v0.10.2-26-g61e8fdce =?us-ascii?Q?=28https=3A=2F=2Fgithub=2Ecom=2Fastroidmail=2Fastroid?= =?us-ascii?Q?=29?= Message-Id: <1511175327.w0kh2lrdn1.astroid@strange.none> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 10:56:08 -0000 David Bremner writes on november 20, 2017 0:11: > Gaute Hope writes: >=20 >> Hi, >> >> when writing this small script [0][1] using the notmuch python bindings = I=20 >> had to manually delete the python objects in the right order. Otherwise=20 >> it segfaults when exiting, presumably because memory dependencies /=20 >> cleanup isn't done correctly when the Python GC gets going. Essentially=20 >> I have to delete the objects in the order of their dependency: >=20 > Assuming this is python > 3.3, it sounds related to >=20 > id:5694CA65.8010400@fastmail.net >=20 > See in particular >=20 > id:20160112185107.GA21580@odin.tremily.us Yep, probably the same thing. - Gaute =