Article View: linux.kernel.git
Article #2624Re: [BUG] splitIndex with skipHash corrupts index and crashes status
From: Tanga Joris
Date: Sat, 07 Nov 2026 21:10
Date: Sat, 07 Nov 2026 21:10
30 lines
12376 bytes
12376 bytes
Hi Andy, Thank you for the bug report and the clear reproduction steps. I was able to reproduce both cases on master (fb255012ac). On Sat, 7 Nov 2026 at 15:16, Andy Koppe <andy.koppe@gmail.com> wrote: > $ ls .git | grep index > index > sharedindex.0000000000000000000000000000000000000000 > > Note the unexpected null OID. It seems to be caused by write_shared_index() naming the file after the shared index's trailing checksum. With index.skipHash, that checksum is written as zeros, so the file is named sharedindex.0000000000000000000000000000000000000000, which is the file you saw. The entries disappear because the split index then records a null base, and read_index_from() treats a null base as "no shared index" (read-cache.c:2381), so the entries stored in the shared index are lost. I'm working on a fix and would be more than happy to send it, unless you are already working on one. Thanks, Tanga
Technical Details
Message-ID:
<CAKrRMNpaBrOybe0hw_B+RTZ5GWeUASpR+sRte0OLL2x6xJba8g@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74804-linux-kernel-git=dewy.ruReferences:
<20261107121119.2995843-1-andy.koppe@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74804-linux-kernel-git=dewy.ru
From: tangajoris@gmail.com (Tanga Joris)
Newsgroups: linux.kernel.git
Subject: Re: [BUG] splitIndex with skipHash corrupts index and crashes status
Date: Sun, 8 Nov 2026 00:10:36 +0300
Organization: Usenet Network
Message-ID: <CAKrRMNpaBrOybe0hw_B+RTZ5GWeUASpR+sRte0OLL2x6xJba8g@mail.gmail.com>
References: <20261107121119.2995843-1-andy.koppe@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: usenet.network;
logging-data="4194136"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:tlcNhKb83zSrrnQmP3RHaTlVxRA= sha256:hyd0Y9+Kj0wa5sjARAygShfN53w/O7R7NQY9HjXd/wg=
sha1:gESendNr0cgS+h7xE1OofeGE/WQ= sha256:4Uj6oMgaYyDKWJry95N2aOku0xhnw44beoH9JRGfAkw=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 1A8411134B9; Sun, 8 Nov 2026 00:11:34 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id OzxGFgEA4zCR;
Sun, 8 Nov 2026 00:11:30 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-74804-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 376641134B5; Sun, 8 Nov 2026 00:11:21 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 2B33A66D3C; Sat, 7 Nov 2026 21:11:19 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1794085876;
b=LBb4myH+KKerSoY5yZOFlPm5ZZ27XuTC/LPdNJHqwLF1tqqRIK9FsLMdiyAJggi7zDja
6Gy3Hpc+3jneGJqVWpucbWu0x+LaltVKHECdgQSt2o63psKOVm6MPhMjiDHBMs7K4fhxy
P3pjPcvGVYNvuoKyip8l0IbiJ2h8fbHfK2kYlsvp/Etq9rSv9wCeNmd0StYl+58q92rV6
M5y5p3J/J7dF5u94sZ7xRDHNEkdckXkHRxSNLdRZdNUxKNWrP8E6P7+trzX3OrotuvNJp
TwIkfe008OTjSmxCrh0wqWqTHch87LkRD613Ed+5q309fJ19fsxUcXxXRaymQrPm8Hw==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794085876;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:References:
In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:
Content-Type;
bh=1kfSisbQylpCbT+K6GwaJ0J0zdzgWoYDzgStDrosgDg=;
b=cY0h8acig8h+YjLaoT6EAG+35b6JRBjRjeNpfdVyXfRLuD5Y+UqaaYzLxErH/tnDL03P
7CmCyAF2c16E+2OGDNZKQRK1YbEcc3vOMKprk91IFdLb10nuTFkLWAb7qFVdEi3W9syjb
7vas3bKadNcUVQVrUYEvyNFahJ78CuEF4oyHrQkrN/mLpq5NkxKT1LOZfPbN+3zV9QPAT
awk/vcpx2LWcTF5RSrYB9pRWoEkH02XQdoo6i0+nKlU8flGR9SKowIMu1ezSeIAadYoNl
ja79RDuseCRX1QILvfeJ9uZnHJr+ethuSd/TgOt0P+bSSzBtAHIoKQ4v6pqYDep/QLw==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="cm6Ek/l1";
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E9D6606A331;
Sat, 7 Nov 2026 21:11:16 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=cm6Ek/l1
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.160.47
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1794085875;
b=LSa/Fnc5iN/U5DHQ1NvPQrHQumbvRf5oz+rNFo6v7LYnzevnUWoI3ibPnrbAw6eKdzGW
XCWx7rJv/cFB2Fm1Mxp5O8kvd86VSzOhIeyhdAg6NQqHPNd88wS+G+VVfqbOhMot4PR09
Y+CCdc06UfoiIsbfmZc4LP15Vv9A+TxmrIkFh7OWaWdlUZJ3C9VlRT/opuGhnC6J9ZO/n
7zMotkZvsytzVmvLE4WTusw6d1kp50VRJM96D5dPjDGra1j/HLANe+FDMxN8jEcVO8OW2
E7/n+37vjHsexo+UZzhmqeV/HrW27XXOahwRd2PlEtTl2+GjJW8Ph01FRD7uRLBXUNg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794085875;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:MIME-Version:References:
In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:Cc:
Content-Type;
bh=1kfSisbQylpCbT+K6GwaJ0J0zdzgWoYDzgStDrosgDg=;
b=hVkcnsv4X8W5tv+ct/buLvTWapZx4mDwsbPA/S7OaLJid3oq4nV2N08GgeIO/VUPNxHT
ncPtNSoDAR3A/UD48L3E4QoJDj5W38DCIkTj8omSZ+kLI4adloK6qzj7Sahu+3n+czIfU
LEzDNlIbl/fWZXVw1HPdDPi98akbb9S+447m0gw1kMNf1ixX523T6XRmxX20VqwOfSXvs
HjXBrcvu3fvJBFi8moxE4x9E7XWaozlI1VnyllNMsinasKHe5a81z/nQwJbG9NnQUOyGy
ThtwwIUsbqx61VXrmWJixakgh4qPE1ubRA5raxRcRPJbeCVz52MJ80+UcmCHGu5Eg7A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="cm6Ek/l1";
arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.160.47
X-Received: from mail-oa1-f47.google.com (mail-oa1-f47.google.com [209.85.160.47])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4F6C606A32C
for <git@vger.kernel.org>; Sat, 7 Nov 2026 21:11:14 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D4F6C606A32C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-4ad587ba293so22666fac.0
for <git@vger.kernel.org>; Sat, 07 Nov 2026 13:11:14 -0800 (PST)
X-ARC-Seal: i=1; a=rsa-sha256; t=1794085873; cv=none;
d=google.com; s=arc-20260327;
b=MqxkQZLYWCKrznMjLQomfFFHvr93U6dCWldodcHcDFMhrSvel1OQgUSXkwVAmiwkpo
ORZ6U8DA+u6CHHwZs4AR2kum1KWJtQVJVoNjZWCHKBXx5MalyWdUjpW+GoTTqhozSbrN
wsIFn6IOUfbCqbV2XGxmKHlvaF9nEUikaytfeIi+SGqqwbz+wP42yueRehD8bgGNaLtD
kJtV7NVPU7bKj9EXhqQWSJRuyEz7mjMrBs1tYP1HpCpyoI/dTjUAcv7MQGpjwmnIDdDb
s7fuXIpXre+X06lTqR5sCim6js3Bh2wTMB3SG7j+bwV6j4XUZ0/QaNJywr9/Xjhz6V3y
N9Tg==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:dkim-signature;
bh=1kfSisbQylpCbT+K6GwaJ0J0zdzgWoYDzgStDrosgDg=;
fh=uLroqYqcx80GBCiwIGXxfGNsg5J6DEKTsHj898AfvWc=;
b=LoRNYbYuklGcznpfpGilm511GxFkXU5fYFac2tERK6CMD7SXl/che84Y+Ww/QHgsFj
eon8+s8/TM2Y2bVcaKLbMuGszlA69WO7D5SyCi7TGBfLMtEULrXkNFnrOHBup5+sIz+v
ox555vN6hga0nc73Wx5vtOEn16c5o3gJqd40IPlNFD2oJRrtnvxlwxOdTXqe0cXc1cnL
Vcui9LGS1kBjaTvn6CPVk07CL5qLK4eKaGkuXE+IANOBvMzjzORvxfUYnIyFHHFhP7Y2
PHAtP5CJrza6HnrP6KXyNhOZyiWb8cNjZUvOjO0rStavCHRpAN3oSvLzXMCsDYqoOnyN
RbZw==;
darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1794085873; x=1794690673; darn=vger.kernel.org;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=1kfSisbQylpCbT+K6GwaJ0J0zdzgWoYDzgStDrosgDg=;
b=cm6Ek/l1AVcebJrOAVwE7nTUuymRfg1ejc6mVJLAdWC2NC8nrxfVqJrq7f+X4jt0iA
96sMvqGuZQfcrH2jNkLBKproZ95K2S7c0P7DA2ZpwzSJkCm+V9w2o449FeNe7KoYAN3V
oaWiBSXqYDAbCFOkj7v2ao7HHtKMBF5He2L6e31S6KZtWOaAzGOxDUOBhitMtOpoVVVv
XWOvdzKYDbv1Pl+Hw/e34bXMyz5SjIY+Jc0pozgyIQi/7plebwNGu5G8uPCE4DtYjgO6
QOAF32FT7nmr5Q7nWGBjIfu9XXxsBXC4KsS0gestlsGnzfPH5BJtkeRd3Xfi1FKvGQ8y
JRQw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794085873; x=1794690673;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=1kfSisbQylpCbT+K6GwaJ0J0zdzgWoYDzgStDrosgDg=;
b=J8dGOKDPKMK2SkwQEu/l/Jg4ezcnrez8kVSX65/GcHX6vkhTyL9/qMZkBC+tsXvi66
0HFZLu47kfUp0z73EAplb+VROq2qvUMZg7jTzn6BDlCVWkDOQdwSq1JQflfGhM4RnPDd
RuYdoYfCEU1LpyD19K0Q3wJ+qJ4k+15XchIHO3NF6DFGhOWB7XlPZ6p2wKGl1brHFZn2
HraagJEMUH012mxovrrBzN1vhcEJINh/SCdXXrtDcOh82vArYptaSFQKg6APxm0RZNv+
20LQKJ8xuA+C05wJklj9oXX7ZiAnPrGzDAcrM/surYN6+5Ihtcczx7HA4JKIoIQmc3Rm
V9sw==
X-Gm-Message-State: APuU4Z8EGm/zUxvM16M4aCe6Lu10yGcwbydZWZwTsduJdbLL1g3GdXgP
GOLDp4mA3SU5PT/i6Gf6oW6Y8Cj3h+ypu8WAYowBLamyIDvJpcFayjgPFUsoTuQhg/G1fyR/jG8
1fJrLLEqqiH2jRTw6yKWegUvvCIPTGzgF1A1S13RG8g==
X-Gm-Gg: AYBFou0Eyzro19UwWjiTV4iV86J2/7nltwSwz1pZjkCSehiXFj8jTN6zD+joF2Y60ek
1mfAxsQSH4Qx6zkXBiLzQb57ON9zDjNSTMM4u3rfU1FTSVswvRLc4wgXlEwlyWXQbPKvX3ZoBa0
r/BsRLSF3WZCx5x3U/W516XWALyxE1sE3SUBOauiqRomPRAaOWQismnd1T3sTwszJZU399VVdoQ
rfvCAG6Gxun5P35I14V28c+qtlAItoIyeOyFzn/hD5T+bAW/yUBd44OYE5OPXECfrVZn/djKgvX
284UA4u0b2rZZbiF96Df54hpMhdMDHVae/Hk3suE5C985cRhSoHnuvwqQCtqQM+P6pdu7ob9LRa
4ZxALzxdyLq9VWlNS/r0aU4Gsf33ZGQ1vPbe9omEWXQY51SaREOBEHNggQoEOtrne5tgKPVtC9W
uK5lkzbqB72cLm9/2MWy56gCnqWfeo95TQH9Bt/ro9oRZjs8VmatY8
X-Received: by 2002:a05:6871:c920:b0:488:5278:e2f5 with SMTP id
586e51a60fabf-4ad98b4ffb0mr3561100fac.30.1794085873591; Sat, 07 Nov 2026
13:11:13 -0800 (PST)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261107121119.2995843-1-andy.koppe@gmail.com>
X-Gm-Features: AclHuK_3tbBZ-6zRwa3vAK5Wv6c8R-FsCeqLclbodm7Au5VVUgfXPpc-QsWDjvI
X-Cc: git@vger.kernel.org