Package: aptitude
Version: 0.4.3-1
Severity: important

I've seen this problem repeatedly over time and found work of another
that describes the symptoms:

http://lists.debian.org/debian-user/2006/07/msg00465.html

To sum up, in the aptitude source at src/vscreen/vscreen.cc:779

 // Block WINCH so the signal_thread can pick it up.
   sigset_t signals;
   sigemptyset(&signals);
   sigaddset(&signals, SIGWINCH);
   sigprocmask(SIG_BLOCK, &signals, NULL);

This causes processes installed to inherit the signal mask.  As
mentioned in the mailing list post linked above, the classic
manifestation of this in sshd and screen/mutt/top/etc.  Installing a new
version of SSHd from aptitude leaves SIGWINCH blocked in the sshd
process, making terminal resizes ignored from within curses-type
applications.

I am not an expert (nor have I found the code or time to work on a
patch), but conceptually it seems the per-thread sig mask needs to block
SIGWINCH for all threads except the one that handles it.  I know that
there's got to be some weirdness in the process/thread mixed world.

This is the article I'm basing my ideas on:

http://www.linuxjournal.com/article/2121


-- System Information:
Debian Release: testing/unstable
  APT prefers experimental
  APT policy: (990, 'experimental'), (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages aptitude depends on:
ii  apt [libapt-pkg-libc6.3 0.6.46.1         Advanced front-end for dpkg
ii  libc6                   2.5-0exp1        GNU C Library: Shared libraries
ii  libgcc1                 1:4.2-20061003-1 GCC support library
ii  libncursesw5            5.5-4            Shared libraries for terminal hand
ii  libsigc++-2.0-0c2a      2.0.17-2         type-safe Signal Framework for C++
ii  libstdc++6              4.2-20061003-1   The GNU Standard C++ Library v3

Versions of packages aptitude recommends:
pn  aptitude-doc-en | aptitude-do <none>     (no description available)

-- no debconf information


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

Reply via email to