{"thread":{"id":"41322","subject":"git 2.7.0 crashes when top-down memory allocation preference is set","startedAt":"2016-02-03T19:08:18Z","lastAt":"2016-02-11T13:30:05Z","messageCount":7,"participants":["Klinger, Xia","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"277340","messageId":"9e3cc44087134954a3414fa8998c3ce6@USNAEXCP2.pc.cognex.com","threadId":"41322","inReplyTo":null,"subject":"git 2.7.0 crashes when top-down memory allocation preference is set","fromName":"Klinger, Xia","fromEmail":"xia.klinger@cognex.com","sentAt":"2016-02-03T19:08:18Z","receivedAt":"2016-02-03T19:08:18Z","isPatch":false,"sender":{"key":"xia.klinger@cognex.com","avatar":null},"body":"When the memory allocation preference is set to be Top-down on Windows and there are more than 4GB memory available, git will crash. The symptom is \"Segmentation Fault\".\n\nHow to reproduce\n1. Install latest Git package on Windows 7 x64\n2. Enable top-down memory allocation preference\n3. Open Git bash\n4. Type git -version\n5. You will see the error message\n6. Disable the top-down memory allocation preference\n7. Run the same experience\n8. You will see all works as expected.\n\nHow to enable top-down memory allocation preference\nAdd key HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager\\Memory Management\\AllocationPreference\nValue : DWORD 0x00100000\n"},{"id":"277369","messageId":"alpine.DEB.2.20.1602040844330.2964@virtualbox","threadId":"41322","inReplyTo":"9e3cc44087134954a3414fa8998c3ce6@USNAEXCP2.pc.cognex.com","subject":"Re: git 2.7.0 crashes when top-down memory allocation preference is set","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2016-02-04T07:46:07Z","receivedAt":"2016-02-04T07:46:07Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Wed, 3 Feb 2016, Klinger, Xia wrote:\n\n> When the memory allocation preference is set to be Top-down on Windows\n> and there are more than 4GB memory available, git will crash. The\n> symptom is \"Segmentation Fault\".\n\nThis might be related to https://github.com/git-for-windows/git/issues/627\n\nDo you have access to the Fast Track releases? If so, Windows 10 build\n14257 was released to it and purportedly fixes these issues.\n\nCiao,\nJohannes\n"},{"id":"277430","messageId":"43fbdf617f8d412db7b0d5c7d06df3ad@USNAEXCP2.pc.cognex.com","threadId":"41322","inReplyTo":"alpine.DEB.2.20.1602040844330.2964@virtualbox","subject":"RE: git 2.7.0 crashes when top-down memory allocation preference is set","fromName":"Klinger, Xia","fromEmail":"xia.klinger@cognex.com","sentAt":"2016-02-04T13:22:07Z","receivedAt":"2016-02-04T13:22:07Z","isPatch":false,"sender":{"key":"xia.klinger@cognex.com","avatar":null},"body":"Hi Johannes,\n\nI am not sure the Fast Track release means. Do you refer to Windows 10 builds (updates)? I am running Windows 7 x64 and haven't gone to Windows 10.\n\nDefault memory allocation in Windows is bottom-up, which means the lowest addresses are consumed the first. This is all fine until the address is over 4GB on x64 OS with more than 4GB physical memories. Many applications don't handle it properly and will crash. Windows provides a registry key to force OS allocating memory from the highest address available first and going down the chain as a way to test application's memory management. That's what I did on my host to test our own software. And it affected Git 2.7.0.2 (latest build for Windows from 2/2/2016). \n\nI had to rollback to Git 1.8.4 to work around this problem. 1.8.4 is a 32-bit build not 64-bit build. That's why it worked so far.\n\nThanks\n\nXia\n\n-----Original Message-----\nFrom: Johannes Schindelin [mailto:Johannes.Schindelin@gmx.de] \nSent: Thursday, February 04, 2016 2:46 AM\nTo: Klinger, Xia\nCc: git@vger.kernel.org\nSubject: Re: git 2.7.0 crashes when top-down memory allocation preference is set\n\nHi,\n\nOn Wed, 3 Feb 2016, Klinger, Xia wrote:\n\n> When the memory allocation preference is set to be Top-down on Windows \n> and there are more than 4GB memory available, git will crash. The \n> symptom is \"Segmentation Fault\".\n\nThis might be related to https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_git-2Dfor-2Dwindows_git_issues_627&d=CwIBAg&c=VCWpAYkS3z1bOCIxc-BPGZarCq9MRCAVxZJE051VqH8&r=67DEVp3lXDRlQoHC5xXHqK4qsTItx9yvwX98R_Hn9tg&m=jBFYZYDLdCLg-WMJPpbvl9rXn4syBv9RAGsbi106m3Y&s=MaQ04pu8kp8pdAOjVSd1PCqEwsYMpxpsFiqZ100gkrk&e= \n\nDo you have access to the Fast Track releases? If so, Windows 10 build\n14257 was released to it and purportedly fixes these issues.\n\nCiao,\nJohannes\n"},{"id":"277433","messageId":"alpine.DEB.2.20.1602041628180.2964@virtualbox","threadId":"41322","inReplyTo":"43fbdf617f8d412db7b0d5c7d06df3ad@USNAEXCP2.pc.cognex.com","subject":"RE: git 2.7.0 crashes when top-down memory allocation preference is set","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2016-02-04T15:29:26Z","receivedAt":"2016-02-04T15:29:26Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Thu, 4 Feb 2016, Klinger, Xia wrote:\n\n> I am not sure the Fast Track release means. Do you refer to Windows 10\n> builds (updates)? I am running Windows 7 x64 and haven't gone to Windows\n> 10.\n\nThe Fast Track release to which I referred is indeed Windows 10. In the\nmeantime, I verified that the problem you described still exists on\nWindows 10, but has nothing to do with the issue 627 in Git for Windows'\nbug tracker.\n\nCiao,\nJohannes\n"},{"id":"277435","messageId":"9854ccd81e624ee9a8f721a871bda4b2@USNAEXCP2.pc.cognex.com","threadId":"41322","inReplyTo":"alpine.DEB.2.20.1602041628180.2964@virtualbox","subject":"RE: git 2.7.0 crashes when top-down memory allocation preference is set","fromName":"Klinger, Xia","fromEmail":"xia.klinger@cognex.com","sentAt":"2016-02-04T16:27:55Z","receivedAt":"2016-02-04T16:27:55Z","isPatch":false,"sender":{"key":"xia.klinger@cognex.com","avatar":null},"body":"Thanks for confirming it. I hope a fix is available soon. I am using a very old version of Git at the moment to work around this issue, which doesn't comply to the requirement of our Stash Git Server from Atlassian.\n\nBest regards,\n\nXia\n\n-----Original Message-----\nFrom: Johannes Schindelin [mailto:Johannes.Schindelin@gmx.de] \nSent: Thursday, February 04, 2016 10:29 AM\nTo: Klinger, Xia\nCc: git@vger.kernel.org\nSubject: RE: git 2.7.0 crashes when top-down memory allocation preference is set\n\nHi,\n\nOn Thu, 4 Feb 2016, Klinger, Xia wrote:\n\n> I am not sure the Fast Track release means. Do you refer to Windows 10 \n> builds (updates)? I am running Windows 7 x64 and haven't gone to \n> Windows 10.\n\nThe Fast Track release to which I referred is indeed Windows 10. In the meantime, I verified that the problem you described still exists on Windows 10, but has nothing to do with the issue 627 in Git for Windows'\nbug tracker.\n\nCiao,\nJohannes\n"},{"id":"277491","messageId":"alpine.DEB.2.20.1602050048570.2964@virtualbox","threadId":"41322","inReplyTo":"9854ccd81e624ee9a8f721a871bda4b2@USNAEXCP2.pc.cognex.com","subject":"RE: git 2.7.0 crashes when top-down memory allocation preference is set","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2016-02-04T23:49:33Z","receivedAt":"2016-02-04T23:49:33Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Thu, 4 Feb 2016, Klinger, Xia wrote:\n\n> Thanks for confirming it. I hope a fix is available soon. I am using a\n> very old version of Git at the moment to work around this issue, which\n> doesn't comply to the requirement of our Stash Git Server from\n> Atlassian.\n\nIf you would please stop top-posting? And yes, I worked on a fix for part\nof the day.\n\nCiao,\nJohannes\n"},{"id":"277940","messageId":"alpine.DEB.2.20.1602111429200.2964@virtualbox","threadId":"41322","inReplyTo":"alpine.DEB.2.20.1602050048570.2964@virtualbox","subject":"RE: git 2.7.0 crashes when top-down memory allocation preference is set","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2016-02-11T13:30:05Z","receivedAt":"2016-02-11T13:30:05Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Fri, 5 Feb 2016, Johannes Schindelin wrote:\n\n> On Thu, 4 Feb 2016, Klinger, Xia wrote:\n> \n> > Thanks for confirming it. I hope a fix is available soon. I am using a\n> > very old version of Git at the moment to work around this issue, which\n> > doesn't comply to the requirement of our Stash Git Server from\n> > Atlassian.\n> \n> [...] I worked on a fix for part of the day.\n\nJudging from our past interaction, I would guess that you missed that\n2.7.1 fixes this. Just wanted to let you know.\n\nCiao,\nJohannes\n"}]}