Package: whiptail
Version: 0.51.6-21
Severity: normal

When pppoeconf or dpkg-reconfigure are started in konsole after su, and
then the konsole session is closed, those processes are reattributed.
If invoked like this :
$ su
# pppoeconf &

part of pstree looks like this :
-konsole---bash---bash---pppoeconf---whiptail

If the konsole session is closed, the first bash sends SIGHUP to root's
bash, but it's not permitted and pppoeconf is reassigned to init :
|-pppoeconf---whiptail

Starting from there, whiptail takes about 50% CPU on my Barton 2500+.
Here's part of the strace:

select(1, [0], [], [], NULL)            = 1 (in [0])
select(4, [3], NULL, NULL, {10, 0})     = 1 (in [3], left {10, 0})
read(3, "", 1)                          = 0
select(1, [0], [], [], NULL)            = 1 (in [0])
select(4, [3], NULL, NULL, {10, 0})     = 1 (in [3], left {10, 0})
read(3, "", 1)

This repeats until whiptail is killed.

I am using revision 21 but this was just to be sure that the bug wasn't
fixed since 20. My other Sarge box always reproduces too. The severity
of this bug mostly comes from 265785, which many people will workaround
by closing the term. This is probably what happened to a newbie on
#debian. He complained that APT wouldn't work due to a
lock. I asked him if whiptail took a lot of CPU, and he answered :

douglas: directhex|work, apparently, I closed the dpkg-reconfigure
wrongly and the process isn't closed, how do I close it.
[...]
chealer: douglas: just curious, do you have a whiptail process running?
[...]
chealer: douglas: do you see if it's using much CPU?
[...]
douglas: right now 90%

Of course, the workaround is easy enough, but it's not guaranteed that
newbies will figure out they have to do that.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-1-k7
Locale: LANG=fr_CA, LC_CTYPE=fr_CA (charmap=ISO-8859-1)

Versions of packages whiptail depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libnewt0.51                 0.51.6-21    Not Erik's Windowing Toolkit - tex
ii  libpopt0                    1.7-5        lib for parsing cmdline parameters
ii  slang1a-utf8                1.4.9dbs-8   The S-Lang programming library wit

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to