[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#495435: xterm: Window resize race condition



Package: xterm
Version: 235-1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


When I resize xterm while vim oder mutt or some other program is running
in it (probably also bash, but it's not that visible there), the program
does not resize to the new window size, but to the last window size.
I.e. I start xterm and it's 80x24. I then start mutt and resize to
90x24, but mutt stays at 80x24. I resize again to 100x24 and mutt goes
to 90x24. Again to 60x24 and mutt goes to 100x24. And so on.

Unfortunately this seems to be a rather sporadic bug.
It looks like when the program gets SIGWINCH and queries the new window
size it still gets the old size from xterm. (race condition?)

When I manually send another SIGWINCH to the program it resizes to the
correct current xterm size.

- -- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (9999, 'testing'), (990, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27-rc3 (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xterm depends on:
ii  libc6                     2.7-13         GNU C Library: Shared libraries
ii  libfontconfig1            2.6.0-1        generic font configuration library
ii  libice6                   2:1.0.4-1      X11 Inter-Client Exchange library
ii  libncurses5               5.6+20080713-1 shared libraries for terminal hand
ii  libsm6                    2:1.0.3-2      X11 Session Management library
ii  libx11-6                  2:1.1.4-2      X11 client-side library
ii  libxaw7                   2:1.0.4-2      X11 Athena Widget library
ii  libxext6                  2:1.0.4-1      X11 miscellaneous extension librar
ii  libxft2                   2.1.12-3       FreeType-based font drawing librar
ii  libxmu6                   2:1.0.4-1      X11 miscellaneous utility library
ii  libxt6                    1:1.0.5-3      X11 toolkit intrinsics library
ii  xbitmaps                  1.0.1-2        Base X bitmaps

Versions of packages xterm recommends:
ii  x11-utils                     7.3+2      X11 utilities
ii  xutils                        1:7.3+15   X Window System utility programs m

Versions of packages xterm suggests:
pn  xfonts-cyrillic               <none>     (no description available)

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFIqBUFzQZOfTz8JZwRAspLAKCfPR4e1EJvqTUfyAszBTMcfvOfWwCfULEi
0mFQE6JPlXZVnvl8LtMH7Ak=
=me7G
-----END PGP SIGNATURE-----



Reply to: