You are not logged in.

#1 2011-03-21 19:34:02

alvin_rxg
Member
From: China / Germany
Registered: 2009-08-18
Posts: 24

"sudo" suspend problem in shell

env:
1, whatever shell, here bash and dash
2, whatever program with a cui itself (vim, mutt, etc..)
3, sudo (tested 1.8.0-3 and 1.8.0-4)
----------------------------------------------------------------------
1, "sudo vim"
2, ^Z (ctrl + Z)
3, "fg"
4, no problem, type any key pls...

i can't get my vim back when i once suspend "sudo vim".
it's fine on a Fedora computer.
dose anyone have idea to solve this problem?

thanks!

2iiuctd.jpg


real newbie

Offline

#2 2011-03-26 14:59:52

Vain
Member
Registered: 2008-10-19
Posts: 179
Website

Re: "sudo" suspend problem in shell

Same over here. Have you solved this yet?

Without having a clue what causes this, I went back to kernel 2.6.37.1-1, bash 4.1.009-4, sudo 1.8.0-3 and ncurses 5.7-4, but that didn't help. No idea. I'm on i686 btw.

Can somebody confirm this issue? Or is it just the two of us?

Any help is appreciated. smile

Offline

#3 2011-03-26 15:53:49

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: "sudo" suspend problem in shell

Same here on x86_64. We should probably file a bug report....I'll do it later today or tomorrow if one of you doesn't beat me to it. We should also see if it affects any other applications (less, ummmm mind blank) or if its a vim configuration issue.

Scott

Offline

#4 2011-03-26 20:13:52

Vain
Member
Registered: 2008-10-19
Posts: 179
Website

Re: "sudo" suspend problem in shell

firecat53 wrote:

We should also see if it affects any other applications (less, ummmm mind blank) or if its a vim configuration issue.

Every interactive program fails on my machine. Even plain old ed(1).

I think sudo is to blame. I went back to 1.7.4.p6-1 and it's working again. If you can confirm this, I guess it's best to file a bug report upstream.

Funny side note: mutt even fails without sudo. I ran mutt via a simple script:

#!/bin/bash
mutt

^Z, fg, same problem. However, I think this is mutt's own fault. I went back to the last version which uses slang instead of ncurses (1.5.21-1) and that's working. I'll do some more research on this tomorrow.

Offline

#5 2011-03-28 18:33:00

Vain
Member
Registered: 2008-10-19
Posts: 179
Website

Re: "sudo" suspend problem in shell

Hi,

I just built sudo’s “hg tip” and the problem was gone. smile “hg bisect” says this is the commit that fixed our problem.

So, either apply that patch manually or wait for the next sudo release.

(Doesn’t fix my mutt-issue, of course, but that’s unrelated.)

Offline

Board footer

Powered by FluxBB