Repository navigation
Closed
Description
I'm experiencing the same problem as #277. There's a matching issue in Leiningen. On a fresh install of Bash on Windows, I did
sudo apt-get install default-jdk
sudo apt-get install leiningen
Then I did this:
conan@ALLP0023:/mnt/c/Users/Conan$ which java
/usr/bin/java
conan@ALLP0023:/mnt/c/Users/Conan$ 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)
conan@ALLP0023:/mnt/c/Users/Conan$ which lein
/usr/bin/lein
Then this takes ages (> 10 mins), and eventually prints the error:
conan@ALLP0023:/mnt/c/Users/Conan$ lein -version
Leiningen is running in bundled mode.
#
[thread 139862623782656 also had an error]# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (safepoint.cpp:325), pid=11174, tid=139862530000640
# guarantee(PageArmed == 0) failed: invariant
#
# JRE version: OpenJDK Runtime Environment (7.0_101) (build 1.7.0_101-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.95-b01 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 2.6.6
# Distribution: Ubuntu 14.04 LTS, package 7u101-2.6.6-0ubuntu0.14.04.1
# Core dump written. Default location: /mnt/c/Users/Conan/core or core.11174
#
# An error report file with more information is saved as:
# /mnt/c/Users/Conan/hs_err_pid11174.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# http://icedtea.classpath.org/bugzilla
#
rlwrap: warning: java killed by SIGABRT (core dumped).
rlwrap has not crashed, but for transparency,
it will now kill itself with the same signal
/usr/bin/lein: line 126: 11173 Aborted (core dumped) $RLWRAP $LEIN_JAVA_CMD -Xbootclasspath/a:"$CLOJURE_JAR" -client $LEIN_JVM_OPTS -XX:+TieredCompilation -Dleiningen.original.pwd="$ORIGINAL_PWD" -Dleiningen.trampoline-file=$TRAMPOLINE_FILE -cp "$CLASSPATH" clojure.main -e "(use 'leiningen.core)(-main)" /dev/null "$@"
Dump file here:
hs_err_pid11174.zip
Reacted by Alexander Kahoun and Oleg Kozlovskyi
Metadata
Metadata
Assignees
Labels
No labels
Activity
russalex commentedon Aug 16, 2016
Which build of Windows are you running? (You can check by running
verat a CMD prompt)If you are running the Anniversary Update (14393), there are many issues with Java and it's supporting tools. The most recent Insider build (14901) has addressed some of these.
conan commentedon Aug 16, 2016
Microsoft Windows [Version 10.0.14393]
Yeah, it's on the Anniversary update
benhillis commentedon Aug 16, 2016
On the recent internal build this is working for me, I suspect that java fix Russ Alexander (@russalex) mentioned is responsible.
conan commentedon Aug 17, 2016
Can you run
lein repl?benhillis commentedon Aug 17, 2016
Looks like it's working. If there's a more complicated example I can try (like a GitHub project I can try) please let me know.
leftofnull commentedon Aug 20, 2016
I'm really excited that the
lein replappears to be working on internal. Is there any ballpark on when it will be released? I'm on the official anniversary build, I turned off insider temporarily.Also, would it be possible to test this repo in the internal:
https://github.com/functional-koans/clojure-koans
test after cloning by running
Output similar to the following would be a success:
conan commentedon Oct 10, 2016
I don't seem to be able to run a REPL, even using the insider build:
Microsoft Windows [Version 10.0.14936]
seancorfield commentedon Oct 19, 2016
As a workaround, you can do
lein trampoline repl-- and I'll also note that Boot seems to work just fine now on the latest insider build. I'm going to update #277 with some notes about that.seancorfield commentedon Oct 19, 2016
FWIW, I can't run any Clojure process that tries to fire up another command via the shell, i.e., the following call fails:
Fails with this error:
IOException error=12, Cannot allocate memory java.lang.UNIXProcess.forkAndExec (UNIXProcess.java:-2)
seancorfield commentedon Oct 21, 2016
Note: if I run the equivalent Java program, it works just fine on OpenJDK 8 and Oracle Java 8:
So the problem is something specific to calling
.execinside the context of a Clojure process -- although I've also seen this inside other tooling that fails to fork new processes.seancorfield commentedon Jan 12, 2017
This is functioning correctly on build 15002 -- I assume because #1286 is fixed?
benhillis commentedon Jan 12, 2017
Sean Corfield (@seancorfield) - I suspect so. Thanks for confirming that this is working!