question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

buck daemon hangs trying to cleanup dir artifact cache

See original GitHub issue

After a buck command, the daemon hangs for a period of time before returning control of the shell back to the user. Yourkit says there is a potential deadlock

Potential deadlock: frozen threads found

It seems that the following threads have not changed their stack for more than 10 seconds.
These threads are possibly (but not necessarily!) in a deadlock or hung.

NGSession 1: com.facebook.buck.cli.Main (NGCommunicator reader) <--- Frozen for at least 21s
com.martiansoftware.nailgun.NGUnixDomainSocketLibrary.read(int, ByteBuffer, int) NGUnixDomainSocketLibrary.java (native)
com.martiansoftware.nailgun.NGUnixDomainSocket$NGUnixDomainSocketInputStream.doRead(ByteBuffer) NGUnixDomainSocket.java:125
com.martiansoftware.nailgun.NGUnixDomainSocket$NGUnixDomainSocketInputStream.read() NGUnixDomainSocket.java:98
java.io.DataInputStream.readInt() DataInputStream.java:387
com.martiansoftware.nailgun.NGCommunicator.readChunk() NGCommunicator.java:327
com.martiansoftware.nailgun.NGCommunicator.lambda$null$0() NGCommunicator.java:124
com.martiansoftware.nailgun.NGCommunicator$$Lambda$12.call()
java.util.concurrent.FutureTask.run() FutureTask.java:266
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker) ThreadPoolExecutor.java:1149
java.util.concurrent.ThreadPoolExecutor$Worker.run() ThreadPoolExecutor.java:624
java.lang.Thread.run() Thread.java:748

cc @msridhar @sbalabanov @styurin

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
sbalabanov-zzcommented, Apr 23, 2018

You will still have to close an executor and increase timeout.

1reaction
sbalabanov-zzcommented, Apr 23, 2018

I am happy to accept a PR, please include relevant comments in the code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

buck clean
Delete artifacts and state files generated by Buck. Buck generates artifacts in the form of files and Buck also maintains its state using...
Read more >
Gerrit Code Review - Building with Buck
Caching Build Results; Cleaning The Buck Cache; Using Buck daemon ... existing project' and select the gerrit project from the current working directory....
Read more >
MVC & Follow-Ups: Persistent, shared work areas between ...
First there's the surprise that your working directory disappears between jobs; once discovered, users naturally want to use caching, ...
Read more >
Diff - gerrit - Google Git
Gerrit uses this cache to accelerate computing of the list +of paths of ... -Using a Buck daemon can save significant amounts of...
Read more >
Untitled
[0.8.1] - add dependency on zip. fix temp dir creation bug [0.8.0] - add ... Execute systemctl daemon-reload during post installation upgrade and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found