Ish: zsh command "ls" can not exit

Created on 22 Jul 2019  路  17Comments  路  Source: ish-app/ish

iOS 13 beta 4

iSH 1.0(53)

Update
iSH 1.0(55)
zsh works well(solve the problem in version 53)

But, zsh+oh-my-zsh:

Most helpful comment

Fixed in master, hopefully for real this time.

All 17 comments

I鈥檓 also getting this with the motd using zsh.

this is happening for me with any command i run with zsh. i can鈥檛 CTRL-C out of the command either

ZSH gets stuck in sigsuspend loop waiting for SIGCHLD which is never delivered to it for some reason (it stays in task->pending forever, so sigsuspend just returns, but signal is still not delivered so zsh keeps calling sigsuspend over and over).

It's broken since a8392d5316343d545e91a8a1556e60ca5dcf43a2.

So what I think happened is: zsh calls sigsuspend with a mask that unblocks SIGCHLD, child exits and sends SIGCHLD, sigsuspend stops waiting and resets mask to block SIGCHLD again, and when we get to receive_signals in kernel/calls.c it does nothing because SIGCHLD is now blocked.

@tbodt Yeah, that seems correct.
And it was working before a8392d5316343d545e91a8a1556e60ca5dcf43a2 because sigsuspend/sigprocmask were just blocking wrong signals.

Fixed in master

@tbodt i鈥檓 still having this issue in build 55 (and i鈥檓 sorry).

i鈥檓 able to run (from bash) chsh -s /bin/zsh and get the zsh prompt to load, but once i type any command and press return, the prompt hangs, and acts like i ran cat -v鈥攊t just shows raw characters i鈥檓 typing.

i鈥檝e tried closing the app, and once i start it again, i鈥檓 greeted with the usual:

Welcome to Alpine!                                     

You can install packages with: apk add <package>       

You may change this message by editing /etc/motd.

but without a prompt 鈽癸笍

@livelaughriley Do you have oh-my-zsh installed? I had to delete iSH a start from scratch to get it working again. I have only clean ZSH installed at the moment, and that seems to work okay. I鈥檒l install oh-my-zsh tomorrow.

@mgilan No, I don't. At first, it was just an oh-my-zsh issue (or at least seemed to be), but now it happens with zsh in general

It works for me perfectly fine without oh-my-zsh.

@tbodt are you running iOS 13? if so, what version?

yes, beta 4.

@livelaughriley what version of zsh do you have?

edit: looks like 3.9/main, edge/main and edge/testing all have same version of zsh, so this likely isn't the issue.

I just installed oh-my-zsh, and the shell stopped responding immediately after the setup.

@stek29 i鈥檒l be honest i鈥檓 a bit hesitant to try and install it again. i have to uninstall iSH and then reinstall it again to be able to use it; i still don鈥檛 have a prompt when i close iSH and reopen, so a full uninstall is the only way i currently know of to get myself out of that situation

It鈥檚 ok if you don鈥檛 set ZSH as your default shell.

Fixed in master, hopefully for real this time.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jcampbell05 picture jcampbell05  路  5Comments

ghanan94 picture ghanan94  路  6Comments

rluvaton picture rluvaton  路  3Comments

MasonProtter picture MasonProtter  路  3Comments

sirredbeard picture sirredbeard  路  3Comments