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

Re: cygwin git diff crash

From
JRJeremy Ramer <jdramer@gmail.com>
Date
Jan 15, 2009, 14:42 UTC
Message-ID
<b9fd99020901150642i2e61bb78yf2dab2b8713592df@mail.gmail.com>
In-Reply-To
<alpine.DEB.1.00.0901142333200.3586@pacific.mpi-cbg.de>

On Wed, Jan 14, 2009 at 3:33 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

Show 44 quoted lines
> Hi,
>
> On Wed, 14 Jan 2009, Jeremy Ramer wrote:
>
>> Ok this is a weird issue and it's probably cygwin's fault, but I
>> haven't found any way to fix it so I' thought I would throw it out
>> here for comment.
>>
>> I am using git 1.6.0.4 on cygwin. I have a repo where if any file has
>> changes and git detects as mode 100644 I get this error:
>> $git diff
>>       3 [main] git 2744 C:\cygwin\bin\git.exe: *** fatal error - could
>> not load user32, Win32 error
>>
>> If I change the mode to 100755 git diff will work fine.
>> $chmod a+x test.cpp
>> $git diff
>> diff --git a/test.cpp b/test.cpp
>> old mode 100644
>> new mode 100755
>> index 7c0dfcd..20987a7
>> --- a/test.cpp
>> +++ b/test.cpp
>> @@ -6,9 +6,11 @@ int main()
>>
>>  void func()
>>  {
>> +       int a;^M
>>  }
>>
>>  void func2()
>>  {
>> +       int b;^M
>>  }
>>
>> Anybody have a clue as to why this might occur?  I have seen this in
>> many of the repo's I use, but it is not repeatable.  I tried making a
>> test repo but could not reproduce.
>
> Wow, that _is_ weird.  Does your test suite pass?
>
> Ciao,
> Dscho
>

Forgive my ignorance, but I am not sure how to run the test suite. I did a quick google search but didn't find anything. I am using cygwin's packaged version of git and am not building it from source, so maybe the suite is not available. If I get a chance I will try building from source.

Jeremy
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 6 in “cygwin git diff crash”
  1. Jeremy RamerJan 14, 2009
  2. Johannes SchindelinJan 14, 2009
  3. Jeremy RamerJan 15, 2009
  4. Johannes SchindelinJan 15, 2009
  5. Jeremy RamerJan 15, 2009
  6. Johannes SchindelinJan 16, 2009

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

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