microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.39k stars 819 forks source link

Trying to install SBT hangs #813

Closed harshhpareek closed 6 years ago

harshhpareek commented 8 years ago

Please use the following bug reporting template to help produce actionable and reproducible issues:

See our contributing instructions for assistance.

harshhpareek commented 8 years ago

I removed sbt as installed above, and installed sbt with the Windows installer as described in http://www.scala-sbt.org/release/docs/Installing-sbt-on-Windows.html. This worked fine in cmd.exe but in bash, it hangs again. Looks like this is a compatibility problem between sbt and bash on Windows

aseering commented 8 years ago

Hi @harshhpareek , thanks for reporting this bug! Could you elaborate, though, on why you say "N/A" for the strace? I would be interested to see an strace of the sbt command, to see specifically what syscall or other operation it is hanging on.

aseering commented 8 years ago

Also, I assume this tool (like much of Scala) is built on top of the JVM? Note that there are many tickets in this bugtracker about bugs in support for common Java JVM implementations; there are a bunch of known issues that Microsoft has said that they will address in future releases. I wouldn't be surprised if this were related to that.

benhillis commented 8 years ago

Trying this now (I'm using default-jre, let me know if I need a different version of java).

harshhpareek commented 8 years ago

@aseering , sorry I meant Not Available (was at a different computer, but thought it was worth making the report). I'm noticing the same thing @SRGOM said, it blocks saying wait4(-1, Paste here: http://pastebin.com/rwh8zxQf

It stops after printing the comma. Is that normal behaviour?

benhillis commented 8 years ago

@SRGOM Looks like the commands worked? I'm at a terminal that's accepting input, is there anything I should enter?

sbt

benhillis commented 8 years ago

@SRGOM Yes this is with a build that has the fix for #746.

ben@BENHILL-Z800:/mnt/c/benhill$ java -version
java version "1.7.0_101"
OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
harshhpareek commented 8 years ago

I left that terminal open and it later showed a failed thread dump and displayed http://pastebin.com/nDdqygEx

I don't know what this means, but attaching this here in case it helps, and here is the associated core dump: http://pastebin.com/MJhEH8T6

benhillis commented 8 years ago

@SRGOM The fix is in the lxcore.sys driver. The fix will be our first post-Anniversary Update Insider build and I'm pushing to get this fix back-ported, hopefully the servicing folks are amenable.

harshhpareek commented 8 years ago

Thank you Ben ! Really looking forward to Java working!

On Thu, Aug 11, 2016, 8:12 PM SRGOM notifications@github.com wrote:

I cannot thank you guys enough.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BashOnWindows/issues/813#issuecomment-239338379, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBxmTPExTTNtc1me0f6JGQ4diXrIE3jks5qe8iTgaJpZM4Jes5J .

Harsh Pareek | Graduate Student | Computer Science | UT Austin http://www.cs.utexas.edu/~harshp | +1 (512) 994-5775

tara-raj commented 6 years ago

Closing as per the above comment - https://github.com/Microsoft/WSL/issues/813#issuecomment-239197125. Fix is now available