{"thread":{"id":"50556","subject":"Bug: git for Windows spawning a lot of processes recursively","startedAt":"2019-02-22T03:37:38Z","lastAt":"2019-03-13T13:58:52Z","messageCount":5,"participants":["Garcia, Pierre","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"369880","messageId":"SN6PR03MB3647F1CDFD95F29C86F54FF8BA7F0@SN6PR03MB3647.namprd03.prod.outlook.com","threadId":"50556","inReplyTo":null,"subject":"Bug: git for Windows spawning a lot of processes recursively","fromName":"Garcia, Pierre","fromEmail":"pgarcia@trusimulation.com","sentAt":"2019-02-22T03:36:45Z","receivedAt":"2019-02-22T03:37:38Z","isPatch":false,"sender":{"key":"pgarcia@trusimulation.com","avatar":null},"body":"Hello,\n\nI'd like to report an issue with git for Windows\n\nGit version 2.20.1\nWindows 7 x64 (Build 7601: Service Pack 1)\n\n----------------------------------------------------------------------------\nIssue:\nWhen running from Git-bash (not even inside a repo), git commands from built-in are OK, but if I use the exe that is located at C:\\Program Files\\Git\\bin\\git.exe, the process takes long to execute and then exits with error \"error launching git: The filename or extension is too long.\":\n\n$ git --version\ngit version 2.20.1.windows.1\n\n$ which git\n/mingw64/bin/git\n\n$ /c/Program\\ Files/Git/bin/git.exe --version\nerror launching git: The filename or extension is too long.\n\n----------------------------------------------------------------------------\nIt started out of the blue, nothing special was done on the computer, the previous day I cloned some repos, the next it was not working anymore.\nI tried uninstall-reinstall with no success.\nI'm using Gitextensions as well, but I verified that the problem was occurring without Gitextensions (uninstalled at the time the traces were taken).\n\n----------------------------------------------------------------------------\nI ran procmon.exe to monitor the activity of the process and I found out that git.exe was spawning itself 385 times in total in the trace I took, until all processes exit with error code 1, here is an extract of the procmon trace, showing thread and process activity for git.exe (I have more exhaustive trace but the file is quite big), I included the environment variables on the first call:\n\nTime of Day\tProcess Name\tPID\tOperation\tPath\tResult\tDetail\n8:57:20.7\tgit.exe\t12744\tProcess Start\t\tSUCCESS\t\"Parent PID: 8412, Command line: \"\"C:\\Program Files\\Git\\bin\\git.exe\"\"  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n;\t=::=::\\\n;\t=C:=C:\\Users\\gpierre\\Desktop\n;\t=ExitCode=00000001\n;\tALLUSERSPROFILE=C:\\ProgramData\n;\tCommonProgramFiles=C:\\Program Files\\Common Files\n;\tCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files\n;\tCommonProgramW6432=C:\\Program Files\\Common Files\n;\tComSpec=C:\\windows\\system32\\cmd.exe\n;\tDEFLOGDIR=C:\\ProgramData\\McAfee\\Endpoint Security\\Logs\n;\tFP_NO_HOST_CHECK=NO\n;\tGTK_BASEPATH=C:\\Program Files (x86)\\GtkSharp\\2.12\\\n;\tHasSCCM2012Client=1\n;\tHOME=C:\\Users\\gpierre\n;\tHOMEDRIVE=C:\n;\tHOMEPATH=\\Users\\gpierre\n;\tHOMESHARE=C:\\Users\\gpierre\n;\tLOCALAPPDATA=C:\\Users\\gpierre\\AppData\\Local\n;\tNUMBER_OF_PROCESSORS=4\n;\tOS=Windows_NT\n;\tPath=C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\windows\\system32\\config\\systemprofile\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY\\;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\1E\\NomadBranch\\;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\\n;\tPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC\n;\tPROCESSOR_ARCHITECTURE=AMD64\n;\tPROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel\n;\tPROCESSOR_LEVEL=6\n;\tPROCESSOR_REVISION=5e03\n;\tProgramData=C:\\ProgramData\n;\tProgramFiles=C:\\Program Files\n;\tProgramFiles(x86)=C:\\Program Files (x86)\n;\tProgramW6432=C:\\Program Files\n;\tPROMPT=$P$G\n;\tPSModulePath=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules\n;\tPUBLIC=C:\\Users\\Public\n;\tSESSIONNAME=Console\n;\tSNC_LIB=gsskrb5.dll\n;\tSOEDataPartition=C:\n;\tSOEDesktopAdminModel=User\n;\tSOESystemPartitionLabel=SOE-Disk\n;\tSystemDrive=C:\n;\tSystemRoot=C:\\windows\n;\tTEMP=C:\\Users\\gpierre\\AppData\\Local\\Temp\n;\tTMP=C:\\Users\\gpierre\\AppData\\Local\\Temp\n;\tUSERNAME=gpierre\n;\tUSERPROFILE=C:\\Users\\gpierre\n;\tVBOX_MSI_INSTALL_PATH=C:\\Program Files\\Oracle\\VirtualBox\\\n;\tVS140COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\\n;\tVS80COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 8\\Common7\\Tools\\\n;\twindir=C:\\windows\n;\twindows_tracing_flags=3\n;\twindows_tracing_logfile=C:\\BVTBin\\Tests\\installpackage\\csilogfile.log\"\n8:57:20.7\tgit.exe\t12744\tThread Create\t\tSUCCESS\tThread ID: 12748\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tImage Base: 0x13a0000, Image Size: 0x52000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77b70000, Image Size: 0x19f000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77950000, Image Size: 0x11f000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefd860000, Image Size: 0x6a000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefef60000, Image Size: 0x9f000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\shell32.dll\tSUCCESS\tImage Base: 0x7fefdc20000, Image Size: 0xd8a000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\shlwapi.dll\tSUCCESS\tImage Base: 0x7feffde0000, Image Size: 0x71000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefdae0000, Image Size: 0x67000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77a70000, Image Size: 0xfa000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefed30000, Image Size: 0xe000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefdb50000, Image Size: 0xcb000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefe9b0000, Image Size: 0x2e000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7fefed40000, Image Size: 0x109000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0x31000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefd5e0000, Image Size: 0xc000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefec50000, Image Size: 0xdb000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7fefee50000, Image Size: 0x1f000\n8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7feff6b0000, Image Size: 0x12d000\n8:57:20.8\tgit.exe\t12744\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12756, Command line: git.exe  --version\n8:57:20.8\tgit.exe\t12756\tProcess Start\t\tSUCCESS\t\"Parent PID: 12744, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n8:57:20.8\tgit.exe\t12756\tThread Create\t\tSUCCESS\tThread ID: 12760\n\nThis repeats 385 times (I removed the Load Image lines):\n\n8:57:20.9\tgit.exe\t12756\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12764, Command line: git.exe  --version\n8:57:20.9\tgit.exe\t12764\tProcess Start\t\tSUCCESS\t\"Parent PID: 12756, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n8:57:20.9\tgit.exe\t12764\tThread Create\t\tSUCCESS\tThread ID: 12768\n8:57:20.9\tgit.exe\t12764\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12772, Command line: git.exe  --version\n8:57:20.9\tgit.exe\t12772\tProcess Start\t\tSUCCESS\t\"Parent PID: 12764, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n8:57:20.9\tgit.exe\t12772\tThread Create\t\tSUCCESS\tThread ID: 12776\n8:57:21.0\tgit.exe\t12772\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12780, Command line: git.exe  --version\n8:57:21.0\tgit.exe\t12780\tProcess Start\t\tSUCCESS\t\"Parent PID: 12772, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n8:57:21.0\tgit.exe\t12780\tThread Create\t\tSUCCESS\tThread ID: 12784\n8:57:21.0\tgit.exe\t12780\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12788, Command line: git.exe  --version\n8:57:21.0\tgit.exe\t12788\tProcess Start\t\tSUCCESS\t\"Parent PID: 12780, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n8:57:21.0\tgit.exe\t12788\tThread Create\t\tSUCCESS\tThread ID: 12792\n...\n\nAfter that the processes exit one by one (all with error code 1) in reverse order:\n\n...\n8:57:48.6\tgit.exe\t12788\tThread Exit\t\tSUCCESS\tThread ID: 12792, User Time: 0.0000000, Kernel Time: 0.0312002\n8:57:48.6\tgit.exe\t12788\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,576,960, Peak Private Bytes: 1,654,784, Working Set: 4,235,264, Peak Working Set: 4,272,128\n8:57:48.6\tgit.exe\t12780\tThread Exit\t\tSUCCESS\tThread ID: 12784, User Time: 0.0000000, Kernel Time: 0.0312002\n8:57:48.6\tgit.exe\t12780\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,597,440, Peak Private Bytes: 1,654,784, Working Set: 4,251,648, Peak Working Set: 4,288,512\n8:57:48.6\tgit.exe\t12772\tThread Exit\t\tSUCCESS\tThread ID: 12776, User Time: 0.0000000, Kernel Time: 0.0312002\n8:57:48.6\tgit.exe\t12772\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,601,536, Peak Private Bytes: 1,642,496, Working Set: 4,304,896, Peak Working Set: 4,341,760\n8:57:48.6\tgit.exe\t12764\tThread Exit\t\tSUCCESS\tThread ID: 12768, User Time: 0.0156001, Kernel Time: 0.0312002\n8:57:48.6\tgit.exe\t12764\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0156001 seconds, Kernel Time: 0.0468003 seconds, Private Bytes: 1,597,440, Peak Private Bytes: 1,638,400, Working Set: 4,263,936, Peak Working Set: 4,300,800\n8:57:48.6\tgit.exe\t12756\tThread Exit\t\tSUCCESS\tThread ID: 12760, User Time: 0.0000000, Kernel Time: 0.0156001\n8:57:48.6\tgit.exe\t12756\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0156001 seconds, Private Bytes: 1,581,056, Peak Private Bytes: 1,642,496, Working Set: 4,222,976, Peak Working Set: 4,259,840\n8:57:48.6\tgit.exe\t12744\tThread Exit\t\tSUCCESS\tThread ID: 12748, User Time: 0.0000000, Kernel Time: 0.0312002\n8:57:48.6\tgit.exe\t12744\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,560,576, Peak Private Bytes: 1,650,688, Working Set: 4,231,168, Peak Working Set: 4,308,992\n\n----------------------------------------------------------------------------\nI never saw that before, it seems every command is doing that (tried status, log, init, fetch).\nIt happened to me before that GitExtensions or Visual Studio would spawn a lot of git processes, but nothing like this.\nI'm wondering if there is a glitch in the code that would allow git.exe to call itself with same arguments, leading to an (quasi) endless loop of calls.\nLet me know what I can do to help isolating the problem, I'll assist if possible.\n\n----------------------------------------------------------------------------\nFor reference, here is what the built-in git --version is doing from git bash, only two processes are spawned, git --version first (the command line), then git rev-parse, and then the process exits:\n\n9:55:51.2\tgit.exe\t5604\tProcess Start\t\tSUCCESS\t\"Parent PID: 752, Command line: \"\"C:\\Program Files\\Git\\mingw64\\bin\\git.exe\"\" --version, Current directory: C:\\Users\\gpierre\\, Environment: \n;\tACLOCAL_PATH=C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal\n;\tALLUSERSPROFILE=C:\\ProgramData\n;\tAPPDATA=C:\\Users\\gpierre\\AppData\\Roaming\n;\tCOMMONPROGRAMFILES=C:\\Program Files\\Common Files\n;\tCOMPUTERNAME=\n;\tCOMSPEC=C:\\windows\\system32\\cmd.exe\n;\tCONFIG_SITE=C:/Program Files/Git/mingw64/etc/config.site\n;\tCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files\n;\tCommonProgramW6432=C:\\Program Files\\Common Files\n;\tDEFLOGDIR=C:\\ProgramData\\McAfee\\Endpoint Security\\Logs\n;\tDISPLAY=needs-to-be-defined\n;\tEXEPATH=C:\\Program Files\\Git\n;\tFP_NO_HOST_CHECK=NO\n;\tGTK_BASEPATH=C:\\Program Files (x86)\\GtkSharp\\2.12\\\n;\tHOME=C:\\Users\\gpierre\n;\tHOMEDRIVE=C:\n;\tHOMEPATH=\\Users\\gpierre\n;\tHOSTNAME=\n;\tHasSCCM2012Client=1\n;\tINFOPATH=C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info\n;\tLANG=en_US.UTF-8\n;\tLOCALAPPDATA=C:\\Users\\gpierre\\AppData\\Local\n;\tLOGONSERVER=\\\\\n;\tMANPATH=C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man\n;\tMINGW_CHOST=x86_64-w64-mingw32\n;\tMINGW_PACKAGE_PREFIX=mingw-w64-x86_64\n;\tMINGW_PREFIX=C:/Program Files/Git/mingw64\n;\tMSYSTEM=MINGW64\n;\tMSYSTEM_CARCH=x86_64\n;\tMSYSTEM_CHOST=x86_64-w64-mingw32\n;\tMSYSTEM_PREFIX=C:/Program Files/Git/mingw64\n;\tNUMBER_OF_PROCESSORS=4\n;\tORIGINAL_PATH=C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\gpierre\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\Users\\gpierre\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\1E\\NomadBranch;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0\n;\tORIGINAL_TEMP=C:/Users/gpierre/AppData/Local/Temp\n;\tORIGINAL_TMP=C:/Users/gpierre/AppData/Local/Temp\n;\tOS=Windows_NT\n;\tPATH=C:\\Users\\gpierre\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\gpierre\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\Users\\gpierre\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\1E\\NomadBranch;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl\n;\tPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC\n;\tPKG_CONFIG_PATH=C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig\n;\tPLINK_PROTOCOL=ssh\n;\tPROCESSOR_ARCHITECTURE=AMD64\n;\tPROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel\n;\"\n9:55:51.2\tgit.exe\t5604\tThread Create\t\tSUCCESS\tThread ID: 8844\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\git.exe\tSUCCESS\tImage Base: 0x1160000, Image Size: 0x2f0000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77250000, Image Size: 0x19f000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77130000, Image Size: 0x11f000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefcde0000, Image Size: 0x6a000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libiconv-2.dll\tSUCCESS\tImage Base: 0x66000000, Image Size: 0x10b000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefd950000, Image Size: 0x9f000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libintl-8.dll\tSUCCESS\tImage Base: 0x61cc0000, Image Size: 0x28000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefd7d0000, Image Size: 0xdb000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7feff520000, Image Size: 0x1f000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7fefebf0000, Image Size: 0x12d000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libpcre2-8-0.dll\tSUCCESS\tImage Base: 0x64380000, Image Size: 0x54000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\zlib1.dll\tSUCCESS\tImage Base: 0x62e80000, Image Size: 0x1f000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77030000, Image Size: 0xfa000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefd6c0000, Image Size: 0x67000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefd290000, Image Size: 0xe000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0xcb000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\ws2_32.dll\tSUCCESS\tImage Base: 0x7fefd240000, Image Size: 0x4d000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\nsi.dll\tSUCCESS\tImage Base: 0x7fefed50000, Image Size: 0x8000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libssp-0.dll\tSUCCESS\tImage Base: 0x68ac0000, Image Size: 0xe000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefed20000, Image Size: 0x2e000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7feff410000, Image Size: 0x109000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefccd0000, Image Size: 0x31000\n9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefccc0000, Image Size: 0xc000\n9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\cryptsp.dll\tSUCCESS\tImage Base: 0x7fefc530000, Image Size: 0x18000\n9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\rsaenh.dll\tSUCCESS\tImage Base: 0x7fefc230000, Image Size: 0x47000\n9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\cryptbase.dll\tSUCCESS\tImage Base: 0x7fefcbf0000, Image Size: 0xf000\n9:55:51.3\tgit.exe\t5604\tThread Exit\t\tSUCCESS\tThread ID: 8844, User Time: 0.0000000, Kernel Time: 0.0468003\n9:55:51.3\tgit.exe\t5604\tProcess Exit\t\tSUCCESS\tExit Status: 0, User Time: 0.0000000 seconds, Kernel Time: 0.0468003 seconds, Private Bytes: 2,940,928, Peak Private Bytes: 2,981,888, Working Set: 4,980,736, Peak Working Set: 4,980,736\n9:55:51.6\tgit.exe\t5560\tProcess Start\t\tSUCCESS\t\"Parent PID: 9080, Command line: \"\"C:\\Program Files\\Git\\mingw64\\bin\\git.exe\"\" rev-parse --git-dir --is-inside-git-dir --is-bare-repository --is-inside-work-tree --short HEAD, Current directory: C:\\Users\\gpierre\\, Environment: \n9:55:51.6\tgit.exe\t5560\tThread Create\t\tSUCCESS\tThread ID: 5248\n9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\git.exe\tSUCCESS\tImage Base: 0x190000, Image Size: 0x2f0000\n9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77250000, Image Size: 0x19f000\n9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77130000, Image Size: 0x11f000\n9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefcde0000, Image Size: 0x6a000\n9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libiconv-2.dll\tSUCCESS\tImage Base: 0x66000000, Image Size: 0x10b000\n9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefd950000, Image Size: 0x9f000\n9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libintl-8.dll\tSUCCESS\tImage Base: 0x61cc0000, Image Size: 0x28000\n9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefd7d0000, Image Size: 0xdb000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7feff520000, Image Size: 0x1f000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7fefebf0000, Image Size: 0x12d000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libpcre2-8-0.dll\tSUCCESS\tImage Base: 0x64380000, Image Size: 0x54000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\zlib1.dll\tSUCCESS\tImage Base: 0x62e80000, Image Size: 0x1f000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77030000, Image Size: 0xfa000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefd6c0000, Image Size: 0x67000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefd290000, Image Size: 0xe000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0xcb000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\ws2_32.dll\tSUCCESS\tImage Base: 0x7fefd240000, Image Size: 0x4d000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\nsi.dll\tSUCCESS\tImage Base: 0x7fefed50000, Image Size: 0x8000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libssp-0.dll\tSUCCESS\tImage Base: 0x68ac0000, Image Size: 0xe000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefed20000, Image Size: 0x2e000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7feff410000, Image Size: 0x109000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefccd0000, Image Size: 0x31000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefccc0000, Image Size: 0xc000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\cryptsp.dll\tSUCCESS\tImage Base: 0x7fefc530000, Image Size: 0x18000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\rsaenh.dll\tSUCCESS\tImage Base: 0x7fefc230000, Image Size: 0x47000\n9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\cryptbase.dll\tSUCCESS\tImage Base: 0x7fefcbf0000, Image Size: 0xf000\n9:55:51.7\tgit.exe\t5560\tThread Exit\t\tSUCCESS\tThread ID: 5248, User Time: 0.0000000, Kernel Time: 0.0780005\n9:55:51.7\tgit.exe\t5560\tProcess Exit\t\tSUCCESS\tExit Status: 128, User Time: 0.0000000 seconds, Kernel Time: 0.0780005 seconds, Private Bytes: 2,932,736, Peak Private Bytes: 2,973,696, Working Set: 5,062,656, Peak Working Set: 5,062,656\n\n\nThanks a lot! Cheers,\nPierre G.\n\n"},{"id":"371008","messageId":"nycvar.QRO.7.76.6.1903082154320.41@tvgsbejvaqbjf.bet","threadId":"50556","inReplyTo":"SN6PR03MB3647F1CDFD95F29C86F54FF8BA7F0@SN6PR03MB3647.namprd03.prod.outlook.com","subject":"Re: Bug: git for Windows spawning a lot of processes recursively","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-03-08T20:55:30Z","receivedAt":"2019-03-08T20:55:56Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Pierre,\n\nOn Fri, 22 Feb 2019, Garcia, Pierre wrote:\n\n> I'd like to report an issue with git for Windows\n> \n> Git version 2.20.1\n> Windows 7 x64 (Build 7601: Service Pack 1)\n> \n> ----------------------------------------------------------------------------\n> Issue:\n> When running from Git-bash (not even inside a repo), git commands from\n> built-in are OK, but if I use the exe that is located at C:\\Program\n> Files\\Git\\bin\\git.exe, the process takes long to execute and then exits\n> with error \"error launching git: The filename or extension is too\n> long.\":\n\nIs this still happening with v2.21.0? Or for that matter, with the latest\nsnapshot at https://wingit.blob.core.windows.net/files/index.html?\n\nCiao,\nJohannes\n\n> \n> $ git --version\n> git version 2.20.1.windows.1\n> \n> $ which git\n> /mingw64/bin/git\n> \n> $ /c/Program\\ Files/Git/bin/git.exe --version\n> error launching git: The filename or extension is too long.\n> \n> ----------------------------------------------------------------------------\n> It started out of the blue, nothing special was done on the computer, the previous day I cloned some repos, the next it was not working anymore.\n> I tried uninstall-reinstall with no success.\n> I'm using Gitextensions as well, but I verified that the problem was occurring without Gitextensions (uninstalled at the time the traces were taken).\n> \n> ----------------------------------------------------------------------------\n> I ran procmon.exe to monitor the activity of the process and I found out that git.exe was spawning itself 385 times in total in the trace I took, until all processes exit with error code 1, here is an extract of the procmon trace, showing thread and process activity for git.exe (I have more exhaustive trace but the file is quite big), I included the environment variables on the first call:\n> \n> Time of Day\tProcess Name\tPID\tOperation\tPath\tResult\tDetail\n> 8:57:20.7\tgit.exe\t12744\tProcess Start\t\tSUCCESS\t\"Parent PID: 8412, Command line: \"\"C:\\Program Files\\Git\\bin\\git.exe\"\"  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> ;\t=::=::\\\n> ;\t=C:=C:\\Users\\gpierre\\Desktop\n> ;\t=ExitCode=00000001\n> ;\tALLUSERSPROFILE=C:\\ProgramData\n> ;\tCommonProgramFiles=C:\\Program Files\\Common Files\n> ;\tCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files\n> ;\tCommonProgramW6432=C:\\Program Files\\Common Files\n> ;\tComSpec=C:\\windows\\system32\\cmd.exe\n> ;\tDEFLOGDIR=C:\\ProgramData\\McAfee\\Endpoint Security\\Logs\n> ;\tFP_NO_HOST_CHECK=NO\n> ;\tGTK_BASEPATH=C:\\Program Files (x86)\\GtkSharp\\2.12\\\n> ;\tHasSCCM2012Client=1\n> ;\tHOME=C:\\Users\\gpierre\n> ;\tHOMEDRIVE=C:\n> ;\tHOMEPATH=\\Users\\gpierre\n> ;\tHOMESHARE=C:\\Users\\gpierre\n> ;\tLOCALAPPDATA=C:\\Users\\gpierre\\AppData\\Local\n> ;\tNUMBER_OF_PROCESSORS=4\n> ;\tOS=Windows_NT\n> ;\tPath=C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\windows\\system32\\config\\systemprofile\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY\\;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\1E\\NomadBranch\\;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\\n> ;\tPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC\n> ;\tPROCESSOR_ARCHITECTURE=AMD64\n> ;\tPROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel\n> ;\tPROCESSOR_LEVEL=6\n> ;\tPROCESSOR_REVISION=5e03\n> ;\tProgramData=C:\\ProgramData\n> ;\tProgramFiles=C:\\Program Files\n> ;\tProgramFiles(x86)=C:\\Program Files (x86)\n> ;\tProgramW6432=C:\\Program Files\n> ;\tPROMPT=$P$G\n> ;\tPSModulePath=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules\n> ;\tPUBLIC=C:\\Users\\Public\n> ;\tSESSIONNAME=Console\n> ;\tSNC_LIB=gsskrb5.dll\n> ;\tSOEDataPartition=C:\n> ;\tSOEDesktopAdminModel=User\n> ;\tSOESystemPartitionLabel=SOE-Disk\n> ;\tSystemDrive=C:\n> ;\tSystemRoot=C:\\windows\n> ;\tTEMP=C:\\Users\\gpierre\\AppData\\Local\\Temp\n> ;\tTMP=C:\\Users\\gpierre\\AppData\\Local\\Temp\n> ;\tUSERNAME=gpierre\n> ;\tUSERPROFILE=C:\\Users\\gpierre\n> ;\tVBOX_MSI_INSTALL_PATH=C:\\Program Files\\Oracle\\VirtualBox\\\n> ;\tVS140COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\\n> ;\tVS80COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 8\\Common7\\Tools\\\n> ;\twindir=C:\\windows\n> ;\twindows_tracing_flags=3\n> ;\twindows_tracing_logfile=C:\\BVTBin\\Tests\\installpackage\\csilogfile.log\"\n> 8:57:20.7\tgit.exe\t12744\tThread Create\t\tSUCCESS\tThread ID: 12748\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tImage Base: 0x13a0000, Image Size: 0x52000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77b70000, Image Size: 0x19f000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77950000, Image Size: 0x11f000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefd860000, Image Size: 0x6a000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefef60000, Image Size: 0x9f000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\shell32.dll\tSUCCESS\tImage Base: 0x7fefdc20000, Image Size: 0xd8a000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\shlwapi.dll\tSUCCESS\tImage Base: 0x7feffde0000, Image Size: 0x71000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefdae0000, Image Size: 0x67000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77a70000, Image Size: 0xfa000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefed30000, Image Size: 0xe000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefdb50000, Image Size: 0xcb000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefe9b0000, Image Size: 0x2e000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7fefed40000, Image Size: 0x109000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0x31000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefd5e0000, Image Size: 0xc000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefec50000, Image Size: 0xdb000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7fefee50000, Image Size: 0x1f000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7feff6b0000, Image Size: 0x12d000\n> 8:57:20.8\tgit.exe\t12744\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12756, Command line: git.exe  --version\n> 8:57:20.8\tgit.exe\t12756\tProcess Start\t\tSUCCESS\t\"Parent PID: 12744, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> 8:57:20.8\tgit.exe\t12756\tThread Create\t\tSUCCESS\tThread ID: 12760\n> \n> This repeats 385 times (I removed the Load Image lines):\n> \n> 8:57:20.9\tgit.exe\t12756\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12764, Command line: git.exe  --version\n> 8:57:20.9\tgit.exe\t12764\tProcess Start\t\tSUCCESS\t\"Parent PID: 12756, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> 8:57:20.9\tgit.exe\t12764\tThread Create\t\tSUCCESS\tThread ID: 12768\n> 8:57:20.9\tgit.exe\t12764\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12772, Command line: git.exe  --version\n> 8:57:20.9\tgit.exe\t12772\tProcess Start\t\tSUCCESS\t\"Parent PID: 12764, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> 8:57:20.9\tgit.exe\t12772\tThread Create\t\tSUCCESS\tThread ID: 12776\n> 8:57:21.0\tgit.exe\t12772\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12780, Command line: git.exe  --version\n> 8:57:21.0\tgit.exe\t12780\tProcess Start\t\tSUCCESS\t\"Parent PID: 12772, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> 8:57:21.0\tgit.exe\t12780\tThread Create\t\tSUCCESS\tThread ID: 12784\n> 8:57:21.0\tgit.exe\t12780\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12788, Command line: git.exe  --version\n> 8:57:21.0\tgit.exe\t12788\tProcess Start\t\tSUCCESS\t\"Parent PID: 12780, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> 8:57:21.0\tgit.exe\t12788\tThread Create\t\tSUCCESS\tThread ID: 12792\n> ...\n> \n> After that the processes exit one by one (all with error code 1) in reverse order:\n> \n> ...\n> 8:57:48.6\tgit.exe\t12788\tThread Exit\t\tSUCCESS\tThread ID: 12792, User Time: 0.0000000, Kernel Time: 0.0312002\n> 8:57:48.6\tgit.exe\t12788\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,576,960, Peak Private Bytes: 1,654,784, Working Set: 4,235,264, Peak Working Set: 4,272,128\n> 8:57:48.6\tgit.exe\t12780\tThread Exit\t\tSUCCESS\tThread ID: 12784, User Time: 0.0000000, Kernel Time: 0.0312002\n> 8:57:48.6\tgit.exe\t12780\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,597,440, Peak Private Bytes: 1,654,784, Working Set: 4,251,648, Peak Working Set: 4,288,512\n> 8:57:48.6\tgit.exe\t12772\tThread Exit\t\tSUCCESS\tThread ID: 12776, User Time: 0.0000000, Kernel Time: 0.0312002\n> 8:57:48.6\tgit.exe\t12772\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,601,536, Peak Private Bytes: 1,642,496, Working Set: 4,304,896, Peak Working Set: 4,341,760\n> 8:57:48.6\tgit.exe\t12764\tThread Exit\t\tSUCCESS\tThread ID: 12768, User Time: 0.0156001, Kernel Time: 0.0312002\n> 8:57:48.6\tgit.exe\t12764\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0156001 seconds, Kernel Time: 0.0468003 seconds, Private Bytes: 1,597,440, Peak Private Bytes: 1,638,400, Working Set: 4,263,936, Peak Working Set: 4,300,800\n> 8:57:48.6\tgit.exe\t12756\tThread Exit\t\tSUCCESS\tThread ID: 12760, User Time: 0.0000000, Kernel Time: 0.0156001\n> 8:57:48.6\tgit.exe\t12756\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0156001 seconds, Private Bytes: 1,581,056, Peak Private Bytes: 1,642,496, Working Set: 4,222,976, Peak Working Set: 4,259,840\n> 8:57:48.6\tgit.exe\t12744\tThread Exit\t\tSUCCESS\tThread ID: 12748, User Time: 0.0000000, Kernel Time: 0.0312002\n> 8:57:48.6\tgit.exe\t12744\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,560,576, Peak Private Bytes: 1,650,688, Working Set: 4,231,168, Peak Working Set: 4,308,992\n> \n> ----------------------------------------------------------------------------\n> I never saw that before, it seems every command is doing that (tried status, log, init, fetch).\n> It happened to me before that GitExtensions or Visual Studio would spawn a lot of git processes, but nothing like this.\n> I'm wondering if there is a glitch in the code that would allow git.exe to call itself with same arguments, leading to an (quasi) endless loop of calls.\n> Let me know what I can do to help isolating the problem, I'll assist if possible.\n> \n> ----------------------------------------------------------------------------\n> For reference, here is what the built-in git --version is doing from git bash, only two processes are spawned, git --version first (the command line), then git rev-parse, and then the process exits:\n> \n> 9:55:51.2\tgit.exe\t5604\tProcess Start\t\tSUCCESS\t\"Parent PID: 752, Command line: \"\"C:\\Program Files\\Git\\mingw64\\bin\\git.exe\"\" --version, Current directory: C:\\Users\\gpierre\\, Environment: \n> ;\tACLOCAL_PATH=C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal\n> ;\tALLUSERSPROFILE=C:\\ProgramData\n> ;\tAPPDATA=C:\\Users\\gpierre\\AppData\\Roaming\n> ;\tCOMMONPROGRAMFILES=C:\\Program Files\\Common Files\n> ;\tCOMPUTERNAME=\n> ;\tCOMSPEC=C:\\windows\\system32\\cmd.exe\n> ;\tCONFIG_SITE=C:/Program Files/Git/mingw64/etc/config.site\n> ;\tCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files\n> ;\tCommonProgramW6432=C:\\Program Files\\Common Files\n> ;\tDEFLOGDIR=C:\\ProgramData\\McAfee\\Endpoint Security\\Logs\n> ;\tDISPLAY=needs-to-be-defined\n> ;\tEXEPATH=C:\\Program Files\\Git\n> ;\tFP_NO_HOST_CHECK=NO\n> ;\tGTK_BASEPATH=C:\\Program Files (x86)\\GtkSharp\\2.12\\\n> ;\tHOME=C:\\Users\\gpierre\n> ;\tHOMEDRIVE=C:\n> ;\tHOMEPATH=\\Users\\gpierre\n> ;\tHOSTNAME=\n> ;\tHasSCCM2012Client=1\n> ;\tINFOPATH=C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info\n> ;\tLANG=en_US.UTF-8\n> ;\tLOCALAPPDATA=C:\\Users\\gpierre\\AppData\\Local\n> ;\tLOGONSERVER=\\\\\n> ;\tMANPATH=C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man\n> ;\tMINGW_CHOST=x86_64-w64-mingw32\n> ;\tMINGW_PACKAGE_PREFIX=mingw-w64-x86_64\n> ;\tMINGW_PREFIX=C:/Program Files/Git/mingw64\n> ;\tMSYSTEM=MINGW64\n> ;\tMSYSTEM_CARCH=x86_64\n> ;\tMSYSTEM_CHOST=x86_64-w64-mingw32\n> ;\tMSYSTEM_PREFIX=C:/Program Files/Git/mingw64\n> ;\tNUMBER_OF_PROCESSORS=4\n> ;\tORIGINAL_PATH=C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\gpierre\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\Users\\gpierre\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\1E\\NomadBranch;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0\n> ;\tORIGINAL_TEMP=C:/Users/gpierre/AppData/Local/Temp\n> ;\tORIGINAL_TMP=C:/Users/gpierre/AppData/Local/Temp\n> ;\tOS=Windows_NT\n> ;\tPATH=C:\\Users\\gpierre\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\gpierre\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\Users\\gpierre\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\1E\\NomadBranch;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl\n> ;\tPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC\n> ;\tPKG_CONFIG_PATH=C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig\n> ;\tPLINK_PROTOCOL=ssh\n> ;\tPROCESSOR_ARCHITECTURE=AMD64\n> ;\tPROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel\n> ;\"\n> 9:55:51.2\tgit.exe\t5604\tThread Create\t\tSUCCESS\tThread ID: 8844\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\git.exe\tSUCCESS\tImage Base: 0x1160000, Image Size: 0x2f0000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77250000, Image Size: 0x19f000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77130000, Image Size: 0x11f000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefcde0000, Image Size: 0x6a000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libiconv-2.dll\tSUCCESS\tImage Base: 0x66000000, Image Size: 0x10b000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefd950000, Image Size: 0x9f000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libintl-8.dll\tSUCCESS\tImage Base: 0x61cc0000, Image Size: 0x28000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefd7d0000, Image Size: 0xdb000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7feff520000, Image Size: 0x1f000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7fefebf0000, Image Size: 0x12d000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libpcre2-8-0.dll\tSUCCESS\tImage Base: 0x64380000, Image Size: 0x54000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\zlib1.dll\tSUCCESS\tImage Base: 0x62e80000, Image Size: 0x1f000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77030000, Image Size: 0xfa000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefd6c0000, Image Size: 0x67000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefd290000, Image Size: 0xe000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0xcb000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\ws2_32.dll\tSUCCESS\tImage Base: 0x7fefd240000, Image Size: 0x4d000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\nsi.dll\tSUCCESS\tImage Base: 0x7fefed50000, Image Size: 0x8000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libssp-0.dll\tSUCCESS\tImage Base: 0x68ac0000, Image Size: 0xe000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefed20000, Image Size: 0x2e000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7feff410000, Image Size: 0x109000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefccd0000, Image Size: 0x31000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefccc0000, Image Size: 0xc000\n> 9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\cryptsp.dll\tSUCCESS\tImage Base: 0x7fefc530000, Image Size: 0x18000\n> 9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\rsaenh.dll\tSUCCESS\tImage Base: 0x7fefc230000, Image Size: 0x47000\n> 9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\cryptbase.dll\tSUCCESS\tImage Base: 0x7fefcbf0000, Image Size: 0xf000\n> 9:55:51.3\tgit.exe\t5604\tThread Exit\t\tSUCCESS\tThread ID: 8844, User Time: 0.0000000, Kernel Time: 0.0468003\n> 9:55:51.3\tgit.exe\t5604\tProcess Exit\t\tSUCCESS\tExit Status: 0, User Time: 0.0000000 seconds, Kernel Time: 0.0468003 seconds, Private Bytes: 2,940,928, Peak Private Bytes: 2,981,888, Working Set: 4,980,736, Peak Working Set: 4,980,736\n> 9:55:51.6\tgit.exe\t5560\tProcess Start\t\tSUCCESS\t\"Parent PID: 9080, Command line: \"\"C:\\Program Files\\Git\\mingw64\\bin\\git.exe\"\" rev-parse --git-dir --is-inside-git-dir --is-bare-repository --is-inside-work-tree --short HEAD, Current directory: C:\\Users\\gpierre\\, Environment: \n> 9:55:51.6\tgit.exe\t5560\tThread Create\t\tSUCCESS\tThread ID: 5248\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\git.exe\tSUCCESS\tImage Base: 0x190000, Image Size: 0x2f0000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77250000, Image Size: 0x19f000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77130000, Image Size: 0x11f000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefcde0000, Image Size: 0x6a000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libiconv-2.dll\tSUCCESS\tImage Base: 0x66000000, Image Size: 0x10b000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefd950000, Image Size: 0x9f000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libintl-8.dll\tSUCCESS\tImage Base: 0x61cc0000, Image Size: 0x28000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefd7d0000, Image Size: 0xdb000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7feff520000, Image Size: 0x1f000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7fefebf0000, Image Size: 0x12d000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libpcre2-8-0.dll\tSUCCESS\tImage Base: 0x64380000, Image Size: 0x54000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\zlib1.dll\tSUCCESS\tImage Base: 0x62e80000, Image Size: 0x1f000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77030000, Image Size: 0xfa000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefd6c0000, Image Size: 0x67000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefd290000, Image Size: 0xe000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0xcb000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\ws2_32.dll\tSUCCESS\tImage Base: 0x7fefd240000, Image Size: 0x4d000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\nsi.dll\tSUCCESS\tImage Base: 0x7fefed50000, Image Size: 0x8000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libssp-0.dll\tSUCCESS\tImage Base: 0x68ac0000, Image Size: 0xe000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefed20000, Image Size: 0x2e000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7feff410000, Image Size: 0x109000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefccd0000, Image Size: 0x31000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefccc0000, Image Size: 0xc000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\cryptsp.dll\tSUCCESS\tImage Base: 0x7fefc530000, Image Size: 0x18000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\rsaenh.dll\tSUCCESS\tImage Base: 0x7fefc230000, Image Size: 0x47000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\cryptbase.dll\tSUCCESS\tImage Base: 0x7fefcbf0000, Image Size: 0xf000\n> 9:55:51.7\tgit.exe\t5560\tThread Exit\t\tSUCCESS\tThread ID: 5248, User Time: 0.0000000, Kernel Time: 0.0780005\n> 9:55:51.7\tgit.exe\t5560\tProcess Exit\t\tSUCCESS\tExit Status: 128, User Time: 0.0000000 seconds, Kernel Time: 0.0780005 seconds, Private Bytes: 2,932,736, Peak Private Bytes: 2,973,696, Working Set: 5,062,656, Peak Working Set: 5,062,656\n> \n> \n> Thanks a lot! Cheers,\n> Pierre G.\n> \n> "},{"id":"371149","messageId":"SN6PR03MB364776AC6AB063BFEA7F3310BA480@SN6PR03MB3647.namprd03.prod.outlook.com","threadId":"50556","inReplyTo":"nycvar.QRO.7.76.6.1903082154320.41@tvgsbejvaqbjf.bet","subject":"RE: Bug: git for Windows spawning a lot of processes recursively","fromName":"Garcia, Pierre","fromEmail":"pgarcia@trusimulation.com","sentAt":"2019-03-11T14:15:32Z","receivedAt":"2019-03-11T14:15:58Z","isPatch":false,"sender":{"key":"pgarcia@trusimulation.com","avatar":null},"body":"Hello Johannes,\n\nI installed the following snapshot on the problematic machine:\nSun, 10 Mar 2019 17:37:25 +0100\n(commit eb5d06f545)\nGit for Windows installer: 64-bit\n\nAnd the problem is gone! No more issue!\n\nAt the time I had the issue I was on field trip with limited time and no other version to try at hand - as a workaround I ended up having GitExtension point to the mingw64 binary and it worked normally.\nI tried the exact same version that caused the problem on the laptop, on another machine and I didn't get the issue this time, so the problem might be tied to a very specific setup.\n\nCheers,\nPierre\n\n-----Original Message-----\nFrom: Johannes Schindelin <Johannes.Schindelin@gmx.de> \nSent: Friday, March 08, 2019 15:56\nTo: Garcia, Pierre <pgarcia@trusimulation.com>\nCc: git@vger.kernel.org\nSubject: Re: Bug: git for Windows spawning a lot of processes recursively\n\nHi Pierre,\n\nOn Fri, 22 Feb 2019, Garcia, Pierre wrote:\n\n> I'd like to report an issue with git for Windows\n> \n> Git version 2.20.1\n> Windows 7 x64 (Build 7601: Service Pack 1)\n> \n> ----------------------------------------------------------------------\n> ------\n> Issue:\n> When running from Git-bash (not even inside a repo), git commands from \n> built-in are OK, but if I use the exe that is located at C:\\Program \n> Files\\Git\\bin\\git.exe, the process takes long to execute and then \n> exits with error \"error launching git: The filename or extension is \n> too\n> long.\":\n\nIs this still happening with v2.21.0? Or for that matter, with the latest snapshot at https://wingit.blob.core.windows.net/files/index.html?\n\nCiao,\nJohannes\n\n> \n> $ git --version\n> git version 2.20.1.windows.1\n> \n> $ which git\n> /mingw64/bin/git\n> \n> $ /c/Program\\ Files/Git/bin/git.exe --version error launching git: The \n> filename or extension is too long.\n> \n> ----------------------------------------------------------------------\n> ------ It started out of the blue, nothing special was done on the \n> computer, the previous day I cloned some repos, the next it was not working anymore.\n> I tried uninstall-reinstall with no success.\n> I'm using Gitextensions as well, but I verified that the problem was occurring without Gitextensions (uninstalled at the time the traces were taken).\n> \n> ----------------------------------------------------------------------\n> ------ I ran procmon.exe to monitor the activity of the process and I \n> found out that git.exe was spawning itself 385 times in total in the trace I took, until all processes exit with error code 1, here is an extract of the procmon trace, showing thread and process activity for git.exe (I have more exhaustive trace but the file is quite big), I included the environment variables on the first call:\n> \n> Time of Day\tProcess Name\tPID\tOperation\tPath\tResult\tDetail\n> 8:57:20.7\tgit.exe\t12744\tProcess Start\t\tSUCCESS\t\"Parent PID: 8412, Command line: \"\"C:\\Program Files\\Git\\bin\\git.exe\"\"  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> ;\t=::=::\\\n> ;\t=C:=C:\\Users\\gpierre\\Desktop\n> ;\t=ExitCode=00000001\n> ;\tALLUSERSPROFILE=C:\\ProgramData\n> ;\tCommonProgramFiles=C:\\Program Files\\Common Files\n> ;\tCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files\n> ;\tCommonProgramW6432=C:\\Program Files\\Common Files\n> ;\tComSpec=C:\\windows\\system32\\cmd.exe\n> ;\tDEFLOGDIR=C:\\ProgramData\\McAfee\\Endpoint Security\\Logs\n> ;\tFP_NO_HOST_CHECK=NO\n> ;\tGTK_BASEPATH=C:\\Program Files (x86)\\GtkSharp\\2.12\\\n> ;\tHasSCCM2012Client=1\n> ;\tHOME=C:\\Users\\gpierre\n> ;\tHOMEDRIVE=C:\n> ;\tHOMEPATH=\\Users\\gpierre\n> ;\tHOMESHARE=C:\\Users\\gpierre\n> ;\tLOCALAPPDATA=C:\\Users\\gpierre\\AppData\\Local\n> ;\tNUMBER_OF_PROCESSORS=4\n> ;\tOS=Windows_NT\n> ;\tPath=C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\windows\\system32\\config\\systemprofile\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY\\;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\1E\\NomadBranch\\;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\\n> ;\tPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC\n> ;\tPROCESSOR_ARCHITECTURE=AMD64\n> ;\tPROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel\n> ;\tPROCESSOR_LEVEL=6\n> ;\tPROCESSOR_REVISION=5e03\n> ;\tProgramData=C:\\ProgramData\n> ;\tProgramFiles=C:\\Program Files\n> ;\tProgramFiles(x86)=C:\\Program Files (x86)\n> ;\tProgramW6432=C:\\Program Files\n> ;\tPROMPT=$P$G\n> ;\tPSModulePath=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules\n> ;\tPUBLIC=C:\\Users\\Public\n> ;\tSESSIONNAME=Console\n> ;\tSNC_LIB=gsskrb5.dll\n> ;\tSOEDataPartition=C:\n> ;\tSOEDesktopAdminModel=User\n> ;\tSOESystemPartitionLabel=SOE-Disk\n> ;\tSystemDrive=C:\n> ;\tSystemRoot=C:\\windows\n> ;\tTEMP=C:\\Users\\gpierre\\AppData\\Local\\Temp\n> ;\tTMP=C:\\Users\\gpierre\\AppData\\Local\\Temp\n> ;\tUSERNAME=gpierre\n> ;\tUSERPROFILE=C:\\Users\\gpierre\n> ;\tVBOX_MSI_INSTALL_PATH=C:\\Program Files\\Oracle\\VirtualBox\\\n> ;\tVS140COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\\n> ;\tVS80COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 8\\Common7\\Tools\\\n> ;\twindir=C:\\windows\n> ;\twindows_tracing_flags=3\n> ;\twindows_tracing_logfile=C:\\BVTBin\\Tests\\installpackage\\csilogfile.log\"\n> 8:57:20.7\tgit.exe\t12744\tThread Create\t\tSUCCESS\tThread ID: 12748\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tImage Base: 0x13a0000, Image Size: 0x52000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77b70000, Image Size: 0x19f000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77950000, Image Size: 0x11f000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefd860000, Image Size: 0x6a000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefef60000, Image Size: 0x9f000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\shell32.dll\tSUCCESS\tImage Base: 0x7fefdc20000, Image Size: 0xd8a000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\shlwapi.dll\tSUCCESS\tImage Base: 0x7feffde0000, Image Size: 0x71000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefdae0000, Image Size: 0x67000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77a70000, Image Size: 0xfa000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefed30000, Image Size: 0xe000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefdb50000, Image Size: 0xcb000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefe9b0000, Image Size: 0x2e000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7fefed40000, Image Size: 0x109000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0x31000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefd5e0000, Image Size: 0xc000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefec50000, Image Size: 0xdb000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7fefee50000, Image Size: 0x1f000\n> 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7feff6b0000, Image Size: 0x12d000\n> 8:57:20.8\tgit.exe\t12744\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12756, Command line: git.exe  --version\n> 8:57:20.8\tgit.exe\t12756\tProcess Start\t\tSUCCESS\t\"Parent PID: 12744, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> 8:57:20.8\tgit.exe\t12756\tThread Create\t\tSUCCESS\tThread ID: 12760\n> \n> This repeats 385 times (I removed the Load Image lines):\n> \n> 8:57:20.9\tgit.exe\t12756\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12764, Command line: git.exe  --version\n> 8:57:20.9\tgit.exe\t12764\tProcess Start\t\tSUCCESS\t\"Parent PID: 12756, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> 8:57:20.9\tgit.exe\t12764\tThread Create\t\tSUCCESS\tThread ID: 12768\n> 8:57:20.9\tgit.exe\t12764\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12772, Command line: git.exe  --version\n> 8:57:20.9\tgit.exe\t12772\tProcess Start\t\tSUCCESS\t\"Parent PID: 12764, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> 8:57:20.9\tgit.exe\t12772\tThread Create\t\tSUCCESS\tThread ID: 12776\n> 8:57:21.0\tgit.exe\t12772\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12780, Command line: git.exe  --version\n> 8:57:21.0\tgit.exe\t12780\tProcess Start\t\tSUCCESS\t\"Parent PID: 12772, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> 8:57:21.0\tgit.exe\t12780\tThread Create\t\tSUCCESS\tThread ID: 12784\n> 8:57:21.0\tgit.exe\t12780\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12788, Command line: git.exe  --version\n> 8:57:21.0\tgit.exe\t12788\tProcess Start\t\tSUCCESS\t\"Parent PID: 12780, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> 8:57:21.0\tgit.exe\t12788\tThread Create\t\tSUCCESS\tThread ID: 12792\n> ...\n> \n> After that the processes exit one by one (all with error code 1) in reverse order:\n> \n> ...\n> 8:57:48.6\tgit.exe\t12788\tThread Exit\t\tSUCCESS\tThread ID: 12792, User Time: 0.0000000, Kernel Time: 0.0312002\n> 8:57:48.6\tgit.exe\t12788\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,576,960, Peak Private Bytes: 1,654,784, Working Set: 4,235,264, Peak Working Set: 4,272,128\n> 8:57:48.6\tgit.exe\t12780\tThread Exit\t\tSUCCESS\tThread ID: 12784, User Time: 0.0000000, Kernel Time: 0.0312002\n> 8:57:48.6\tgit.exe\t12780\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,597,440, Peak Private Bytes: 1,654,784, Working Set: 4,251,648, Peak Working Set: 4,288,512\n> 8:57:48.6\tgit.exe\t12772\tThread Exit\t\tSUCCESS\tThread ID: 12776, User Time: 0.0000000, Kernel Time: 0.0312002\n> 8:57:48.6\tgit.exe\t12772\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,601,536, Peak Private Bytes: 1,642,496, Working Set: 4,304,896, Peak Working Set: 4,341,760\n> 8:57:48.6\tgit.exe\t12764\tThread Exit\t\tSUCCESS\tThread ID: 12768, User Time: 0.0156001, Kernel Time: 0.0312002\n> 8:57:48.6\tgit.exe\t12764\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0156001 seconds, Kernel Time: 0.0468003 seconds, Private Bytes: 1,597,440, Peak Private Bytes: 1,638,400, Working Set: 4,263,936, Peak Working Set: 4,300,800\n> 8:57:48.6\tgit.exe\t12756\tThread Exit\t\tSUCCESS\tThread ID: 12760, User Time: 0.0000000, Kernel Time: 0.0156001\n> 8:57:48.6\tgit.exe\t12756\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0156001 seconds, Private Bytes: 1,581,056, Peak Private Bytes: 1,642,496, Working Set: 4,222,976, Peak Working Set: 4,259,840\n> 8:57:48.6\tgit.exe\t12744\tThread Exit\t\tSUCCESS\tThread ID: 12748, User Time: 0.0000000, Kernel Time: 0.0312002\n> 8:57:48.6\tgit.exe\t12744\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,560,576, Peak Private Bytes: 1,650,688, Working Set: 4,231,168, Peak Working Set: 4,308,992\n> \n> ----------------------------------------------------------------------\n> ------ I never saw that before, it seems every command is doing that \n> (tried status, log, init, fetch).\n> It happened to me before that GitExtensions or Visual Studio would spawn a lot of git processes, but nothing like this.\n> I'm wondering if there is a glitch in the code that would allow git.exe to call itself with same arguments, leading to an (quasi) endless loop of calls.\n> Let me know what I can do to help isolating the problem, I'll assist if possible.\n> \n> ----------------------------------------------------------------------\n> ------ For reference, here is what the built-in git --version is doing \n> from git bash, only two processes are spawned, git --version first (the command line), then git rev-parse, and then the process exits:\n> \n> 9:55:51.2\tgit.exe\t5604\tProcess Start\t\tSUCCESS\t\"Parent PID: 752, Command line: \"\"C:\\Program Files\\Git\\mingw64\\bin\\git.exe\"\" --version, Current directory: C:\\Users\\gpierre\\, Environment: \n> ;\tACLOCAL_PATH=C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal\n> ;\tALLUSERSPROFILE=C:\\ProgramData\n> ;\tAPPDATA=C:\\Users\\gpierre\\AppData\\Roaming\n> ;\tCOMMONPROGRAMFILES=C:\\Program Files\\Common Files\n> ;\tCOMPUTERNAME=\n> ;\tCOMSPEC=C:\\windows\\system32\\cmd.exe\n> ;\tCONFIG_SITE=C:/Program Files/Git/mingw64/etc/config.site\n> ;\tCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files\n> ;\tCommonProgramW6432=C:\\Program Files\\Common Files\n> ;\tDEFLOGDIR=C:\\ProgramData\\McAfee\\Endpoint Security\\Logs\n> ;\tDISPLAY=needs-to-be-defined\n> ;\tEXEPATH=C:\\Program Files\\Git\n> ;\tFP_NO_HOST_CHECK=NO\n> ;\tGTK_BASEPATH=C:\\Program Files (x86)\\GtkSharp\\2.12\\\n> ;\tHOME=C:\\Users\\gpierre\n> ;\tHOMEDRIVE=C:\n> ;\tHOMEPATH=\\Users\\gpierre\n> ;\tHOSTNAME=\n> ;\tHasSCCM2012Client=1\n> ;\tINFOPATH=C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info\n> ;\tLANG=en_US.UTF-8\n> ;\tLOCALAPPDATA=C:\\Users\\gpierre\\AppData\\Local\n> ;\tLOGONSERVER=\\\\\n> ;\tMANPATH=C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man\n> ;\tMINGW_CHOST=x86_64-w64-mingw32\n> ;\tMINGW_PACKAGE_PREFIX=mingw-w64-x86_64\n> ;\tMINGW_PREFIX=C:/Program Files/Git/mingw64\n> ;\tMSYSTEM=MINGW64\n> ;\tMSYSTEM_CARCH=x86_64\n> ;\tMSYSTEM_CHOST=x86_64-w64-mingw32\n> ;\tMSYSTEM_PREFIX=C:/Program Files/Git/mingw64\n> ;\tNUMBER_OF_PROCESSORS=4\n> ;\tORIGINAL_PATH=C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\gpierre\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\Users\\gpierre\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\1E\\NomadBranch;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0\n> ;\tORIGINAL_TEMP=C:/Users/gpierre/AppData/Local/Temp\n> ;\tORIGINAL_TMP=C:/Users/gpierre/AppData/Local/Temp\n> ;\tOS=Windows_NT\n> ;\tPATH=C:\\Users\\gpierre\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\gpierre\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\Users\\gpierre\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\1E\\NomadBranch;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl\n> ;\tPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC\n> ;\tPKG_CONFIG_PATH=C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig\n> ;\tPLINK_PROTOCOL=ssh\n> ;\tPROCESSOR_ARCHITECTURE=AMD64\n> ;\tPROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel\n> ;\"\n> 9:55:51.2\tgit.exe\t5604\tThread Create\t\tSUCCESS\tThread ID: 8844\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\git.exe\tSUCCESS\tImage Base: 0x1160000, Image Size: 0x2f0000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77250000, Image Size: 0x19f000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77130000, Image Size: 0x11f000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefcde0000, Image Size: 0x6a000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libiconv-2.dll\tSUCCESS\tImage Base: 0x66000000, Image Size: 0x10b000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefd950000, Image Size: 0x9f000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libintl-8.dll\tSUCCESS\tImage Base: 0x61cc0000, Image Size: 0x28000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefd7d0000, Image Size: 0xdb000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7feff520000, Image Size: 0x1f000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7fefebf0000, Image Size: 0x12d000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libpcre2-8-0.dll\tSUCCESS\tImage Base: 0x64380000, Image Size: 0x54000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\zlib1.dll\tSUCCESS\tImage Base: 0x62e80000, Image Size: 0x1f000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77030000, Image Size: 0xfa000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefd6c0000, Image Size: 0x67000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefd290000, Image Size: 0xe000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0xcb000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\ws2_32.dll\tSUCCESS\tImage Base: 0x7fefd240000, Image Size: 0x4d000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\nsi.dll\tSUCCESS\tImage Base: 0x7fefed50000, Image Size: 0x8000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libssp-0.dll\tSUCCESS\tImage Base: 0x68ac0000, Image Size: 0xe000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefed20000, Image Size: 0x2e000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7feff410000, Image Size: 0x109000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefccd0000, Image Size: 0x31000\n> 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefccc0000, Image Size: 0xc000\n> 9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\cryptsp.dll\tSUCCESS\tImage Base: 0x7fefc530000, Image Size: 0x18000\n> 9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\rsaenh.dll\tSUCCESS\tImage Base: 0x7fefc230000, Image Size: 0x47000\n> 9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\cryptbase.dll\tSUCCESS\tImage Base: 0x7fefcbf0000, Image Size: 0xf000\n> 9:55:51.3\tgit.exe\t5604\tThread Exit\t\tSUCCESS\tThread ID: 8844, User Time: 0.0000000, Kernel Time: 0.0468003\n> 9:55:51.3\tgit.exe\t5604\tProcess Exit\t\tSUCCESS\tExit Status: 0, User Time: 0.0000000 seconds, Kernel Time: 0.0468003 seconds, Private Bytes: 2,940,928, Peak Private Bytes: 2,981,888, Working Set: 4,980,736, Peak Working Set: 4,980,736\n> 9:55:51.6\tgit.exe\t5560\tProcess Start\t\tSUCCESS\t\"Parent PID: 9080, Command line: \"\"C:\\Program Files\\Git\\mingw64\\bin\\git.exe\"\" rev-parse --git-dir --is-inside-git-dir --is-bare-repository --is-inside-work-tree --short HEAD, Current directory: C:\\Users\\gpierre\\, Environment: \n> 9:55:51.6\tgit.exe\t5560\tThread Create\t\tSUCCESS\tThread ID: 5248\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\git.exe\tSUCCESS\tImage Base: 0x190000, Image Size: 0x2f0000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77250000, Image Size: 0x19f000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77130000, Image Size: 0x11f000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefcde0000, Image Size: 0x6a000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libiconv-2.dll\tSUCCESS\tImage Base: 0x66000000, Image Size: 0x10b000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefd950000, Image Size: 0x9f000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libintl-8.dll\tSUCCESS\tImage Base: 0x61cc0000, Image Size: 0x28000\n> 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefd7d0000, Image Size: 0xdb000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7feff520000, Image Size: 0x1f000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7fefebf0000, Image Size: 0x12d000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libpcre2-8-0.dll\tSUCCESS\tImage Base: 0x64380000, Image Size: 0x54000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\zlib1.dll\tSUCCESS\tImage Base: 0x62e80000, Image Size: 0x1f000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77030000, Image Size: 0xfa000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefd6c0000, Image Size: 0x67000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefd290000, Image Size: 0xe000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0xcb000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\ws2_32.dll\tSUCCESS\tImage Base: 0x7fefd240000, Image Size: 0x4d000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\nsi.dll\tSUCCESS\tImage Base: 0x7fefed50000, Image Size: 0x8000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libssp-0.dll\tSUCCESS\tImage Base: 0x68ac0000, Image Size: 0xe000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefed20000, Image Size: 0x2e000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7feff410000, Image Size: 0x109000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefccd0000, Image Size: 0x31000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefccc0000, Image Size: 0xc000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\cryptsp.dll\tSUCCESS\tImage Base: 0x7fefc530000, Image Size: 0x18000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\rsaenh.dll\tSUCCESS\tImage Base: 0x7fefc230000, Image Size: 0x47000\n> 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\cryptbase.dll\tSUCCESS\tImage Base: 0x7fefcbf0000, Image Size: 0xf000\n> 9:55:51.7\tgit.exe\t5560\tThread Exit\t\tSUCCESS\tThread ID: 5248, User Time: 0.0000000, Kernel Time: 0.0780005\n> 9:55:51.7\tgit.exe\t5560\tProcess Exit\t\tSUCCESS\tExit Status: 128, User Time: 0.0000000 seconds, Kernel Time: 0.0780005 seconds, Private Bytes: 2,932,736, Peak Private Bytes: 2,973,696, Working Set: 5,062,656, Peak Working Set: 5,062,656\n> \n> \n> Thanks a lot! Cheers,\n> Pierre G.\n> \n> \n"},{"id":"371303","messageId":"nycvar.QRO.7.76.6.1903122308110.41@tvgsbejvaqbjf.bet","threadId":"50556","inReplyTo":"SN6PR03MB364776AC6AB063BFEA7F3310BA480@SN6PR03MB3647.namprd03.prod.outlook.com","subject":"RE: Bug: git for Windows spawning a lot of processes recursively","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-03-12T22:09:05Z","receivedAt":"2019-03-12T22:09:27Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Pierre,\n\nOn Mon, 11 Mar 2019, Garcia, Pierre wrote:\n\n> Hello Johannes,\n> \n> I installed the following snapshot on the problematic machine:\n> Sun, 10 Mar 2019 17:37:25 +0100\n> (commit eb5d06f545)\n> Git for Windows installer: 64-bit\n> \n> And the problem is gone! No more issue!\n\nThank you for confirming!\n\n> At the time I had the issue I was on field trip with limited time and no other version to try at hand - as a workaround I ended up having GitExtension point to the mingw64 binary and it worked normally.\n> I tried the exact same version that caused the problem on the laptop, on another machine and I didn't get the issue this time, so the problem might be tied to a very specific setup.\n\nIIRC we fixed some potentially unterminated string recently, and that\nmight be the fix for your problem.\n\nIn any case, I won't worry about it now ;-)\n\nCiao,\nJohannes\n\n> \n> Cheers,\n> Pierre\n> \n> -----Original Message-----\n> From: Johannes Schindelin <Johannes.Schindelin@gmx.de> \n> Sent: Friday, March 08, 2019 15:56\n> To: Garcia, Pierre <pgarcia@trusimulation.com>\n> Cc: git@vger.kernel.org\n> Subject: Re: Bug: git for Windows spawning a lot of processes recursively\n> \n> Hi Pierre,\n> \n> On Fri, 22 Feb 2019, Garcia, Pierre wrote:\n> \n> > I'd like to report an issue with git for Windows\n> > \n> > Git version 2.20.1\n> > Windows 7 x64 (Build 7601: Service Pack 1)\n> > \n> > ----------------------------------------------------------------------\n> > ------\n> > Issue:\n> > When running from Git-bash (not even inside a repo), git commands from \n> > built-in are OK, but if I use the exe that is located at C:\\Program \n> > Files\\Git\\bin\\git.exe, the process takes long to execute and then \n> > exits with error \"error launching git: The filename or extension is \n> > too\n> > long.\":\n> \n> Is this still happening with v2.21.0? Or for that matter, with the latest snapshot at https://wingit.blob.core.windows.net/files/index.html?\n> \n> Ciao,\n> Johannes\n> \n> > \n> > $ git --version\n> > git version 2.20.1.windows.1\n> > \n> > $ which git\n> > /mingw64/bin/git\n> > \n> > $ /c/Program\\ Files/Git/bin/git.exe --version error launching git: The \n> > filename or extension is too long.\n> > \n> > ----------------------------------------------------------------------\n> > ------ It started out of the blue, nothing special was done on the \n> > computer, the previous day I cloned some repos, the next it was not working anymore.\n> > I tried uninstall-reinstall with no success.\n> > I'm using Gitextensions as well, but I verified that the problem was occurring without Gitextensions (uninstalled at the time the traces were taken).\n> > \n> > ----------------------------------------------------------------------\n> > ------ I ran procmon.exe to monitor the activity of the process and I \n> > found out that git.exe was spawning itself 385 times in total in the trace I took, until all processes exit with error code 1, here is an extract of the procmon trace, showing thread and process activity for git.exe (I have more exhaustive trace but the file is quite big), I included the environment variables on the first call:\n> > \n> > Time of Day\tProcess Name\tPID\tOperation\tPath\tResult\tDetail\n> > 8:57:20.7\tgit.exe\t12744\tProcess Start\t\tSUCCESS\t\"Parent PID: 8412, Command line: \"\"C:\\Program Files\\Git\\bin\\git.exe\"\"  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> > ;\t=::=::\\\n> > ;\t=C:=C:\\Users\\gpierre\\Desktop\n> > ;\t=ExitCode=00000001\n> > ;\tALLUSERSPROFILE=C:\\ProgramData\n> > ;\tCommonProgramFiles=C:\\Program Files\\Common Files\n> > ;\tCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files\n> > ;\tCommonProgramW6432=C:\\Program Files\\Common Files\n> > ;\tComSpec=C:\\windows\\system32\\cmd.exe\n> > ;\tDEFLOGDIR=C:\\ProgramData\\McAfee\\Endpoint Security\\Logs\n> > ;\tFP_NO_HOST_CHECK=NO\n> > ;\tGTK_BASEPATH=C:\\Program Files (x86)\\GtkSharp\\2.12\\\n> > ;\tHasSCCM2012Client=1\n> > ;\tHOME=C:\\Users\\gpierre\n> > ;\tHOMEDRIVE=C:\n> > ;\tHOMEPATH=\\Users\\gpierre\n> > ;\tHOMESHARE=C:\\Users\\gpierre\n> > ;\tLOCALAPPDATA=C:\\Users\\gpierre\\AppData\\Local\n> > ;\tNUMBER_OF_PROCESSORS=4\n> > ;\tOS=Windows_NT\n> > ;\tPath=C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\windows\\system32\\config\\systemprofile\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY\\;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\1E\\NomadBranch\\;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\\n> > ;\tPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC\n> > ;\tPROCESSOR_ARCHITECTURE=AMD64\n> > ;\tPROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel\n> > ;\tPROCESSOR_LEVEL=6\n> > ;\tPROCESSOR_REVISION=5e03\n> > ;\tProgramData=C:\\ProgramData\n> > ;\tProgramFiles=C:\\Program Files\n> > ;\tProgramFiles(x86)=C:\\Program Files (x86)\n> > ;\tProgramW6432=C:\\Program Files\n> > ;\tPROMPT=$P$G\n> > ;\tPSModulePath=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules\n> > ;\tPUBLIC=C:\\Users\\Public\n> > ;\tSESSIONNAME=Console\n> > ;\tSNC_LIB=gsskrb5.dll\n> > ;\tSOEDataPartition=C:\n> > ;\tSOEDesktopAdminModel=User\n> > ;\tSOESystemPartitionLabel=SOE-Disk\n> > ;\tSystemDrive=C:\n> > ;\tSystemRoot=C:\\windows\n> > ;\tTEMP=C:\\Users\\gpierre\\AppData\\Local\\Temp\n> > ;\tTMP=C:\\Users\\gpierre\\AppData\\Local\\Temp\n> > ;\tUSERNAME=gpierre\n> > ;\tUSERPROFILE=C:\\Users\\gpierre\n> > ;\tVBOX_MSI_INSTALL_PATH=C:\\Program Files\\Oracle\\VirtualBox\\\n> > ;\tVS140COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\\n> > ;\tVS80COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 8\\Common7\\Tools\\\n> > ;\twindir=C:\\windows\n> > ;\twindows_tracing_flags=3\n> > ;\twindows_tracing_logfile=C:\\BVTBin\\Tests\\installpackage\\csilogfile.log\"\n> > 8:57:20.7\tgit.exe\t12744\tThread Create\t\tSUCCESS\tThread ID: 12748\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tImage Base: 0x13a0000, Image Size: 0x52000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77b70000, Image Size: 0x19f000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77950000, Image Size: 0x11f000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefd860000, Image Size: 0x6a000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefef60000, Image Size: 0x9f000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\shell32.dll\tSUCCESS\tImage Base: 0x7fefdc20000, Image Size: 0xd8a000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\shlwapi.dll\tSUCCESS\tImage Base: 0x7feffde0000, Image Size: 0x71000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefdae0000, Image Size: 0x67000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77a70000, Image Size: 0xfa000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefed30000, Image Size: 0xe000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefdb50000, Image Size: 0xcb000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefe9b0000, Image Size: 0x2e000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7fefed40000, Image Size: 0x109000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0x31000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefd5e0000, Image Size: 0xc000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefec50000, Image Size: 0xdb000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7fefee50000, Image Size: 0x1f000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7feff6b0000, Image Size: 0x12d000\n> > 8:57:20.8\tgit.exe\t12744\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12756, Command line: git.exe  --version\n> > 8:57:20.8\tgit.exe\t12756\tProcess Start\t\tSUCCESS\t\"Parent PID: 12744, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> > 8:57:20.8\tgit.exe\t12756\tThread Create\t\tSUCCESS\tThread ID: 12760\n> > \n> > This repeats 385 times (I removed the Load Image lines):\n> > \n> > 8:57:20.9\tgit.exe\t12756\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12764, Command line: git.exe  --version\n> > 8:57:20.9\tgit.exe\t12764\tProcess Start\t\tSUCCESS\t\"Parent PID: 12756, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> > 8:57:20.9\tgit.exe\t12764\tThread Create\t\tSUCCESS\tThread ID: 12768\n> > 8:57:20.9\tgit.exe\t12764\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12772, Command line: git.exe  --version\n> > 8:57:20.9\tgit.exe\t12772\tProcess Start\t\tSUCCESS\t\"Parent PID: 12764, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> > 8:57:20.9\tgit.exe\t12772\tThread Create\t\tSUCCESS\tThread ID: 12776\n> > 8:57:21.0\tgit.exe\t12772\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12780, Command line: git.exe  --version\n> > 8:57:21.0\tgit.exe\t12780\tProcess Start\t\tSUCCESS\t\"Parent PID: 12772, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> > 8:57:21.0\tgit.exe\t12780\tThread Create\t\tSUCCESS\tThread ID: 12784\n> > 8:57:21.0\tgit.exe\t12780\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12788, Command line: git.exe  --version\n> > 8:57:21.0\tgit.exe\t12788\tProcess Start\t\tSUCCESS\t\"Parent PID: 12780, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> > 8:57:21.0\tgit.exe\t12788\tThread Create\t\tSUCCESS\tThread ID: 12792\n> > ...\n> > \n> > After that the processes exit one by one (all with error code 1) in reverse order:\n> > \n> > ...\n> > 8:57:48.6\tgit.exe\t12788\tThread Exit\t\tSUCCESS\tThread ID: 12792, User Time: 0.0000000, Kernel Time: 0.0312002\n> > 8:57:48.6\tgit.exe\t12788\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,576,960, Peak Private Bytes: 1,654,784, Working Set: 4,235,264, Peak Working Set: 4,272,128\n> > 8:57:48.6\tgit.exe\t12780\tThread Exit\t\tSUCCESS\tThread ID: 12784, User Time: 0.0000000, Kernel Time: 0.0312002\n> > 8:57:48.6\tgit.exe\t12780\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,597,440, Peak Private Bytes: 1,654,784, Working Set: 4,251,648, Peak Working Set: 4,288,512\n> > 8:57:48.6\tgit.exe\t12772\tThread Exit\t\tSUCCESS\tThread ID: 12776, User Time: 0.0000000, Kernel Time: 0.0312002\n> > 8:57:48.6\tgit.exe\t12772\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,601,536, Peak Private Bytes: 1,642,496, Working Set: 4,304,896, Peak Working Set: 4,341,760\n> > 8:57:48.6\tgit.exe\t12764\tThread Exit\t\tSUCCESS\tThread ID: 12768, User Time: 0.0156001, Kernel Time: 0.0312002\n> > 8:57:48.6\tgit.exe\t12764\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0156001 seconds, Kernel Time: 0.0468003 seconds, Private Bytes: 1,597,440, Peak Private Bytes: 1,638,400, Working Set: 4,263,936, Peak Working Set: 4,300,800\n> > 8:57:48.6\tgit.exe\t12756\tThread Exit\t\tSUCCESS\tThread ID: 12760, User Time: 0.0000000, Kernel Time: 0.0156001\n> > 8:57:48.6\tgit.exe\t12756\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0156001 seconds, Private Bytes: 1,581,056, Peak Private Bytes: 1,642,496, Working Set: 4,222,976, Peak Working Set: 4,259,840\n> > 8:57:48.6\tgit.exe\t12744\tThread Exit\t\tSUCCESS\tThread ID: 12748, User Time: 0.0000000, Kernel Time: 0.0312002\n> > 8:57:48.6\tgit.exe\t12744\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,560,576, Peak Private Bytes: 1,650,688, Working Set: 4,231,168, Peak Working Set: 4,308,992\n> > \n> > ----------------------------------------------------------------------\n> > ------ I never saw that before, it seems every command is doing that \n> > (tried status, log, init, fetch).\n> > It happened to me before that GitExtensions or Visual Studio would spawn a lot of git processes, but nothing like this.\n> > I'm wondering if there is a glitch in the code that would allow git.exe to call itself with same arguments, leading to an (quasi) endless loop of calls.\n> > Let me know what I can do to help isolating the problem, I'll assist if possible.\n> > \n> > ----------------------------------------------------------------------\n> > ------ For reference, here is what the built-in git --version is doing \n> > from git bash, only two processes are spawned, git --version first (the command line), then git rev-parse, and then the process exits:\n> > \n> > 9:55:51.2\tgit.exe\t5604\tProcess Start\t\tSUCCESS\t\"Parent PID: 752, Command line: \"\"C:\\Program Files\\Git\\mingw64\\bin\\git.exe\"\" --version, Current directory: C:\\Users\\gpierre\\, Environment: \n> > ;\tACLOCAL_PATH=C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal\n> > ;\tALLUSERSPROFILE=C:\\ProgramData\n> > ;\tAPPDATA=C:\\Users\\gpierre\\AppData\\Roaming\n> > ;\tCOMMONPROGRAMFILES=C:\\Program Files\\Common Files\n> > ;\tCOMPUTERNAME=\n> > ;\tCOMSPEC=C:\\windows\\system32\\cmd.exe\n> > ;\tCONFIG_SITE=C:/Program Files/Git/mingw64/etc/config.site\n> > ;\tCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files\n> > ;\tCommonProgramW6432=C:\\Program Files\\Common Files\n> > ;\tDEFLOGDIR=C:\\ProgramData\\McAfee\\Endpoint Security\\Logs\n> > ;\tDISPLAY=needs-to-be-defined\n> > ;\tEXEPATH=C:\\Program Files\\Git\n> > ;\tFP_NO_HOST_CHECK=NO\n> > ;\tGTK_BASEPATH=C:\\Program Files (x86)\\GtkSharp\\2.12\\\n> > ;\tHOME=C:\\Users\\gpierre\n> > ;\tHOMEDRIVE=C:\n> > ;\tHOMEPATH=\\Users\\gpierre\n> > ;\tHOSTNAME=\n> > ;\tHasSCCM2012Client=1\n> > ;\tINFOPATH=C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info\n> > ;\tLANG=en_US.UTF-8\n> > ;\tLOCALAPPDATA=C:\\Users\\gpierre\\AppData\\Local\n> > ;\tLOGONSERVER=\\\\\n> > ;\tMANPATH=C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man\n> > ;\tMINGW_CHOST=x86_64-w64-mingw32\n> > ;\tMINGW_PACKAGE_PREFIX=mingw-w64-x86_64\n> > ;\tMINGW_PREFIX=C:/Program Files/Git/mingw64\n> > ;\tMSYSTEM=MINGW64\n> > ;\tMSYSTEM_CARCH=x86_64\n> > ;\tMSYSTEM_CHOST=x86_64-w64-mingw32\n> > ;\tMSYSTEM_PREFIX=C:/Program Files/Git/mingw64\n> > ;\tNUMBER_OF_PROCESSORS=4\n> > ;\tORIGINAL_PATH=C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\gpierre\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\Users\\gpierre\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\1E\\NomadBranch;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0\n> > ;\tORIGINAL_TEMP=C:/Users/gpierre/AppData/Local/Temp\n> > ;\tORIGINAL_TMP=C:/Users/gpierre/AppData/Local/Temp\n> > ;\tOS=Windows_NT\n> > ;\tPATH=C:\\Users\\gpierre\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\gpierre\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\Users\\gpierre\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\1E\\NomadBranch;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl\n> > ;\tPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC\n> > ;\tPKG_CONFIG_PATH=C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig\n> > ;\tPLINK_PROTOCOL=ssh\n> > ;\tPROCESSOR_ARCHITECTURE=AMD64\n> > ;\tPROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel\n> > ;\"\n> > 9:55:51.2\tgit.exe\t5604\tThread Create\t\tSUCCESS\tThread ID: 8844\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\git.exe\tSUCCESS\tImage Base: 0x1160000, Image Size: 0x2f0000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77250000, Image Size: 0x19f000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77130000, Image Size: 0x11f000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefcde0000, Image Size: 0x6a000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libiconv-2.dll\tSUCCESS\tImage Base: 0x66000000, Image Size: 0x10b000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefd950000, Image Size: 0x9f000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libintl-8.dll\tSUCCESS\tImage Base: 0x61cc0000, Image Size: 0x28000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefd7d0000, Image Size: 0xdb000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7feff520000, Image Size: 0x1f000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7fefebf0000, Image Size: 0x12d000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libpcre2-8-0.dll\tSUCCESS\tImage Base: 0x64380000, Image Size: 0x54000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\zlib1.dll\tSUCCESS\tImage Base: 0x62e80000, Image Size: 0x1f000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77030000, Image Size: 0xfa000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefd6c0000, Image Size: 0x67000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefd290000, Image Size: 0xe000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0xcb000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\ws2_32.dll\tSUCCESS\tImage Base: 0x7fefd240000, Image Size: 0x4d000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\nsi.dll\tSUCCESS\tImage Base: 0x7fefed50000, Image Size: 0x8000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libssp-0.dll\tSUCCESS\tImage Base: 0x68ac0000, Image Size: 0xe000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefed20000, Image Size: 0x2e000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7feff410000, Image Size: 0x109000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefccd0000, Image Size: 0x31000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefccc0000, Image Size: 0xc000\n> > 9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\cryptsp.dll\tSUCCESS\tImage Base: 0x7fefc530000, Image Size: 0x18000\n> > 9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\rsaenh.dll\tSUCCESS\tImage Base: 0x7fefc230000, Image Size: 0x47000\n> > 9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\cryptbase.dll\tSUCCESS\tImage Base: 0x7fefcbf0000, Image Size: 0xf000\n> > 9:55:51.3\tgit.exe\t5604\tThread Exit\t\tSUCCESS\tThread ID: 8844, User Time: 0.0000000, Kernel Time: 0.0468003\n> > 9:55:51.3\tgit.exe\t5604\tProcess Exit\t\tSUCCESS\tExit Status: 0, User Time: 0.0000000 seconds, Kernel Time: 0.0468003 seconds, Private Bytes: 2,940,928, Peak Private Bytes: 2,981,888, Working Set: 4,980,736, Peak Working Set: 4,980,736\n> > 9:55:51.6\tgit.exe\t5560\tProcess Start\t\tSUCCESS\t\"Parent PID: 9080, Command line: \"\"C:\\Program Files\\Git\\mingw64\\bin\\git.exe\"\" rev-parse --git-dir --is-inside-git-dir --is-bare-repository --is-inside-work-tree --short HEAD, Current directory: C:\\Users\\gpierre\\, Environment: \n> > 9:55:51.6\tgit.exe\t5560\tThread Create\t\tSUCCESS\tThread ID: 5248\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\git.exe\tSUCCESS\tImage Base: 0x190000, Image Size: 0x2f0000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77250000, Image Size: 0x19f000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77130000, Image Size: 0x11f000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefcde0000, Image Size: 0x6a000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libiconv-2.dll\tSUCCESS\tImage Base: 0x66000000, Image Size: 0x10b000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefd950000, Image Size: 0x9f000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libintl-8.dll\tSUCCESS\tImage Base: 0x61cc0000, Image Size: 0x28000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefd7d0000, Image Size: 0xdb000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7feff520000, Image Size: 0x1f000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7fefebf0000, Image Size: 0x12d000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libpcre2-8-0.dll\tSUCCESS\tImage Base: 0x64380000, Image Size: 0x54000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\zlib1.dll\tSUCCESS\tImage Base: 0x62e80000, Image Size: 0x1f000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77030000, Image Size: 0xfa000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefd6c0000, Image Size: 0x67000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefd290000, Image Size: 0xe000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0xcb000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\ws2_32.dll\tSUCCESS\tImage Base: 0x7fefd240000, Image Size: 0x4d000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\nsi.dll\tSUCCESS\tImage Base: 0x7fefed50000, Image Size: 0x8000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libssp-0.dll\tSUCCESS\tImage Base: 0x68ac0000, Image Size: 0xe000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefed20000, Image Size: 0x2e000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7feff410000, Image Size: 0x109000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefccd0000, Image Size: 0x31000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefccc0000, Image Size: 0xc000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\cryptsp.dll\tSUCCESS\tImage Base: 0x7fefc530000, Image Size: 0x18000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\rsaenh.dll\tSUCCESS\tImage Base: 0x7fefc230000, Image Size: 0x47000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\cryptbase.dll\tSUCCESS\tImage Base: 0x7fefcbf0000, Image Size: 0xf000\n> > 9:55:51.7\tgit.exe\t5560\tThread Exit\t\tSUCCESS\tThread ID: 5248, User Time: 0.0000000, Kernel Time: 0.0780005\n> > 9:55:51.7\tgit.exe\t5560\tProcess Exit\t\tSUCCESS\tExit Status: 128, User Time: 0.0000000 seconds, Kernel Time: 0.0780005 seconds, Private Bytes: 2,932,736, Peak Private Bytes: 2,973,696, Working Set: 5,062,656, Peak Working Set: 5,062,656\n> > \n> > \n> > Thanks a lot! Cheers,\n> > Pierre G.\n> > \n> > \n> \n"},{"id":"371366","messageId":"SN6PR03MB364786545AA1170012EEB5F9BA4A0@SN6PR03MB3647.namprd03.prod.outlook.com","threadId":"50556","inReplyTo":"nycvar.QRO.7.76.6.1903122308110.41@tvgsbejvaqbjf.bet","subject":"RE: Bug: git for Windows spawning a lot of processes recursively","fromName":"Garcia, Pierre","fromEmail":"pgarcia@trusimulation.com","sentAt":"2019-03-13T13:58:40Z","receivedAt":"2019-03-13T13:58:52Z","isPatch":false,"sender":{"key":"pgarcia@trusimulation.com","avatar":null},"body":"Great, thanks for the feedback.\nVersion 2.21 was also working BTW.\nBye\nPierre\n\n-----Original Message-----\nFrom: Johannes Schindelin <Johannes.Schindelin@gmx.de> \nSent: Tuesday, March 12, 2019 18:09\nTo: Garcia, Pierre <pgarcia@trusimulation.com>\nCc: git@vger.kernel.org\nSubject: RE: Bug: git for Windows spawning a lot of processes recursively\n\nHi Pierre,\n\nOn Mon, 11 Mar 2019, Garcia, Pierre wrote:\n\n> Hello Johannes,\n> \n> I installed the following snapshot on the problematic machine:\n> Sun, 10 Mar 2019 17:37:25 +0100\n> (commit eb5d06f545)\n> Git for Windows installer: 64-bit\n> \n> And the problem is gone! No more issue!\n\nThank you for confirming!\n\n> At the time I had the issue I was on field trip with limited time and no other version to try at hand - as a workaround I ended up having GitExtension point to the mingw64 binary and it worked normally.\n> I tried the exact same version that caused the problem on the laptop, on another machine and I didn't get the issue this time, so the problem might be tied to a very specific setup.\n\nIIRC we fixed some potentially unterminated string recently, and that might be the fix for your problem.\n\nIn any case, I won't worry about it now ;-)\n\nCiao,\nJohannes\n\n> \n> Cheers,\n> Pierre\n> \n> -----Original Message-----\n> From: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n> Sent: Friday, March 08, 2019 15:56\n> To: Garcia, Pierre <pgarcia@trusimulation.com>\n> Cc: git@vger.kernel.org\n> Subject: Re: Bug: git for Windows spawning a lot of processes \n> recursively\n> \n> Hi Pierre,\n> \n> On Fri, 22 Feb 2019, Garcia, Pierre wrote:\n> \n> > I'd like to report an issue with git for Windows\n> > \n> > Git version 2.20.1\n> > Windows 7 x64 (Build 7601: Service Pack 1)\n> > \n> > --------------------------------------------------------------------\n> > --\n> > ------\n> > Issue:\n> > When running from Git-bash (not even inside a repo), git commands \n> > from built-in are OK, but if I use the exe that is located at \n> > C:\\Program Files\\Git\\bin\\git.exe, the process takes long to execute \n> > and then exits with error \"error launching git: The filename or \n> > extension is too\n> > long.\":\n> \n> Is this still happening with v2.21.0? Or for that matter, with the latest snapshot at https://wingit.blob.core.windows.net/files/index.html?\n> \n> Ciao,\n> Johannes\n> \n> > \n> > $ git --version\n> > git version 2.20.1.windows.1\n> > \n> > $ which git\n> > /mingw64/bin/git\n> > \n> > $ /c/Program\\ Files/Git/bin/git.exe --version error launching git: \n> > The filename or extension is too long.\n> > \n> > --------------------------------------------------------------------\n> > --\n> > ------ It started out of the blue, nothing special was done on the \n> > computer, the previous day I cloned some repos, the next it was not working anymore.\n> > I tried uninstall-reinstall with no success.\n> > I'm using Gitextensions as well, but I verified that the problem was occurring without Gitextensions (uninstalled at the time the traces were taken).\n> > \n> > --------------------------------------------------------------------\n> > --\n> > ------ I ran procmon.exe to monitor the activity of the process and \n> > I found out that git.exe was spawning itself 385 times in total in the trace I took, until all processes exit with error code 1, here is an extract of the procmon trace, showing thread and process activity for git.exe (I have more exhaustive trace but the file is quite big), I included the environment variables on the first call:\n> > \n> > Time of Day\tProcess Name\tPID\tOperation\tPath\tResult\tDetail\n> > 8:57:20.7\tgit.exe\t12744\tProcess Start\t\tSUCCESS\t\"Parent PID: 8412, Command line: \"\"C:\\Program Files\\Git\\bin\\git.exe\"\"  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> > ;\t=::=::\\\n> > ;\t=C:=C:\\Users\\gpierre\\Desktop\n> > ;\t=ExitCode=00000001\n> > ;\tALLUSERSPROFILE=C:\\ProgramData\n> > ;\tCommonProgramFiles=C:\\Program Files\\Common Files\n> > ;\tCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files\n> > ;\tCommonProgramW6432=C:\\Program Files\\Common Files\n> > ;\tComSpec=C:\\windows\\system32\\cmd.exe\n> > ;\tDEFLOGDIR=C:\\ProgramData\\McAfee\\Endpoint Security\\Logs\n> > ;\tFP_NO_HOST_CHECK=NO\n> > ;\tGTK_BASEPATH=C:\\Program Files (x86)\\GtkSharp\\2.12\\\n> > ;\tHasSCCM2012Client=1\n> > ;\tHOME=C:\\Users\\gpierre\n> > ;\tHOMEDRIVE=C:\n> > ;\tHOMEPATH=\\Users\\gpierre\n> > ;\tHOMESHARE=C:\\Users\\gpierre\n> > ;\tLOCALAPPDATA=C:\\Users\\gpierre\\AppData\\Local\n> > ;\tNUMBER_OF_PROCESSORS=4\n> > ;\tOS=Windows_NT\n> > ;\tPath=C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\windows\\system32\\config\\systemprofile\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY\\;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\1E\\NomadBranch\\;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0\\\n> > ;\tPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC\n> > ;\tPROCESSOR_ARCHITECTURE=AMD64\n> > ;\tPROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel\n> > ;\tPROCESSOR_LEVEL=6\n> > ;\tPROCESSOR_REVISION=5e03\n> > ;\tProgramData=C:\\ProgramData\n> > ;\tProgramFiles=C:\\Program Files\n> > ;\tProgramFiles(x86)=C:\\Program Files (x86)\n> > ;\tProgramW6432=C:\\Program Files\n> > ;\tPROMPT=$P$G\n> > ;\tPSModulePath=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules\n> > ;\tPUBLIC=C:\\Users\\Public\n> > ;\tSESSIONNAME=Console\n> > ;\tSNC_LIB=gsskrb5.dll\n> > ;\tSOEDataPartition=C:\n> > ;\tSOEDesktopAdminModel=User\n> > ;\tSOESystemPartitionLabel=SOE-Disk\n> > ;\tSystemDrive=C:\n> > ;\tSystemRoot=C:\\windows\n> > ;\tTEMP=C:\\Users\\gpierre\\AppData\\Local\\Temp\n> > ;\tTMP=C:\\Users\\gpierre\\AppData\\Local\\Temp\n> > ;\tUSERNAME=gpierre\n> > ;\tUSERPROFILE=C:\\Users\\gpierre\n> > ;\tVBOX_MSI_INSTALL_PATH=C:\\Program Files\\Oracle\\VirtualBox\\\n> > ;\tVS140COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\\n> > ;\tVS80COMNTOOLS=C:\\Program Files (x86)\\Microsoft Visual Studio 8\\Common7\\Tools\\\n> > ;\twindir=C:\\windows\n> > ;\twindows_tracing_flags=3\n> > ;\twindows_tracing_logfile=C:\\BVTBin\\Tests\\installpackage\\csilogfile.log\"\n> > 8:57:20.7\tgit.exe\t12744\tThread Create\t\tSUCCESS\tThread ID: 12748\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tImage Base: 0x13a0000, Image Size: 0x52000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77b70000, Image Size: 0x19f000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77950000, Image Size: 0x11f000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefd860000, Image Size: 0x6a000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefef60000, Image Size: 0x9f000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\shell32.dll\tSUCCESS\tImage Base: 0x7fefdc20000, Image Size: 0xd8a000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\shlwapi.dll\tSUCCESS\tImage Base: 0x7feffde0000, Image Size: 0x71000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefdae0000, Image Size: 0x67000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77a70000, Image Size: 0xfa000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefed30000, Image Size: 0xe000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefdb50000, Image Size: 0xcb000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefe9b0000, Image Size: 0x2e000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7fefed40000, Image Size: 0x109000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0x31000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefd5e0000, Image Size: 0xc000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefec50000, Image Size: 0xdb000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7fefee50000, Image Size: 0x1f000\n> > 8:57:20.7\tgit.exe\t12744\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7feff6b0000, Image Size: 0x12d000\n> > 8:57:20.8\tgit.exe\t12744\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12756, Command line: git.exe  --version\n> > 8:57:20.8\tgit.exe\t12756\tProcess Start\t\tSUCCESS\t\"Parent PID: 12744, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> > 8:57:20.8\tgit.exe\t12756\tThread Create\t\tSUCCESS\tThread ID: 12760\n> > \n> > This repeats 385 times (I removed the Load Image lines):\n> > \n> > 8:57:20.9\tgit.exe\t12756\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12764, Command line: git.exe  --version\n> > 8:57:20.9\tgit.exe\t12764\tProcess Start\t\tSUCCESS\t\"Parent PID: 12756, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> > 8:57:20.9\tgit.exe\t12764\tThread Create\t\tSUCCESS\tThread ID: 12768\n> > 8:57:20.9\tgit.exe\t12764\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12772, Command line: git.exe  --version\n> > 8:57:20.9\tgit.exe\t12772\tProcess Start\t\tSUCCESS\t\"Parent PID: 12764, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> > 8:57:20.9\tgit.exe\t12772\tThread Create\t\tSUCCESS\tThread ID: 12776\n> > 8:57:21.0\tgit.exe\t12772\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12780, Command line: git.exe  --version\n> > 8:57:21.0\tgit.exe\t12780\tProcess Start\t\tSUCCESS\t\"Parent PID: 12772, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> > 8:57:21.0\tgit.exe\t12780\tThread Create\t\tSUCCESS\tThread ID: 12784\n> > 8:57:21.0\tgit.exe\t12780\tProcess Create\tC:\\Program Files\\Git\\bin\\git.exe\tSUCCESS\tPID: 12788, Command line: git.exe  --version\n> > 8:57:21.0\tgit.exe\t12788\tProcess Start\t\tSUCCESS\t\"Parent PID: 12780, Command line: git.exe  --version, Current directory: C:\\Users\\gpierre\\Desktop\\, Environment: \n> > 8:57:21.0\tgit.exe\t12788\tThread Create\t\tSUCCESS\tThread ID: 12792\n> > ...\n> > \n> > After that the processes exit one by one (all with error code 1) in reverse order:\n> > \n> > ...\n> > 8:57:48.6\tgit.exe\t12788\tThread Exit\t\tSUCCESS\tThread ID: 12792, User Time: 0.0000000, Kernel Time: 0.0312002\n> > 8:57:48.6\tgit.exe\t12788\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,576,960, Peak Private Bytes: 1,654,784, Working Set: 4,235,264, Peak Working Set: 4,272,128\n> > 8:57:48.6\tgit.exe\t12780\tThread Exit\t\tSUCCESS\tThread ID: 12784, User Time: 0.0000000, Kernel Time: 0.0312002\n> > 8:57:48.6\tgit.exe\t12780\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,597,440, Peak Private Bytes: 1,654,784, Working Set: 4,251,648, Peak Working Set: 4,288,512\n> > 8:57:48.6\tgit.exe\t12772\tThread Exit\t\tSUCCESS\tThread ID: 12776, User Time: 0.0000000, Kernel Time: 0.0312002\n> > 8:57:48.6\tgit.exe\t12772\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,601,536, Peak Private Bytes: 1,642,496, Working Set: 4,304,896, Peak Working Set: 4,341,760\n> > 8:57:48.6\tgit.exe\t12764\tThread Exit\t\tSUCCESS\tThread ID: 12768, User Time: 0.0156001, Kernel Time: 0.0312002\n> > 8:57:48.6\tgit.exe\t12764\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0156001 seconds, Kernel Time: 0.0468003 seconds, Private Bytes: 1,597,440, Peak Private Bytes: 1,638,400, Working Set: 4,263,936, Peak Working Set: 4,300,800\n> > 8:57:48.6\tgit.exe\t12756\tThread Exit\t\tSUCCESS\tThread ID: 12760, User Time: 0.0000000, Kernel Time: 0.0156001\n> > 8:57:48.6\tgit.exe\t12756\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0156001 seconds, Private Bytes: 1,581,056, Peak Private Bytes: 1,642,496, Working Set: 4,222,976, Peak Working Set: 4,259,840\n> > 8:57:48.6\tgit.exe\t12744\tThread Exit\t\tSUCCESS\tThread ID: 12748, User Time: 0.0000000, Kernel Time: 0.0312002\n> > 8:57:48.6\tgit.exe\t12744\tProcess Exit\t\tSUCCESS\tExit Status: 1, User Time: 0.0000000 seconds, Kernel Time: 0.0312002 seconds, Private Bytes: 1,560,576, Peak Private Bytes: 1,650,688, Working Set: 4,231,168, Peak Working Set: 4,308,992\n> > \n> > --------------------------------------------------------------------\n> > --\n> > ------ I never saw that before, it seems every command is doing that \n> > (tried status, log, init, fetch).\n> > It happened to me before that GitExtensions or Visual Studio would spawn a lot of git processes, but nothing like this.\n> > I'm wondering if there is a glitch in the code that would allow git.exe to call itself with same arguments, leading to an (quasi) endless loop of calls.\n> > Let me know what I can do to help isolating the problem, I'll assist if possible.\n> > \n> > --------------------------------------------------------------------\n> > --\n> > ------ For reference, here is what the built-in git --version is \n> > doing from git bash, only two processes are spawned, git --version first (the command line), then git rev-parse, and then the process exits:\n> > \n> > 9:55:51.2\tgit.exe\t5604\tProcess Start\t\tSUCCESS\t\"Parent PID: 752, Command line: \"\"C:\\Program Files\\Git\\mingw64\\bin\\git.exe\"\" --version, Current directory: C:\\Users\\gpierre\\, Environment: \n> > ;\tACLOCAL_PATH=C:\\Program Files\\Git\\mingw64\\share\\aclocal;C:\\Program Files\\Git\\usr\\share\\aclocal\n> > ;\tALLUSERSPROFILE=C:\\ProgramData\n> > ;\tAPPDATA=C:\\Users\\gpierre\\AppData\\Roaming\n> > ;\tCOMMONPROGRAMFILES=C:\\Program Files\\Common Files\n> > ;\tCOMPUTERNAME=\n> > ;\tCOMSPEC=C:\\windows\\system32\\cmd.exe\n> > ;\tCONFIG_SITE=C:/Program Files/Git/mingw64/etc/config.site\n> > ;\tCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files\n> > ;\tCommonProgramW6432=C:\\Program Files\\Common Files\n> > ;\tDEFLOGDIR=C:\\ProgramData\\McAfee\\Endpoint Security\\Logs\n> > ;\tDISPLAY=needs-to-be-defined\n> > ;\tEXEPATH=C:\\Program Files\\Git\n> > ;\tFP_NO_HOST_CHECK=NO\n> > ;\tGTK_BASEPATH=C:\\Program Files (x86)\\GtkSharp\\2.12\\\n> > ;\tHOME=C:\\Users\\gpierre\n> > ;\tHOMEDRIVE=C:\n> > ;\tHOMEPATH=\\Users\\gpierre\n> > ;\tHOSTNAME=\n> > ;\tHasSCCM2012Client=1\n> > ;\tINFOPATH=C:\\Program Files\\Git\\usr\\local\\info;C:\\Program Files\\Git\\usr\\share\\info;C:\\Program Files\\Git\\usr\\info;C:\\Program Files\\Git\\share\\info\n> > ;\tLANG=en_US.UTF-8\n> > ;\tLOCALAPPDATA=C:\\Users\\gpierre\\AppData\\Local\n> > ;\tLOGONSERVER=\\\\\n> > ;\tMANPATH=C:\\Program Files\\Git\\mingw64\\local\\man;C:\\Program Files\\Git\\mingw64\\share\\man;C:\\Program Files\\Git\\usr\\local\\man;C:\\Program Files\\Git\\usr\\share\\man;C:\\Program Files\\Git\\usr\\man;C:\\Program Files\\Git\\share\\man\n> > ;\tMINGW_CHOST=x86_64-w64-mingw32\n> > ;\tMINGW_PACKAGE_PREFIX=mingw-w64-x86_64\n> > ;\tMINGW_PREFIX=C:/Program Files/Git/mingw64\n> > ;\tMSYSTEM=MINGW64\n> > ;\tMSYSTEM_CARCH=x86_64\n> > ;\tMSYSTEM_CHOST=x86_64-w64-mingw32\n> > ;\tMSYSTEM_PREFIX=C:/Program Files/Git/mingw64\n> > ;\tNUMBER_OF_PROCESSORS=4\n> > ;\tORIGINAL_PATH=C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\gpierre\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\Users\\gpierre\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\1E\\NomadBranch;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0\n> > ;\tORIGINAL_TEMP=C:/Users/gpierre/AppData/Local/Temp\n> > ;\tORIGINAL_TMP=C:/Users/gpierre/AppData/Local/Temp\n> > ;\tOS=Windows_NT\n> > ;\tPATH=C:\\Users\\gpierre\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\local\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\gpierre\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Dell\\Dell Data Protection\\Encryption;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\Users\\gpierre\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm;C:\\EASE\\APEX12-4.4.0\\bin;C:\\EASE\\APEX12-4.4.0\\platforms\\default\\DEOS;C:\\Program Files\\PuTTY;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\1E\\NomadBranch;C:\\HashiCorp\\Vagrant\\bin;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Git\\usr\\bin\\vendor_perl;C:\\Program Files\\Git\\usr\\bin\\core_perl\n> > ;\tPATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC\n> > ;\tPKG_CONFIG_PATH=C:\\Program Files\\Git\\mingw64\\lib\\pkgconfig;C:\\Program Files\\Git\\mingw64\\share\\pkgconfig\n> > ;\tPLINK_PROTOCOL=ssh\n> > ;\tPROCESSOR_ARCHITECTURE=AMD64\n> > ;\tPROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel\n> > ;\"\n> > 9:55:51.2\tgit.exe\t5604\tThread Create\t\tSUCCESS\tThread ID: 8844\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\git.exe\tSUCCESS\tImage Base: 0x1160000, Image Size: 0x2f0000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77250000, Image Size: 0x19f000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77130000, Image Size: 0x11f000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefcde0000, Image Size: 0x6a000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libiconv-2.dll\tSUCCESS\tImage Base: 0x66000000, Image Size: 0x10b000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefd950000, Image Size: 0x9f000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libintl-8.dll\tSUCCESS\tImage Base: 0x61cc0000, Image Size: 0x28000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefd7d0000, Image Size: 0xdb000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7feff520000, Image Size: 0x1f000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7fefebf0000, Image Size: 0x12d000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libpcre2-8-0.dll\tSUCCESS\tImage Base: 0x64380000, Image Size: 0x54000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\zlib1.dll\tSUCCESS\tImage Base: 0x62e80000, Image Size: 0x1f000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77030000, Image Size: 0xfa000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefd6c0000, Image Size: 0x67000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefd290000, Image Size: 0xe000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0xcb000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\ws2_32.dll\tSUCCESS\tImage Base: 0x7fefd240000, Image Size: 0x4d000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\nsi.dll\tSUCCESS\tImage Base: 0x7fefed50000, Image Size: 0x8000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libssp-0.dll\tSUCCESS\tImage Base: 0x68ac0000, Image Size: 0xe000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefed20000, Image Size: 0x2e000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7feff410000, Image Size: 0x109000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefccd0000, Image Size: 0x31000\n> > 9:55:51.2\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefccc0000, Image Size: 0xc000\n> > 9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\cryptsp.dll\tSUCCESS\tImage Base: 0x7fefc530000, Image Size: 0x18000\n> > 9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\rsaenh.dll\tSUCCESS\tImage Base: 0x7fefc230000, Image Size: 0x47000\n> > 9:55:51.3\tgit.exe\t5604\tLoad Image\tC:\\Windows\\System32\\cryptbase.dll\tSUCCESS\tImage Base: 0x7fefcbf0000, Image Size: 0xf000\n> > 9:55:51.3\tgit.exe\t5604\tThread Exit\t\tSUCCESS\tThread ID: 8844, User Time: 0.0000000, Kernel Time: 0.0468003\n> > 9:55:51.3\tgit.exe\t5604\tProcess Exit\t\tSUCCESS\tExit Status: 0, User Time: 0.0000000 seconds, Kernel Time: 0.0468003 seconds, Private Bytes: 2,940,928, Peak Private Bytes: 2,981,888, Working Set: 4,980,736, Peak Working Set: 4,980,736\n> > 9:55:51.6\tgit.exe\t5560\tProcess Start\t\tSUCCESS\t\"Parent PID: 9080, Command line: \"\"C:\\Program Files\\Git\\mingw64\\bin\\git.exe\"\" rev-parse --git-dir --is-inside-git-dir --is-bare-repository --is-inside-work-tree --short HEAD, Current directory: C:\\Users\\gpierre\\, Environment: \n> > 9:55:51.6\tgit.exe\t5560\tThread Create\t\tSUCCESS\tThread ID: 5248\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\git.exe\tSUCCESS\tImage Base: 0x190000, Image Size: 0x2f0000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\ntdll.dll\tSUCCESS\tImage Base: 0x77250000, Image Size: 0x19f000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\kernel32.dll\tSUCCESS\tImage Base: 0x77130000, Image Size: 0x11f000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\KernelBase.dll\tSUCCESS\tImage Base: 0x7fefcde0000, Image Size: 0x6a000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libiconv-2.dll\tSUCCESS\tImage Base: 0x66000000, Image Size: 0x10b000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\msvcrt.dll\tSUCCESS\tImage Base: 0x7fefd950000, Image Size: 0x9f000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libintl-8.dll\tSUCCESS\tImage Base: 0x61cc0000, Image Size: 0x28000\n> > 9:55:51.6\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\advapi32.dll\tSUCCESS\tImage Base: 0x7fefd7d0000, Image Size: 0xdb000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\sechost.dll\tSUCCESS\tImage Base: 0x7feff520000, Image Size: 0x1f000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\rpcrt4.dll\tSUCCESS\tImage Base: 0x7fefebf0000, Image Size: 0x12d000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libpcre2-8-0.dll\tSUCCESS\tImage Base: 0x64380000, Image Size: 0x54000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\zlib1.dll\tSUCCESS\tImage Base: 0x62e80000, Image Size: 0x1f000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\user32.dll\tSUCCESS\tImage Base: 0x77030000, Image Size: 0xfa000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\gdi32.dll\tSUCCESS\tImage Base: 0x7fefd6c0000, Image Size: 0x67000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\lpk.dll\tSUCCESS\tImage Base: 0x7fefd290000, Image Size: 0xe000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\usp10.dll\tSUCCESS\tImage Base: 0x7fefd5f0000, Image Size: 0xcb000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\ws2_32.dll\tSUCCESS\tImage Base: 0x7fefd240000, Image Size: 0x4d000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\nsi.dll\tSUCCESS\tImage Base: 0x7fefed50000, Image Size: 0x8000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Program Files\\Git\\mingw64\\bin\\libssp-0.dll\tSUCCESS\tImage Base: 0x68ac0000, Image Size: 0xe000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\imm32.dll\tSUCCESS\tImage Base: 0x7fefed20000, Image Size: 0x2e000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\msctf.dll\tSUCCESS\tImage Base: 0x7feff410000, Image Size: 0x109000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\nvinitx.dll\tSUCCESS\tImage Base: 0x7fefccd0000, Image Size: 0x31000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\version.dll\tSUCCESS\tImage Base: 0x7fefccc0000, Image Size: 0xc000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\cryptsp.dll\tSUCCESS\tImage Base: 0x7fefc530000, Image Size: 0x18000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\rsaenh.dll\tSUCCESS\tImage Base: 0x7fefc230000, Image Size: 0x47000\n> > 9:55:51.7\tgit.exe\t5560\tLoad Image\tC:\\Windows\\System32\\cryptbase.dll\tSUCCESS\tImage Base: 0x7fefcbf0000, Image Size: 0xf000\n> > 9:55:51.7\tgit.exe\t5560\tThread Exit\t\tSUCCESS\tThread ID: 5248, User Time: 0.0000000, Kernel Time: 0.0780005\n> > 9:55:51.7\tgit.exe\t5560\tProcess Exit\t\tSUCCESS\tExit Status: 128, User Time: 0.0000000 seconds, Kernel Time: 0.0780005 seconds, Private Bytes: 2,932,736, Peak Private Bytes: 2,973,696, Working Set: 5,062,656, Peak Working Set: 5,062,656\n> > \n> > \n> > Thanks a lot! Cheers,\n> > Pierre G.\n> > \n> > \n> \n"}]}