git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cygwin git diff crash
@ 2009-01-14 22:09 Jeremy Ramer
  2009-01-14 22:33 ` Johannes Schindelin
  0 siblings, 1 reply; 6+ messages in thread
From: Jeremy Ramer @ 2009-01-14 22:09 UTC (permalink / raw)
  To: Git Mailing List

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.

Thanks!
Jeremy

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: cygwin git diff crash
  2009-01-14 22:09 cygwin git diff crash Jeremy Ramer
@ 2009-01-14 22:33 ` Johannes Schindelin
  2009-01-15 14:42   ` Jeremy Ramer
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Schindelin @ 2009-01-14 22:33 UTC (permalink / raw)
  To: Jeremy Ramer; +Cc: Git Mailing List

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cygwin git diff crash
  2009-01-14 22:33 ` Johannes Schindelin
@ 2009-01-15 14:42   ` Jeremy Ramer
  2009-01-15 15:34     ` Johannes Schindelin
  0 siblings, 1 reply; 6+ messages in thread
From: Jeremy Ramer @ 2009-01-15 14:42 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Git Mailing List

On Wed, Jan 14, 2009 at 3:33 PM, Johannes Schindelin
<Johannes.Schindelin@gmx.de> wrote:
> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cygwin git diff crash
  2009-01-15 14:42   ` Jeremy Ramer
@ 2009-01-15 15:34     ` Johannes Schindelin
  2009-01-15 21:08       ` Jeremy Ramer
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Schindelin @ 2009-01-15 15:34 UTC (permalink / raw)
  To: Jeremy Ramer; +Cc: Git Mailing List

Hi,

On Thu, 15 Jan 2009, Jeremy Ramer wrote:

> On Wed, Jan 14, 2009 at 3:33 PM, Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
> > 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.

It is really easy: just make sure that make, gcc, libiconv-dev, 
openssl-dev and libcurl-dev are installed (that's it AFAIR), then download 
a tarball, e.g.

	http://repo.or.cz/w/git.git?a=snapshot;h=next;sf=tgz

unpack it, cd to it and run "make".  (I would _not_ run configure...)

Hth,
Dscho

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cygwin git diff crash
  2009-01-15 15:34     ` Johannes Schindelin
@ 2009-01-15 21:08       ` Jeremy Ramer
  2009-01-16  1:47         ` Johannes Schindelin
  0 siblings, 1 reply; 6+ messages in thread
From: Jeremy Ramer @ 2009-01-15 21:08 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Git Mailing List

On Thu, Jan 15, 2009 at 8:34 AM, Johannes Schindelin
<Johannes.Schindelin@gmx.de> wrote:
> Hi,
>
> On Thu, 15 Jan 2009, Jeremy Ramer wrote:
>
>> On Wed, Jan 14, 2009 at 3:33 PM, Johannes Schindelin
>> <Johannes.Schindelin@gmx.de> wrote:
>> > 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.
>
> It is really easy: just make sure that make, gcc, libiconv-dev,
> openssl-dev and libcurl-dev are installed (that's it AFAIR), then download
> a tarball, e.g.
>
>        http://repo.or.cz/w/git.git?a=snapshot;h=next;sf=tgz
>
> unpack it, cd to it and run "make".  (I would _not_ run configure...)
>
> Hth,
> Dscho
>

Well, after compiling from source the error seems to have disappeared.
Strange. I have seen it disappear before and come back later so I will
watch out for it, but for now it's not an issue.

Just a note, the cygwin names for the packages necessary to compile are
curl-devel
gcc
libiconv
make
openssl-devel

Jeremy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cygwin git diff crash
  2009-01-15 21:08       ` Jeremy Ramer
@ 2009-01-16  1:47         ` Johannes Schindelin
  0 siblings, 0 replies; 6+ messages in thread
From: Johannes Schindelin @ 2009-01-16  1:47 UTC (permalink / raw)
  To: Jeremy Ramer; +Cc: Git Mailing List

Hi,

On Thu, 15 Jan 2009, Jeremy Ramer wrote:

> Well, after compiling from source the error seems to have disappeared. 
> Strange. I have seen it disappear before and come back later so I will 
> watch out for it, but for now it's not an issue.

Well, at least it is gone for now.

> Just a note, the cygwin names for the packages necessary to compile are
> curl-devel
> gcc
> libiconv
> make
> openssl-devel

Thanks,
Dscho

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-16  1:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-14 22:09 cygwin git diff crash Jeremy Ramer
2009-01-14 22:33 ` Johannes Schindelin
2009-01-15 14:42   ` Jeremy Ramer
2009-01-15 15:34     ` Johannes Schindelin
2009-01-15 21:08       ` Jeremy Ramer
2009-01-16  1:47         ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).