Comment 0 for bug 7339

Revision history for this message
In , Joey Hess (joeyh) wrote :

Package: whiptail
Version: 0.51.6-10.1
Severity: serious

I'm provisionally marking this bug as RC because it does impact the
Debian install. Argentinian users will see some weird stuff during
base-config's time zone selection because of it.

tzsetup runs whiptail as follows for Argintina:

whiptail --default-item \
"America/Argentina/Buenos_Aires (Buenos Aires (BA; CF))" \
--menu "choose your time zone" \
20 104 8 \
"America/Argentina/Buenos_Aires (Buenos Aires (BA; CF))" "" \
"America/Argentina/Cordoba (most locations (CB; CC; CN; ER; FM; LP; MN; NQ; RN; SA; SE; SF; SL))" "" \
"America/Argentina/Jujuy (Jujuy (JY))" "" \
"America/Argentina/Tucuman (Tucuman (TM))" "" \
"America/Argentina/Catamarca (Catamarca (CT))" "" \
"America/Argentina/La_Rioja (La Rioja (LR))" "" \
"America/Argentina/San_Juan (San Juan (SJ))" "" \
"America/Argentina/Mendoza (Mendoza (MZ))" "" \
"America/Argentina/ComodRivadavia (Chubut (CH))" "" \
"America/Argentina/Rio_Gallegos (Santa Cruz (SC))" "" \
"America/Argentina/Ushuaia (Tierra del Fuego (TF))" "" \
"other" ""

The problem only occurs if the terminal is a certian size. I can
reproduce it in a 24x80 or smaller terminal, but not in a 96x54 one.

Whiptail runs, displays the list reasonably well (given that debconf has
told it to use a dialog that is wider than the screen; which might be a
debconf bug). I select the first item, and it crashes, with a
segmentation fault before it can output the choosen item.

It does seem to be related to debconf giving it the wrong width. If I
fix the width to equal the terminal width, I don't get segfaults. I'll
try to fix debconf, but there's definitly a whiptail bug in here.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.4.26
Locale: LANG=en_US, LC_CTYPE=en_US

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

-- no debconf information

--
see shy jo