Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Question: What Windows system calls are being run in "git version"? #106

Closed
jkodroff opened this Issue Mar 25, 2013 · 5 comments

Comments

Projects
None yet
3 participants

Hello msysgit peeps.

I'm having a really frustrating problem with my machine as described in this Super User question.

Whenever I call git version, I get the text "flashplayerplugin" injected into the output and I cannot for the life of me figure out where it's coming from. I was hoping that you folks would be able to tell me what system calls are being made with "git version".

Thanks for any help you can provide.

Owner

dscho commented Mar 25, 2013

@jkodroff even if I do not self-identify as a "peep", I think that I can help you.

The first thing to try is to set the environment variable "GIT_TRACE" to something, e.g. "1". If the output of git version does not include anything more informative, you will have to dig deeper.

Digging deeper means that you will have to install the development environment, let it build Git, then replace the "-O2" in CFLAGS with a "-g" in /git/Makefile and rebuild and re-install. After that, you will be able to single-step and setting breakpoints using gdb.

However, a little git greping in the source code (which you can do yourself because this is all Open Source with an Open Development Process, i.e. we try to make it as easy as possible to develop the code for people like you), it seems that cmd_version simply outputs git_version_string which is set to GIT_VERSION that is passed to the compiler. So it is really funny what is happening on your side. Please investigate.

Ok, so we have a little further information:

The problem seems to be caused by a registry key used by the application AirFoil. The value is set to "flashplayerplugin" by AirFoil. If I take off the "", the output no longer appears. It's definitely not specific to git, as ruby -v will exhibit the same behavior if the offending registry key is present.

As we both know, both ruby and git are *-nix tools ported to Windows so I'm thinking it's possible that it's a bug with the tools used to build both git and ruby since starting a registry key with * seems legit. I did a brief search for the Ruby for Windows source code, but couldn't find any detailed info on what tools it uses to compile (e.g. a makefile).

Unfortunately, I know virtually nothing about native Windows apps or GNU stuff on Windows so I don't think I can be much more help in this area. I have reported the bug to Airfoil, but I figured it would be helpful to follow up since it's possible that you folks might see this issue again.

And thanks for making an incredibly useful tool. I couldn't imagine life without it, and I'm sure it was quite a bit of work.

Owner

sschuberth commented Mar 26, 2013

What's the exact registry key / value name? Please export to a .reg file and copy & paste it here.

Per this StackOverflow answer, it's:

HKEY_CURRENT_USER\Software\Rogue Amoeba\Airfoil\WhiteList\WhiteListItem_12

The exact number after WhiteListItem probably varies from install to install, but that probably doesn't matter.

Owner

sschuberth commented Mar 27, 2013

While this is an interesting issue I believe it's not a Git bug as other programs are affected as well. Also, as per the very SO answer you're linking, not only Windows ports of Unix tools are affected, but also e.g. Android SDK's find_java.exe. However, it's suspicious that so far I've only seen reports that see this issue in conjunction with MingGW-compiled programs. So maybe it's a MinGW runtime bug, or a Flash bug, or a combination of both. Anyway, I'm closing this issue here as we're probably not in the position to address this.

@sschuberth sschuberth closed this Mar 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment