Debian Bug report logs - #696178
git: Non-helpful error message if expected object file is a directory: fatal: Out of memory? mmap failed: No such device

version graph

Package: git; Maintainer for git is Jonathan Nieder <[email protected]>; Source for git is src:git (PTS, buildd, popcon).

Reported by: Axel Beckert <[email protected]>

Date: Mon, 17 Dec 2012 16:15:07 UTC

Severity: minor

Found in version git/1:1.7.10.4-2

Full log


Message #10 received at [email protected] (full text, mbox, reply):

Received: (at 696178) by bugs.debian.org; 11 Jun 2018 17:59:09 +0000
From [email protected] Mon Jun 11 17:59:09 2018
X-Spam-Checker-Version: SpamAssassin 3.4.1-bugs.debian.org_2005_01_02
	(2015-04-28) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-9.1 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FOURLA,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham
	autolearn_force=no version=3.4.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 12; hammy, 129; neutral, 34; spammy,
	0. spammytokens: hammytokens:0.000-+--Maintainer, 0.000-+--deb9u2,
	0.000-+--backports, 0.000-+--deb9u3, 0.000-+--amd64
Return-path: <[email protected]>
Received: from rere.qmqm.pl ([91.227.64.183])
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.89)
	(envelope-from <[email protected]>)
	id 1fSR5w-00074j-Rq
	for [email protected]; Mon, 11 Jun 2018 17:59:09 +0000
Received: from remote.user (localhost [127.0.0.1])
	by rere.qmqm.pl (Postfix) with ESMTPSA id 414LFB3dWJz1k
	for <[email protected]>; Mon, 11 Jun 2018 19:52:14 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1;
	t=1528739534; bh=s9v9tUJtJVLLh0edzsjsM6vJ+IUIMTD/0e9DgevTHFQ=;
	h=Date:From:To:Subject:From;
	b=FovcrS+LniqdxoqkNlJs4R/MBDtmSG+gOwMN9nHdzyNvatgj00DD2Zfp96bNxnDUU
	 XylqNGk6xpFGdJOsJ1ba1C489oJ1kjOsC+OLpMb+R9AzSYdI7ykTXrzD8dEk2LDcUc
	 QFV8jBjBaunIIuvrFBeoonUEEGFTDm2DzTMEUmAMKUKjnAM8TgQpIO/mlVw4YkmUbF
	 FLUyKzDuHaQCjHDLrxtB4VBhzyo5O3WJSKOUDFYdb641/wXTUIOsEp6vABbHw+656Y
	 rw5XSnKShBZdhW2ZBub6dTU3dcQzEUqcgj6hSKQi+/+U7x7Dx7hTqLOFvk4Nj1QjPn
	 dprWj53jmYHvQ==
Date: Mon, 11 Jun 2018 19:52:36 +0200
From: Michał Mirosław <[email protected]>
To: [email protected]
Subject: git: "mmap: No such device" on broken .git tree
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.10.0 (2018-05-17)
X-Greylist: delayed 386 seconds by postgrey-1.36 at buxtehude; Mon, 11 Jun 2018 17:59:08 UTC
Dear Git Maintainer,

This bug is present in git from testing/backports.

# LANG=C apt policy git
git:
  Installed: 1:2.17.1-1~bpo9+1
  Candidate: 1:2.17.1-1~bpo9+1
  Version table:
 *** 1:2.17.1-1~bpo9+1 500
        500 http://ftp.pl.debian.org/debian stretch-backports/main amd64 Packages
        100 /var/lib/dpkg/status
     1:2.11.0-3+deb9u3 500
        500 http://security.debian.org stretch/updates/main amd64 Packages
        500 http://ftp.pl.debian.org/debian stretch-proposed-updates/main amd64 Packages
     1:2.11.0-3+deb9u2 500
        500 http://ftp.pl.debian.org/debian stretch/main amd64 Packages

A script to reproduce:

-----------------
#!/bin/bash
git init foo
cd foo
touch bar
git add -A
git commit -mtest
for i in .git/objects/*/*; do rm -f $i; mkdir $i; break; done
git fsck
# fatal: mmap failed: No such device
------------

Best Regards,
Michał Mirosław



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 14:29:01 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.