🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #435

[Bug 300651] md5sum occasionally generates malformed checksum manifest records

#435
From: bugzilla-noreply
Date: Thu, 12 Nov 2026 20:48
65 lines
4912 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300651

--- Comment #7 from Bob Kline <bkline@rksystems.com> ---
I decided to see if the approach of testing with lots of small files might work
for reproducing the other problem I mentioned (the check phase dies with an
error message before completion in the middle of processing a large manifest).

14:35:07 /tmp/repro $ md5sum -c --quiet /tmp/repro2.md5
md5sum:
./directory-level-00-branch-019/directory-level-01-branch-098/directory-level-02-branch-069/file-0001998694-rgsihyu3g1zkohms0bu2w6qd5eyot7gfv79k7jr66feuv878787ssrb8qy02s7l0l9kn6:
Invalid argument
15:03:32 /tmp/repro $ grep -n
'./directory-level-00-branch-019/directory-level-01-branch-098/directory-level-02-branch-069/file-0001998694-rgsihyu3g1zkohms0bu2w6qd5eyot7gfv79k7jr66feuv878787ssrb8qy02s7l0l9kn6'
/tmp/repro2.md5
1291:e0c5526d7010da6878d778571fb7bcaa 
./directory-level-00-branch-019/directory-level-01-branch-098/directory-level-02-branch-069/file-0001998694-rgsihyu3g1zkohms0bu2w6qd5eyot7gfv79k7jr66feuv878787ssrb8qy02s7l0l9kn6
15:08:39 /tmp/repro $ md5sum -c /tmp/repro2.md5 > /tmp/repro-check.log
md5sum:
./directory-level-00-branch-019/directory-level-01-branch-049/directory-level-02-branch-086/file-0001949864-qpp2ruk30zn6kaaphn434pxh4jtun8042tfwd8bkhv6v61kfrmngntexm7u54k0hvmzqqkq71mqgf0kxb3nj5f0tlgoucg91:
Invalid argument
15:29:47 /tmp/repro $ grep -n
'./directory-level-00-branch-019/directory-level-01-branch-049/directory-level-02-branch-086/file-0001949864-qpp2ruk30zn6kaaphn434pxh4jtun8042tfwd8bkhv6v61kfrmngntexm7u54k0hvmzqqkq71mqgf0kxb3nj5f0tlgoucg91'
/tmp/repro2.md5
19093:0a0363e6bbfd92ac0322c7e02a9df523 
./directory-level-00-branch-019/directory-level-01-branch-049/directory-level-02-branch-086/file-0001949864-qpp2ruk30zn6kaaphn434pxh4jtun8042tfwd8bkhv6v61kfrmngntexm7u54k0hvmzqqkq71mqgf0kxb3nj5f0tlgoucg91
15:31:15 /tmp/repro $ wc -l /tmp/repro-check.log
   18830 /tmp/repro-check.log

So yes, it _is_ possible to reproduce this behavior as well, without dedicating
time and storage space to test with terabytes of data. Again, I don't know
whether this is an unrelated problem warranting a separate bug report, or if
it's all tied in together, all caused by the same flaw in the program. My guess
would be unrelated (after all, the crash happens during the check phase, and
the bug reported by this ticket happens during the checksum-generation phase),
but I'll leave that decision to those more familiar with the inner workings of
the code.

Again, none of these anomalies show up when using the GNU version of md5sum.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-300651-227-SDaTXFOC2h@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <bug-300651-227@https.bugs.freebsd.org/bugzilla/>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 300651] md5sum occasionally generates malformed checksum
 manifest records
Date: Thu, 12 Nov 2026 20:48:37 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-300651-227-SDaTXFOC2h@https.bugs.freebsd.org/bugzilla/>
References: <bug-300651-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="7689"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1794516517;
	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;
	bh=aPUfeHE0zYj+NvgMz5MC2dxK4BexiVnLE5gM0R2Nzuc=;
	b=RHNT+gN4s5Lq2lg6+J3fhJWG/XyYhIAG/YQeLreEGghwK0M9P8zZhFZ4Yyl5yx7go7y9Aj
	ah4NQPLRH3NPFlM8KItOQROzigSlwLyPUIngPQQGV1/DB9BWYKfDGspISsV1eA3KVysRyX
	sVVsW/bqmwU3fJhwod8tUHLvsI/dl0U2pEDXDaQBFyUBMh3NdUA5Er49aVp97bZ+qYpD5m
	Wl+cU0XnZ42dI2CpNnDrH7IJLjVzKGVX5BHtpvXFOlkl8K25gMzahwm1tMTcornlTfzi7s
	WtHKsx+3S4s8zPzNnBcOwmBXaUM8xfO2iwPekzRCn7adqRvJJ4XxHZ7y1uO4ow==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
In-Reply-To: <bug-300651-227@https.bugs.freebsd.org/bugzilla/>
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes