git: fatal: mmap failed: Cannot allocate memory
Bug #1868716 reported by
Matthias Klose
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.
tags: | added: rls-ff-incoming |
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.
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.