From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oNZeEf4FjGNregAAbAwnHQ (envelope-from ) for ; Sun, 04 Dec 2022 03:29:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UKhaEf4FjGOaFwAA9RJhRA (envelope-from ) for ; Sun, 04 Dec 2022 03:29:18 +0100 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 6F1982FEC4 for ; Sun, 4 Dec 2022 03:29:17 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id F009C5FB6A; Sun, 4 Dec 2022 02:29:13 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id BF7F35FB32 for ; Sun, 4 Dec 2022 02:29:11 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id B15655FBC0; Sat, 3 Dec 2022 21:29:10 -0500 (EST) Received: (nullmailer pid 1551658 invoked by uid 1000); Sun, 04 Dec 2022 02:29:09 -0000 From: David Bremner To: Thomas Schneider , notmuch@notmuchmail.org Subject: handle exceptions in _notmuch_message_delete Date: Sat, 3 Dec 2022 22:28:54 -0400 Message-Id: <20221204022857.1551514-1-david@tethera.net> X-Mailer: git-send-email 2.35.2 In-Reply-To: References: MIME-Version: 1.0 Message-ID-Hash: UYM5MK7CTDUZETNW24UFC643OIOAG6TV X-Message-ID-Hash: UYM5MK7CTDUZETNW24UFC643OIOAG6TV X-MailFrom: bremner@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-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670120957; 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=ak2USHR8gWnxXdAMbfTvJHrQE2D68fP48V+zDwZHF/4=; b=rlhiitJhkL5H+WM16HwxHMjSNikkKEK26dQ8Ie1odVsiSWWycKmYlBUnskQ9+8Ol/Vq6ku Em2rum5eT7GYgudfbpdN8HcENXe4fjDOcN7Eb1bn1HumPECGf8ZwdPaDdA/6pss1lj7g9P 03ITndyaOj6noGXvaesj74pcfC5MJpjgkoGxadxxFyay+Ybw4oDfDAvxYdrA6SXbFAdVpb MPpJE+UpjKK8S9YTcZZYtciWT2CTQGTM+dyUlDK3Y99cAGx/TZ+oJQyvX7M2RxE51nVXwo A/eRt3TyXNKretGhSShfRoH3CKEuDM7r34dj5Awe21tBoN3yyj43NolN/1O3jw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670120957; a=rsa-sha256; cv=none; b=THI1syy1z/Ek9vKV+qtyhKENA5XOMbPbbW6vzAhoVzBBaiKJuTXHi1osBVPGnsVJK4Pwkl TQuymHm/Cw2TkKtQGoak6fNtFBjm8N1eysCmcw35V4Zn17GfFcxeMHoBPHsHe812/GWftP MA22OUmVjoAg8pEnZ6VzMWSo45QUb5bgVd4hYSbLN9KRJuBv/lrEwM4k3iwbmmDez8bGvh DfJSOAymV02XUTWVZ8eQ2t8ZAlwAgdhVAfEWoLyJM1Kk8VO3wxRcFXFShPo+0KcOQ17luq lx08HGdzYzCMKK3u69aJAgIEwX/WHwPwXb6RqgYzCcsaCvjBHXclJQ2xz6Qo6g== 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: -1.79 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: 6F1982FEC4 X-Spam-Score: -1.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: ezcK20RTuuCj It's a bit tricky to test running out of disk space in the test suite but I think I caught the exception shown in your first backtrace (which was not attached to your mail, only pasted to IRC). #10 GlassWritableDatabase::delete_document(unsigned int) (this=0x55da391cc550, did=413358) at /tmp/portage/dev-libs/xapian-1.4.19/work/xapian-core-1.4.19/backends/glass/glass_database.cc:1223 #11 0x00007fb7f3fba3a0 in _notmuch_message_delete(notmuch_message_t*) (message=0x55da5f74f070) at lib/message.cc:1374 #12 0x00007fb7f3fb376a in notmuch_database_remove_message(notmuch_database_t*, char const*) (notmuch=, filename=0x55da41a8c440 "/var/dedup/qsx/maildir/AStA.INBOX.Admin/cur/1636633029.12621_18.neptun,U=9117:2,S") at lib/database.cc:1438 #13 0x000055da374eea01 in remove_filename (notmuch=0x55da39183530, path=0x55da41a8c440 "/var/dedup/qsx/maildir/AStA.INBOX.Admin/cur/1636633029.12621_18.neptun,U=9117:2,S", add_files_state=0x7ffe493a1440) at notmuch-new.c:950 #14 0x000055da374eed09 in _remove_directory (notmuch=0x55da39183530, path=0x55da3faad350 "/var/dedup/qsx/maildir/AStA.INBOX.Admin/cur", add_files_state=0x7ffe493a1440) at notmuch-new.c:987 #15 0x000055da374eed79 in _remove_directory (notmuch=0x55da39183530, path=0x55da3a7349d0 "/var/dedup/qsx/maildir/AStA.INBOX.Admin", add_files_state=0x7ffe493a1440) at notmuch-new.c:998 #16 0x000055da374ed6e5 in notmuch_new_command (notmuch=0x55da39183530, argc=, argv=) at notmuch-new.c:1267 #17 0x000055da374e910b in main (argc=, argv=0x7ffe493a1bc8) at notmuch.c:588