From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mPmVD7kdgmKnPgEAbAwnHQ (envelope-from ) for ; Mon, 16 May 2022 11:47:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4BllD7kdgmJzrwAAauVa8A (envelope-from ) for ; Mon, 16 May 2022 11:47:37 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 022B12C8E9 for ; Mon, 16 May 2022 11:47:37 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 77DF75F73C; Mon, 16 May 2022 09:47:34 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2428E5F6D1 for ; Mon, 16 May 2022 09:47:32 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id CB17D5FBD7; Mon, 16 May 2022 05:47:30 -0400 (EDT) Received: (nullmailer pid 202501 invoked by uid 1000); Mon, 16 May 2022 09:47:29 -0000 From: David Bremner To: Eliza Velasquez , notmuch@notmuchmail.org Subject: Re: [bug] possible condition depending on uninitialized value in _notmuch_message_sync In-Reply-To: <87o7zxj086.fsf@eliza.sh> References: <87o7zxj086.fsf@eliza.sh> Date: Mon, 16 May 2022 06:47:29 -0300 Message-ID: <87lev1x0zy.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: CYB3JKRMLRFJDBU7FNIX2ODCCZ4TQHWJ X-Message-ID-Hash: CYB3JKRMLRFJDBU7FNIX2ODCCZ4TQHWJ 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; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652694457; 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-owner:list-unsubscribe:list-subscribe:list-post; bh=kaFdfxbRKXPGCQWcu6lHRU+8QN6xTyoE3LjO4XQBwMU=; b=UMb1it8atc/cFIRK2u2dQMzeaiN5BEODGwLu1wx571kMTTcMw5yg1lsyHyYmSgiskWtA2x /acmwL07q8V6tDRBbfrEBLcYrWv0dIZvzTy7JK99+RC9XzHs5an/IiXMS3VuAnmik80vi4 rbvcekSCDr1t7zyloWP1v/4lxuW7zGq4xSDUwqU+EYmAIoTQAAG6raIarGEVPbOlypE6KC ZR43gDPK45S2ZGUfpIgtvBEWmJgBFXhR0o0NX9T1D0kboxRvouQ3LHV8AmjH0V/EXyQ5ZY ETcON4VDU9XFqGnhRgmAyNNb4MVKbHs7qsXnCxGzXwf7vEk/9//GBZ0sl+OmIg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652694457; a=rsa-sha256; cv=none; b=D/51BZ9y4zyKjdFaRyHZH1w2bNoBu11pCw2RiqKmMFio4s7TWDP9GvHq7IA0gEkXPeg4U7 3mm1FVsNzaaYPCE0lSixqhjF4ewbL4oFH8ijD2DXlZ3jekg1g3W11dBtj+Of1kaBczTDd+ t9GHJD3ZPa9Fiz7EFENjq2AzEgF3Ix8vzeNSpTXLzytYwCjhmyKhWWrJoYh81j/6EHK3AU pEZWNzmGhHkPH8XREjON/oU3MtZacCsnI2oXmDBvQ4ssl3eFpqSDbT8Z3aD+XdV5FDtoKe EM31yX//1dnirE7wWEJC/TZTl0KPwwyABqiKSbUwbJpwxI5Lo9jrifZlV8tRFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.48 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 022B12C8E9 X-Spam-Score: -2.48 X-Migadu-Scanner: scn0.migadu.com X-TUID: lgvOyxAF/0UX Eliza Velasquez writes: > Is it possible then that there's a potential memory error with removing > a non-existent tag on a message? I wanted to ask about this on the > mailing list before diving in deeper, since this isn't quite the latest > version of notmuch and I wasn't sure if it had been fixed in 0.36. I > searched the mailing list archives for this particular issue, but I > wasn't able to find anything. Ideally of course I'd like a reproducer in C. It would help to have line numbers in the valgrind output. It might be enough you install the notmuch debug symbols? d