git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[bug] Stashes lost after out-of-memory situation

From
MMMarek Mrva <mrva@eof-studios.com>
Date
Oct 23, 2020, 14:53 UTC
Message-ID
<65a3061a-47ef-9ca6-2468-5449cfc5b37c@eof-studios.com>
Hello, hopefully this is the correct mailing list - apologies if it is not.

After issuing "git stash pop" while being low on memory, the following was printed to the console:

       0 [main] git 2061 fhandler_disk_file::fixup_mmap_after_fork: 
requested 0x6FFFC1550000 != 0x0 mem alloc base 0x0, state 0x10000,
size 17545957736448, Win32 error 1455
   36836 [main] git 2061 C:\cygwin64\bin\git.exe: *** fatal error in 
forked process - recreate_mmaps_after_fork_failed
   37523 [main] git 2061 cygwin_exception::open_stackdumpfile: Dumping 
stack trace to git.exe.stackdump
       0 [main] git 2056 dofork: child -1 - forked process 12100 died 
unexpectedly, retry 0, exit code 0x100, errno 11
error: cannot fork() for status: Resource temporarily unavailable
Dropped refs/stash@{0} (06d44ccc5ed2ac93b370100f481147ae4f0065db)
error: cannot fork() for rev-parse: Resource temporarily unavailable

Afterwards, the result of "git stash list" is empty, even though there used to be more than 10+ stashes saved.

Obviously while being low on memory, one should not expect commands to run properly. Losing all the *other* stashes could hopefully be somehow avoided, if possible. It is worth mentioning this happened in a cygwin environment on Windows.

Any help would be greatly appreciated! :)

With best regards, Marek Mrva

Next: René Scharfe
Message 1 of 4 in “[bug] Stashes lost after out-of-memory situation”
  1. Marek MrvaOct 23, 2020
  2. René ScharfeOct 24, 2020
  3. Thomas BraunOct 25, 2020
  4. René ScharfeOct 25, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.