BUG: Shell enters unresponsive state (can't close it)

A forum for general AmigaOS 4.x support questions that are not platform-specific

BUG: Shell enters unresponsive state (can't close it)

Postby Raziel » Thu Nov 01, 2018 6:13 pm

CLI 52.4 (10.05.2007)

Not sure if this is intended behaviour, but at least there is one bug to this.

I can make the Amigashell enter an unresponsive state, at least when it comes to closing it, in a pretty easy way.

Steps to reproduce:
1) Open Amigashell by either running CLI or using the Shell(.info) "frontend"
2) Type "ping duckduckgo.com" into the shell window
3) Instead of pressing ENTER, close the shell window

Expected Behaviour: The shell closes as i told it to

Actual Behaviour: The shell executes the command i typed in, rendering the whole shell window unresponsive to
a) a CTRL-C to stop the command from working, actually i cannot type anything in this window anymore
b) closing the shell window et al which leaves me with a running command i can't stop and an open shell window i cannot close.

--> I can open another shell tab, but i still can't close the shell window.
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
Raziel
 
Posts: 927
Joined: Sat Jun 18, 2011 5:00 pm
Location: a dying planet

Re: BUG: Shell enters unresponsive state (can't close it)

Postby nbache » Thu Nov 01, 2018 8:44 pm

You can always stop the command by entering "break (processno) c" in another shell window or tab. If you don't know the process number, it can be found with "status".

As for the behaviour when closing, I believe it is "how it works". Closing the shell is just another command you send after the one you entered.

But I'd prefer if one of the experts could explain it better (Tony? Colin?).

BTW, I doubt the CLI is the module containing this behaviour.


Best regards,

Niels
User avatar
nbache
Beta Tester
Beta Tester
 
Posts: 1407
Joined: Mon Dec 20, 2010 8:25 pm
Location: Copenhagen, Denmark

Re: BUG: Shell enters unresponsive state (can't close it)

Postby Raziel » Thu Nov 01, 2018 9:44 pm

@nbache
Breaking the process from another shell is working, thanks for the workaround, still it's rather awkward to not be able to do it from the running process window and therefore i still consider this as bug as input there is obviously rejected for some reason.

CLI was just the program that came to mind, if you need me to check another programs versions i'll stand by
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
Raziel
 
Posts: 927
Joined: Sat Jun 18, 2011 5:00 pm
Location: a dying planet

Re: BUG: Shell enters unresponsive state (can't close it)

Postby tonyw » Fri Nov 02, 2018 12:56 am

Raziel:

I had this problem in the con-handler years ago, and I thought I'd fixed it. I shall have to go back through my old BZs.

As Niels said, it can happen if you start something new after closing the session. It can't finish closing while the "new" thing is running and since it has started closing, it can't hear or respond to any input. Maybe there is still a path from "normal ops" to unresponsive.

BTW, what are the versions of your con-handler and console? Just do Project/About in the Shell.
cheers
tony
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 1396
Joined: Wed Mar 09, 2011 2:36 pm
Location: Sydney, Australia

Re: BUG: Shell enters unresponsive state (can't close it)

Postby nbache » Fri Nov 02, 2018 1:13 am

tonyw wrote:Raziel:

I had this problem in the con-handler years ago, and I thought I'd fixed it. I shall have to go back through my old BZs.
Well, at least I could reproduce the issue as described above, using the latest betas.

Best regards,

Niels
User avatar
nbache
Beta Tester
Beta Tester
 
Posts: 1407
Joined: Mon Dec 20, 2010 8:25 pm
Location: Copenhagen, Denmark

Re: BUG: Shell enters unresponsive state (can't close it)

Postby Raziel » Fri Nov 02, 2018 11:32 am

tonyw wrote:Raziel:

I had this problem in the con-handler years ago, and I thought I'd fixed it. I shall have to go back through my old BZs.

As Niels said, it can happen if you start something new after closing the session. It can't finish closing while the "new" thing is running and since it has started closing, it can't hear or respond to any input. Maybe there is still a path from "normal ops" to unresponsive.

BTW, what are the versions of your con-handler and console? Just do Project/About in the Shell.

Ah, that exactly explains my problem, thank you for confirming it

Con-handler 53.78 (14.04.2016)
Console.device 53.99 (5.05.2016)

@nbache

Thank you aswell for confirming it
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
Raziel
 
Posts: 927
Joined: Sat Jun 18, 2011 5:00 pm
Location: a dying planet


Return to General AmigaOS

Who is online

Users browsing this forum: No registered users and 3 guests

cron