[Bug 46635] New: git for windows works or crashes depending on how its invoked

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Feb 12 13:10:19 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=46635

            Bug ID: 46635
           Summary: git for windows works or crashes depending on how its
                    invoked
           Product: Wine
           Version: 4.0
          Hardware: x86-64
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: paleozogt at gmail.com
      Distribution: ---

Created attachment 63547
  --> https://bugs.winehq.org/attachment.cgi?id=63547
wine git bug project

Git for Windows seems to work properly with Wine:

> ➜ wine git --version
> git version 2.20.1.windows.1

However, if its invoked via some other tool (such as CMake or Java) it will
crash.  Perhaps it has to do with the particular API being used (evecvp, etc)?

For example, if CMake invokes it with

> execute_process(
>   COMMAND git --version
>   OUTPUT_VARIABLE VERSION
>   OUTPUT_STRIP_TRAILING_WHITESPACE
> )

then we see:

> ➜ wine cmake .. -G "Unix Makefiles"
>003b:fixme:winsock:WS_EnterSingleProtocolW unknown Protocol <0x00000000>
>003b:fixme:winsock:WS_EnterSingleProtocolW unknown Protocol <0x00000000>
>wine: Unhandled page fault on write access to 0x00000000 at address 0x5db52b (thread 0045), starting debugger...

I've attached a project that allows you to reproduce this issue:
  1) Make sure you have zip and p7zip-full installed
  2) Setup wine with "wineboot"
  3) Unzip the project and cd into it
  4) Run ./setup.sh to download git, cmake, etc
  5) Run ./test.sh to exercise the bug

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list