Reputation: 21
I am trying to reinstall bazel on a the same machine after an OS upgrade. Following the same steps the same bazel version is giving problem when calling it. I assume the problem has to do with the java binary, but I have no idea how to further debug it. Do you have suggestions on how to further debug this?
After calling the bazel 0.19.1 installer the build hangs on
" Extracting Bazel installation..."
When calling strace on 'bazel help' or "bazel version" I get:
futex(0x7f93131bc9d0, FUTEX_WAIT, 8279, NULL at the end
When calling bazel --client_debug --batch version I get:
Additional information: Bazel 0.19.1 installed using:
OS:
lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: HELiOS
Description: HELiOS release 6.10SP2 (Carbon)
Release: 6.10SP2
Codename: Carbon
java version "1.8.0_152"
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)
See also same post on https://github.com/bazelbuild/bazel/issues/11557
Upvotes: 2
Views: 1148
Reputation: 13473
Copying my answer from the GitHub issue, which can hopefully shine light on how this can be debugged:
Bazel works on a self-extracting client-server model, where the client is a C++ binary that extracts the Java server (A-server.jar) and launches it, and communicates with it over RPC. It looks like the client did execute successfully, but it's running into problems communicating with the server. Check if the Java process is running, and do a thread dump to see where it's stuck?
Also consider trying this with a later Bazel version to see if the problem has been fixed in the mean time.
Upvotes: 1