Re: [PATCH 1/3] test: add known broken tests for empty message/rfc822 part

Subject: Re: [PATCH 1/3] test: add known broken tests for empty message/rfc822 part

Date: Sun, 16 Aug 2026 15:56:12 +0200

To: David Bremner

Cc: notmuch@notmuchmail.org

From: Štěpán Němec


On Sun, 16 Aug 2026 10:31:28 -0300
David Bremner wrote:

> I must be somehow cursed, I downloaded this message (with wget) and
> copied it over the previous (non-anonymized) version and I could no
> longer reproduce the segfaults.

That's most interesting indeed.
Still works for me, even with wget in the mix:

podman run -it --rm --log-driver none debian:sid
root@6cd68cfa22da:/# apt update && apt install notmuch
[installation snipped]
root@6cd68cfa22da:/# notmuch
[enter, enter, enter...]
root@6cd68cfa22da:/# apt install wget
[sorry about that]
root@6cd68cfa22da:/# wget https://smrk.net/tmp/msg.segfault.min
root@6cd68cfa22da:/# mkdir ~/mail
root@6cd68cfa22da:/# mv msg.segfault.min ~/mail/msg
root@6cd68cfa22da:/# cat ~/mail/msg
Subject: subject
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="=_1ed8c5746acfba8105c2de406822921e_="
Content-Transfer-Encoding: 8bit
From: from@example.com
To: to@example.com
Message-ID: <empty-mime-part-segfault@example.com>
Date: Tue, 23 Jun 2026 05:47:52 +0000

--=_1ed8c5746acfba8105c2de406822921e_=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

this is the main body, empty MIME part follows

--=_1ed8c5746acfba8105c2de406822921e_=
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="message.eml"

--=_1ed8c5746acfba8105c2de406822921e_=--

root@6cd68cfa22da:/# notmuch new
Found 1 total files (that's not much mail).

(process:3114): gmime-CRITICAL **: 13:40:24.995: g_mime_message_get_mime_part: assertion 'GMIME_IS_MESSAGE (message)' failed
Processed 1 file in almost no time.
Added 1 new message to the database.
root@6cd68cfa22da:/# notmuch show id:empty-mime-part-segfault@example.com
Segmentation fault         (core dumped) notmuch show id:empty-mime-part-segfault@example.com

> So I went with the existing message, the posted series is
> applied to master now.

Thank you, as already stated, I don't object.

-- 
Štěpán
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: