From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B3FC3D3B3 for ; Sun, 22 Feb 2026 16:18:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771777115; cv=none; b=X/hZb0ViVFHJQrGCicTFNVkbLDzwczMq+7K447z4XNBRbHMA8uyJIBSG2Ek+hwP1gYEM1ryeIxmOwyAPb+CYkF+WAWLsP/FONaLJ5TdPLgDO24E5i22Jc+V58epfYkFJkxir3JNYs3z4QtKHuQ15/8ShQjirbT0QZ+W9S+Yc1sg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771777115; c=relaxed/simple; bh=HVegD0r59Aluia6Tjd1GIejfGADw9CALhMwXgUZrW+0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qBJJkgRrUN3jBKoJCuwvf3/GNl5seASMzAHTXjmn/2sZG525CBNfGaJumcvyBkU7Riw6AOFfuDFywcWoeS6SRIAdZ6YHhKTXoGzQsUpwhNi4HmS93nY00sIQKE6XNfKie+8AKabzPXnk/Mqemmu7FldJiFq2t048Rjrg5ZxADr0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fvJdRVlf; arc=none smtp.client-ip=209.85.128.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fvJdRVlf" Received: by mail-wm1-f66.google.com with SMTP id 5b1f17b1804b1-4806ce0f97bso28264965e9.0 for ; Sun, 22 Feb 2026 08:18:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771777112; x=1772381912; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=T3+0cStVqfrXjDlPYua5OMZbmg1Ux9J+fwk2lw8nOH4=; b=fvJdRVlfGitu+HqOS2EUXNTEDXdZfaEkM4508kWGji2Q9wIEERq+CDJC1f/MBmICME q7m7L2cGKv7mQWiyRa9vALJhd0PWD85vygIMi24VucPS/l/Q6yeArRwU8FRianM6v2A4 aPl0z5FBKVLrDhYb6eZyVG+xevSj8TQ2wHJLo7TL4sZBSwP+B9mX8ucGHS2Puv98kmKw suVxohWdtQjUvvcLVwkcW+AsotUqKP88KORKJQfWx6Raw+8rwldi1b34v92e0O9gHTKI cHgbeGDltVY9J9PmAN51OXxhtd/EmG99hW0gUtfug9iEIN/tbPLj5ZgUjJm9D95lXDJM QWpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771777112; x=1772381912; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=T3+0cStVqfrXjDlPYua5OMZbmg1Ux9J+fwk2lw8nOH4=; b=OjOae37WLwv6ORRh17dmg9bOV8F7EZFfn9JnV46AMKzBxT1D4I1XQR+a22N/qnFbqd w+wr+uY8Uad+4aRze4PigaxvmsVu8PA7JtxLDKxjJbdAdIX4fAkV9tco05L4717ceNsg KJ05OH6PJmjNOq8Y8dtPnR6v0SDjZO5FRXmB0Q6znatkpE3g9ht26N3zpwiNSq1oYuEX vgHkmKGo7SAGNVsVzyehV2zMcgTOL2u6UtiLSkQWs0Zl0ApVQtearVwxbVm/obQLFkvx IHL4GLsF4xcLd57sj5Zpi4d49NyprkTHOAGQMYj6rtVqcBNduSHZh2MM9sGFDIUEDSQa Phdg== X-Forwarded-Encrypted: i=1; AJvYcCXnpaZ9hc+9uva3NQ6iT9rTpwEQ6Q7N3V4dcjopZfUIwZ/akhz1pFHiMctnrpfsXFbpAws/D4BMY7m3j+Q=@vger.kernel.org X-Gm-Message-State: AOJu0Yy7SfZUxtZpNA3tNk4jwNLH7ZxP2pDGL5+Nqkn6leVNJM8z51uc F8KZMSRZyUVmMiKD3mqZuQz+zEdO5RNUVmHMmpNbUGJOzxAIuVwXWmpp X-Gm-Gg: AZuq6aJ991Lzg51VgT3TiHLpPnvNYJY0MNDdUGRvt1mwKuu0dlzsFU83Q4zBWByrByO 43hssPd7aRDIp1Iupx58nGzqLdXk5HlzVlhrJdLUsbPU/y4hX0M5xdOwRG/W0J32zkwT5jk+T7I s1Qx8VXsneI8y+MKjnWwvvlN63L2G2hwmLpc325EFKJuc5bp3lbbHhjylnKithbd+nftg7RasBN TjGFIWmNx2kbqJQ0sYhQD3wzlJQHp0CbUjwKhHPeL0hwzK4h/p+28nS5ufV5Qez0oXxMOVNRZCc CganiZk9pLndu801Ij737Clxge/HjFMouo0On6yZklYD5HkA0QtS9EdJhRHLHKsQKMoStK9BuyH 0a+kO5H6ukz10EZXGNIeCW34rchDUdf95RrnjXhS1IjhyTYK5idv0oyjBnBpCI8xn2631jteniN W/XbNMMrG4YJGXTtZQkms= X-Received: by 2002:a05:600c:1f8f:b0:483:6d4e:9811 with SMTP id 5b1f17b1804b1-483a95ee3f2mr109875865e9.31.1771777111750; Sun, 22 Feb 2026 08:18:31 -0800 (PST) Received: from localhost ([212.73.77.104]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-483a9b75e63sm220612265e9.6.2026.02.22.08.18.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Feb 2026 08:18:31 -0800 (PST) From: Askar Safin To: Joe Perches Cc: nroycea+kernel@gmail.com, linux-kernel@vger.kernel.org Subject: Bug: get_maintainer: Bad divisor in main::vcs_assign: 0 Date: Sun, 22 Feb 2026 19:18:13 +0300 Message-ID: <20260222161826.2858606-1-safinaskar@gmail.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi. I found a bug in get_maintainer.pl: it sometimes shows message "Bad divisor in main::vcs_assign: 0". Here are exact steps to reproduce: ==== begin ==== (steps are based on https://stackoverflow.com/a/3489576 ) (these steps create Linux repo, which has exactly one commit: a95f71ad3e2e224277508e006580c333d0a5fe36) d-user@comp:/tmp$ mkdir linux d-user@comp:/tmp$ cd linux d-user@comp:/tmp/linux$ git init --initial-branch=master Initialized empty Git repository in /tmp/linux/.git/ d-user@comp:/tmp/linux$ git remote add origin https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d-user@comp:/tmp/linux$ git fetch origin --depth=1 a95f71ad3e2e224277508e006580c333d0a5fe36 remote: Enumerating objects: 98477, done. remote: Counting objects: 100% (98477/98477), done. remote: Compressing objects: 100% (95769/95769), done. Receiving objects: 100% (98477/98477), 272.08 MiB | 5.00 MiB/s, done. remote: Total 98477 (delta 7730), reused 21396 (delta 1658), pack-reused 0 (from 0) Resolving deltas: 100% (7730/7730), done. >From https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux * branch a95f71ad3e2e224277508e006580c333d0a5fe36 -> FETCH_HEAD d-user@comp:/tmp/linux$ git reset --hard FETCH_HEAD Updating files: 100% (92984/92984), done. HEAD is now at a95f71ad3 Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rmk/linux d-user@comp:/tmp/linux$ scripts/get_maintainer.pl -f Documentation/driver-api/early-userspace/early_userspace_support.rst Bad divisor in main::vcs_assign: 0 Jonathan Corbet (maintainer:DOCUMENTATION) Shuah Khan (reviewer:DOCUMENTATION) linux-doc@vger.kernel.org (open list:DOCUMENTATION) linux-kernel@vger.kernel.org (open list) ==== end ==== You may say these steps are too complex. Well, let me explain. Originally I found a bug so: I simply cloned Linux with "depth=1". HEAD was at a95f71ad3e2e at that moment. Then I typed get_maintainer.pl command similar to above and got this "Bad divisor" message. But then HEAD moved, and I was unable to reproduce the bug anymore. So I came up with these instructions, which recreate my original setup, i. e. simulate situation "We just did clone with --depth=1, and HEAD is at a95f71ad3e2e". Steps above create a repo, which has exactly one commit: a95f71ad3e2e. Also: get_maintainer.pl from current master is identical to get_maintainer.pl from a95f71ad3e2e, so the problem is still present in current get_maintainer.pl . -- Askar Safin