git: fatal: mmap failed: Cannot allocate memory

Bug #1868716 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git (Ubuntu)
New
Undecided
Unassigned
Focal
New
Undecided
Unassigned

Bug Description

seen with current focal, working on the GCC upstream git:

$ contrib/gcc_update # a git pull and postprocessing
Updating GIT tree
fatal: mmap failed: Cannot allocate memory
Attempting to update a dirty git tree!
Commit or stash your changes first and retry.

$ git status
Refresh index: 100% (99545/99545), done.
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

after that, the update works.

Matthias Klose (doko)
tags: added: rls-ff-incoming
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

can you please first do:

$ git remote update
(that will try to download all the things without reconciling your tree)

$ git repack

$ git clean -f -x -d
$ git clean -f -X -d

Then

$ git pull

It is known that on very large trees, with many dirty changes things don't work in a single go.

Changed in git (Ubuntu):
status: New → Incomplete
Revision history for this message
Matthias Klose (doko) wrote :

this helps like a git status, but comes back after a while.

Changed in git (Ubuntu Focal):
status: Incomplete → New
tags: added: rls-ff-notfixing
removed: rls-ff-incoming
Changed in git (Ubuntu Focal):
milestone: none → focal-updates
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.