-
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
Bazel getting stuck while building #748
Comments
Quick update on the situation: After cold starting Bazel multiple times (due to rebooting the OS) it seems the problem has disappeared entirely. However, let me leave the bug open for now. |
Hit ctrl-\ while bazel is "stuck" and you'll get a thread dump. On Jan 3, 2016 4:52 AM, "Michael Nett" notifications@github.com wrote:
|
Thanks Janak, that's really helpful. Since the problem has gone away, shall we mark this as not reproducible for the time being? |
…file, to aid in diagnosing issue #748. -- MOS_MIGRATED_REVID=111360258
Hi, the problem cropped up again and this time I got a the thread dump after getting stuck mid-analysis INFO: Loading complete. Analyzing...
^\
Sending SIGQUIT to JVM process 3802 (see /home/mnett/.cache/bazel/_bazel_mnett/630833098f940540d7dc43bb06a2df6a/server/jvm.out). see https://gist.github.com/mnett/e71b2a9e5a36382194b0 @janakdr can you reopen the issue? |
Looks like you had two stack traces there. First one looks like it was "skyframe-evaluator 120" #221 prio=5 os_prio=0 tid=0x00007f0b1802a000
So, waiting for an http download, I guess. The second dump is during |
I've been having trouble building things with Bazel lately. The issue manifests itself with Bazel appearing to be stuck (with no CPU load) at essentially random build steps (including the loading and analysis phase). This happens both when I attempt to build targets from my own repository, as well as in the bootstrap step in the Bazel installation; I've also tried with releases 0.1.0 and 0.1.2 with no success this far.
For example, when running
./compile.sh
from HEAD just now I get stuck with the following (aborted after several minutes without any progress):[mnett@singularity ~/Development/bazel] (master) Sat Jan 02 22:40:25 $ ./compile.sh INFO: You can skip this first step by providing a path to the bazel binary as second argument: INFO: ./compile.sh build /path/to/bazel 🍃 Building Bazel from scratch............ 🍃 Building Bazel with Bazel. .Extracting Bazel installation... Sending SIGTERM to previous Bazel server (pid=26879)... done. ....... INFO: Found 1 target... [2 / 45] Writing file src/main/java/com/google/devtools/build/lib/libbazel-main.jar-2.params
If I interpret the output of
strace
(see below), this seems to be a deadlock.The step at which the deadlock happens seems arbitrary and repeatedly running a build command eventually succeeds. Anyway, I didn't find any issues that seem to be related to this, and at this point I'm unsure of how to further debug the problem.
Do you have any suggestions?
The text was updated successfully, but these errors were encountered: