From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UExGCZbdqWb0PwEAqHPOHw:P1 (envelope-from ) for ; Wed, 31 Jul 2024 06:45:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id UExGCZbdqWb0PwEAqHPOHw (envelope-from ) for ; Wed, 31 Jul 2024 08:45:42 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QFu9VMOp; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722408341; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tluycWGLmFd+bBH3u8eHJpNJD90VvKOj03SLN6RJTHc=; b=T1tsX4wwcJmu7m9YPlElpQZgiRcy/c4ultHdhD0fvADE96LTLi/KPOvUjH+RvBMDVY28Ax ZgeJxqAYuUQmKy3eBWZBdvt+GhxNxfeQW5hB8jl0N2wM+8HgHqWLuM2pW7yaBW9raIlA4J ZLv4cIALtZw2XCgt2dNDoX61qhPm8utWxZ6dxzrP4NrCfzazC1V55Sj65j7CkiGS8P7W/K DK72/LMR0fn7r9AHs7abFd3OlQU+Hrsepp54k0lSWEjJkSqhVLUA5pCaXjS7QEQFzwlPFU 7+IOp9i1eJ/Vf6HXAtMqQb4pU09t6ofFmrhtpAE+h8xt09L9tvj85/DWcwrr3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=QFu9VMOp; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722408341; a=rsa-sha256; cv=none; b=mLXwqgEjlVaxYMyAm2AvlGNnFirKv2PV2K0vSUg3fk3DUZWCcz5xFliT8uz6Lvy538+x8V 9M2m0eY1s/+MevlNKAKq+Y3QbUmYgXcHrGt+Q5Vs4Pdp4N/NvPQE1+D4T5HDhRkhXIVewo ADPZt9PJfw1/gaI+iA3KryLMnttmJ/yeIU7ticNrVBA1Nz/ppzxFlqKeU0/SpzSNUojtBJ HRpn/4nDIZly6c/p4gMSlBjexzANOE0kGt3SNO+XzkK6o14S7FAI2Q6JC8m0BkXpRHfbB3 3AeOJmgfNcfXNQXGOs5/piylnxK4g2chsEblcaJ+IeLtlEe2go/DCvZ0T85Bdw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DE7FCBC61 for ; Wed, 31 Jul 2024 08:45:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZ34z-00019Q-Co; Wed, 31 Jul 2024 02:44:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZ34x-00018w-PB for emacs-orgmode@gnu.org; Wed, 31 Jul 2024 02:44:55 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZ34v-00080x-F9 for emacs-orgmode@gnu.org; Wed, 31 Jul 2024 02:44:55 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 07D4B24002A for ; Wed, 31 Jul 2024 08:44:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1722408291; bh=mkVUWEgzEZ1UaVz25I7xOLowu5L2JXpB53wqZtQ6LOM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=QFu9VMOpY0oSdaZe+/wFT9CyC37FAJprkb4hp52St+qyTpOCmku+DJ0eX1+kJulPK XeX84Ut7GC+V/xv1ypMCmdhDfuR6Up+ey48ZJ8geWhKH/dHe3KZUE4JXCetTVgogAl JMZ+s+a7rmcNfbuLT+ernVczSpmOmqkWTm9AKx8ojvwK7aol6nP4peMlJ7OYASwtwk i90uxnTy4H74Lo0Hd5R6QrJnsN/2QcqamhT+ZU3PbyxjplbjoztfH1r3m5SXa/DyTd OfNQdnnaZH46170/ZsXpwROiNe2q82qD8mqs++Aed2AhyFoEG/gT6et7szNh721oZ/ 8y7cCVoPG0C5w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WYjJL3VCpz6tyH; Wed, 31 Jul 2024 08:44:50 +0200 (CEST) From: Ihor Radchenko To: Christian Moe Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Org-persist In-Reply-To: <87wml2qd41.fsf@christianmoe.com> References: <87a5hyh6tc.fsf@christianmoe.com> <87wml2qd41.fsf@christianmoe.com> Date: Wed, 31 Jul 2024 06:46:14 +0000 Message-ID: <87ed7ajbyh.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.65 X-Migadu-Queue-Id: DE7FCBC61 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.65 X-TUID: MjBLC+MJZLDi Christian Moe writes: > I do have a backup of the org-persist directory if there's anything to > be learned from it about how this happened (but I'm traveling, and don't > have much time for forensics at the moment). I don't think so. Not in this case. I think that we simply need to do format check when reading the index and refuse to load it when something is off (malformed lists or values). AFAIU, what you see can happen in peculiar situations when the file is corrupted, but partially - Emacs is still able to `read' it into Elisp, but the result of reading is garbage. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at