-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Option --starlark_cpu_profile is completely broken on Windows #13748
Comments
@meteorcloudy could you please take a peek as the Windows expert? It is trivial to repro and broken completely, so I hope it may be a small fix. |
Thanks for the report! I'll look into it. |
I got a stack trace
This shouldn't be too bad I'll start working on a solution. |
Looks like this isn't a bug, but a feature request since the cpu profiler is not yet implemented on Windows. |
/cc @brandjon |
I guess it still shouldn't crash hard |
IIUC, Andrew is looking into porting cpu_profiler_posix.cc to Windows. If that doesn't work, we'll make it fail gracefully. |
@andrewkatson could you please comment for me how you got that stack trace? |
It was actually in |
Weird! For me |
Still working on this! Should have something to test out soon. |
Havent gotten the chance to look at this for a bit. Hoping I can do something soon |
Okay I've got a solution. I went with just ignoring and logging that the option is unsupported. The windows api lacks key functionality in order to get this information |
O-oh-h... that's too bad. Even partial functionality cannot be achieved on Windows? What exactly the missing API should do? |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out to the triage team ( |
Description of the problem / feature request:
--starlark_cpu_profile command-line option crashes Bazel server on Windows.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
For absolutely any Bazel build on Windows adding
--starlark_cpu_profile=pprof.gz
to the command line causes immediate server failure:Server terminated abruptly (error code: 2, error message: 'Stream removed', log file: 'c:\_\jjgeprbx\server\jvm.out')
jvm.out file mentioned is absolutely empty.
I have verified the problem is present on multiple Windows machines, but does not reproduce on Mac and Linux.
What operating system are you running Bazel on?
Windows 10 20H2
What's the output of
bazel info release
?4.1.0, 4.2.0rc1
The text was updated successfully, but these errors were encountered: