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
Interpreter blocks on ctrl-d (OS X, at least) #4705
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4705?orig=1
|
@paulp said: |
@paulp said: |
@paulp said: |
@lrytz said: Here's what I did. At the end, in the lampmac3:~ jenkins$ env
TERM=screen
SHELL=/bin/bash
SSH_CLIENT=128.178.154.107 36418 22
SBT_HOME=/Users/jenkins/apps/sbt
SSH_TTY=/dev/ttys000
ANT_HOME=/Users/jenkins/apps/ant
ANT_OPTS=-Xmx1536m -Xms1536m -Xss1m -XX:MaxPermSize=512M -XX:+UseParallelGC
JAVA_OPTS=-Xmx1536m -Xms1536m -Xss1m -XX:MaxPermSize=512M -XX:+UseParallelGC
USER=jenkins
MONO_HOME=/Library/Frameworks/Mono.framework/Versions/Current
mount_authenticator=
MAIL=/var/mail/jenkins
PATH=/Users/jenkins/apps/ant/bin:/Users/jenkins/apps/sbt:/Library/Frameworks/Mono.framework/Versions/Current/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/git/bin
PWD=/Users/jenkins
SHLVL=1
HOME=/Users/jenkins
LOGNAME=jenkins
SSH_CONNECTION=128.178.154.107 36418 128.178.154.94 22
_=/usr/bin/env
lampmac3:~ jenkins$
lampmac3:~ jenkins$ wget http://www.scala-lang.org/archives/downloads/distrib/files/nightly/distributions/scala-2.10.0.r25101-b20110618022942.tgz
[...]
lampmac3:~ jenkins$ tar xzf scala-2.10.0.r25101-b20110618022942.tgz
lampmac3:~ jenkins$ scala-2.10.0.r25101-b20110618022942/bin/scala
Welcome to Scala version 2.10.0.r25101-b20110618020216 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_24).
Type in expressions to have them evaluated.
Type :help for more information.
scala>
lampmac3:~ jenkins$ |
@paulp said: Switching to 1.6.0_24 made no difference, I still see ctrl-D working. I mention it because next I tried openjdk and then I saw what you see. So this I cannot explain. It's something environmental, but I don't think the jvm is the direct reason: more of a proxy.
|
@paulp said: |
@paulp said: |
huynhjl said (edited on Jun 25, 2011 11:25:40 AM UTC):
Because it's scala.bat, it's basically equivalent to using the nobootcp option. I'm collecting a stack dump and heap dump and will attach. Note it also happens with cygwin even when starting with |
huynhjl said: |
@lrytz said: |
Ramzi (rby) said: |
huynhjl said:
Using the Eclipse Memory Analyzer, it seems this pool executor has no task queued up and its |
@harrah said: A fix might be to use plain threads, make the ThreadFactory construct daemon threads, or to call shutdown() on the thread pool after submitting. I don't know which one is preferred. |
@paulp said: |
@jrudolph said: I tried with scala-compiler-2.10.0-20110815.021856-122.jar and Ctrl+D works now in sbt console again. |
@jrudolph said: |
@harrah said: |
typing "ctrl-d" blocks the interpreter, it doesn't echo anymore. with "ctrl-c" you one can kill it and get back to the terminal.
The text was updated successfully, but these errors were encountered: