Closed kensykora closed 9 years ago
Here is the output of running source kvm.sh
from the Fish shell:
Not sure if this is related -- when I run in zsh 5.0.6 (x86_64-apple-darwin14.0.0)
it crashes the process. If I put it in my .zshrc
no terminal windows will open. If I run it in an existing terminal it crashes, and if I run it in a nested zsh
process the inner one crashes with [1] 4167 segmentation fault zsh
.
~ » mono --version
Mono JIT compiler version 3.8.0 (tarball Wed Oct 15 17:00:48 MDT 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: normal
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
Just adding a new report of the the same crash behaviour in zsh for me as well. ITerm2 shell window on a Mac is finishing with crash when running source kvm.sh. When ran in bash, everything is ok.
This was fixed by https://github.com/aspnet/Home/commit/7d874e39a49d9aabc0832e872bc8be7e13e5681b, but isn't in a full release yet. You can download the fixed version from master and replace your local kvm.source
with it: https://github.com/aspnet/Home/blob/master/kvm.sh
I confirm that for me the fix works. Thanks for followup.
Had the same problem here, fixed using @spicydonuts instructions.
Confirming that the solution from @spicydonuts indeed fixed this issue in zsh.
Don't thank me, thank @philippkosel : ]
The instructions @spicydonuts included do not work for me running zsh on osx yosemite. My terminal just closes.
Which version of zsh? (zsh --version
)
What's brew info kvm
return?
➜ ~ zsh --version
zsh 5.0.5 (x86_64-apple-darwin14.0)
➜ ~ brew info kvm
kvm: stable 1.0.0-beta1
https://www.github.com/aspnet/Home
/usr/local/Cellar/kvm/1.0.0-beta1 (4 files, 44K) *
Built from source
From: https://github.com/aspnet/homebrew-k/blob/master/kvm.rb
==> Dependencies
Recommended: mono ✔
==> Options
--without-mono
Build without mono support
==> Caveats
Add the following to the ~/.bash_profile, ~/.bashrc or ~/.zshrc file:
source kvm.sh
Additionally, the version of kvm.sh located at https://github.com/aspnet/Home/blob/master/kvm.sh is the exact same as the one installed to my /usr/local/Cellar/kvm/1.0.0-beta1/libexec/kvm.sh
If I use bash, it works as expected.
Looks like beta1 was released yesterday which includes the fix. I was on alpha4 when I patched it. Updated to beta1 and it still works fine. zsh version 5.0.7 for me. Try updating that just to make sure.
I just upgraded zsh using brew to 5.0.7, added it to my system shells file, and set it as my shell.
Unfortunately with zsh 5.0.7, I still get the same experience as before. The terminal closes when i do source kvm.sh
➜ ~ zsh --version
zsh 5.0.7 (x86_64-apple-darwin14.0.0)
➜ ~ brew info kvm
kvm: stable 1.0.0-beta1
https://www.github.com/aspnet/Home
/usr/local/Cellar/kvm/1.0.0-beta1 (4 files, 44K) *
Built from source
From: https://github.com/aspnet/homebrew-k/blob/master/kvm.rb
==> Dependencies
Recommended: mono ✔
==> Options
--without-mono
Build without mono support
==> Caveats
Add the following to the ~/.bash_profile, ~/.bashrc or ~/.zshrc file:
source kvm.sh
➜ ~ source kvm.sh
[Process completed]
Curious. You'll probably need someone from here who knows more cause this sounds like a different issue. What do you get when you open a terminal, run zsh
again, then source kvm.sh
? That should at least show you what error zsh exits with.
I'm getting this as well. zsh exists with signal 11 (segfault), I ran lldb over it but it wasn't very informative.
Same as above, 5.0.7 and KVM beta 1.
I took the kvm.sh from this https://github.com/zenlambda/ASP.NET.Home/blob/3aedca49dfbd04ac7e367e910d6ca7f1d6013ebc/kvm.sh and that fixed the problem for me.
Yep, I can confirm that copying https://github.com/zenlambda/ASP.NET.Home/blob/3aedca49dfbd04ac7e367e910d6ca7f1d6013ebc/kvm.sh over the top worked for me on zsh too. The only difference between that and the latest Homebrew release appears to relate to this commit https://github.com/aspnet/Home/commit/7d874e39a49d9aabc0832e872bc8be7e13e5681b.
I use the Fish Shell as my primary shell on OSX. I ran through the steps detailed out in the readme for OSX, however I ran into a snag when I tried to
source kvm.sh
However when i switch over to bash, the script seems to run fine:
Any chance this script can be adjusted to support the Fish shell?