-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Windows] bazel.exe crash on paths with Cyrillic characters #3821
Comments
I've tried extract all files from bazel.exe, |
I need more info:
|
One more question:
What exactly do you mean by run: double-click on it in Windows Explorer, or run it from a shell, or something else? |
Both, double-click and from command prompt |
bazel.exe in command prompt
This window appears http://support.sas.com/kb/54/addl/fusion_54246_2_sasexestoppedworking.png
This is a process memory dump if you don't know how to debug it, just ignore it |
Hm, so Bazel crashes right after starting? Let's try something: could you try running it like so:
and paste the output here, if there's any? Also, just to make sure: you're using a machine with a 64-bit Intel/AMD CPU, not with ARM, right? |
One more thing, please open the MSYS shell (see installation requirements) and run: $ stat /c/path/to/bazel.exe
$ md5sum /c/path/to/bazel.exe The output should be the following for Bazel 0.5.4 (with JDK):
|
Empty output
Intel i7-4790K CPU - x64 Windows 10 Pro
Same thing with 0.6.0 |
So you have the right binary, good OS version, and good architecture. Could you try building a hello world and running it like I did below?
Depending on the version of VS you installed, vcvars.bat may be elsewhere. E.g. with vc2015 it'll be under |
Here's my hello.exe's MD5 for reference:
|
md5 dfc86ca2f5b1860a49f25de1ac81a625 |
Your binary works as well |
Thanks, then it could be a permission issue or something with the self-extracting zip. Could you look at bazel.exe's properties > security tab? Meanwhile can you try building Bazel from source: https://docs.bazel.build/versions/master/install-compile-source.html ? |
I forgot to mention that bazel.exe is a self-extracting zip. If you had a working Bazel binary, you could build Bazel from source with
and
so maybe the root cause of the crash is that bazel.exe is a concat of an .exe and a .zip, or that it's a self-extracting zip. |
As I mentioned before, |
Did you try this? |
I tried, but it returns error
Maybe because cyrillic letters in path |
Yes, that seems to be the issue:
|
Relevant: #2443 |
@KindDragon : Please try the following as a workaround until we fix this bug:
Sorry about the breakage! |
Also make sure your workspace is under a path without Cyrillic letters. |
Nope :(
Still crashing even after that :(
|
:( Does the first bazel run succeed though? This one:
|
This bug seems to affect Windows only. On Linux I can use Cyrillic characters:
|
Nope |
Now it returns error:
|
@KindDragon : thanks for your patience! I concluded that I can't even run a jar file if its path contains Cyrillic characters:
Every path the Bazel may access must use only ASCII characters. This includes envvars like PATH, JAVA_HOME, TEMP, but also your workspace path, or the path where you unpacked the Bazel distribution archive and attempted to bootstrap. Here's one more idea: let's set up a very clean environment and try running the release Bazel binary there, see if that works:
|
For step 4: also set
|
Sorry. Nope, still crashing. Something else causing it |
Can you provide |
Crash callstack:
|
related bug: #2443 |
Acknowledging that this is a problem, I'm still dropping the priority to P3. Reason being that the rest of Bazel doesn't work well with non-ASCII paths anyway (labels for example don't support non-ASCII paths), and the Windows team doesn't have capacity to fix the rest of Bazel. I'm sad to say that I don't realistically see fixing this any time in the next few months. |
Thanks for issue status |
Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen (or ping me to reopen) if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so. |
Description of the problem / feature request / question:
Application bazel.exe or bazel-0.5.4-without-jdk-windows-x86_64.exe crash at startup even without parameter
If possible, provide a minimal example to reproduce the problem:
Just run exe-file
Environment info
Operating System:
Microsoft Windows [Version 10.0.15063]
Bazel version (output of
bazel info release
):0.5.4
Have you found anything relevant by searching the web?
No
Anything else, information or logs or outputs that would be helpful?
Full dump bazel.zip
The text was updated successfully, but these errors were encountered: