Package: mutt
Version: 1.5.9-2sarge2
Severity: normal

Since a long time, my index_format for mutt is set as follows:

set index_format="%4C %Z %[%a·%d·%b] %-16.16F [%-12.12L] (%4c %4l) %s%> %M"

It works fine since years and even inside uxterms with
LC_CTYPE=en_US.UTF-8, but no other locale environment variables set.

To track down the problem, I used a .muttrc only containing the above line.

If I now resize the uxterm with an running mutt inside to more than
254 columns of if I start mutt inside such an uxterm with more than
254 columns, mutt segfaults.

It does not happen inside an xterm (same configuration). Although mutt
shows only 255 (but not 254 as I would have expected) columns of
content in there. (Probably a mutt internal limit.) The segfault also
does not happen if I replace the two occurences of "·" with "-", but a
segfault shouldn't happen anyway.

How to reproduce:
=================

Write the following line as only line into $HOME/.muttrc with
iso8859-1 charset:

set index_format="%4C %Z %[%a·%d·%b] %-16.16F [%-12.12L] (%4c %4l) %s%> %M"

Then, on a display with (at least) 1600x1200 resolution, open an
uxterm with the font "fixed", e.g. by calling "uxterm -fn
fixed". Maximise that window -- at least horizontally. Depending on
the window managers border width (fvwm2 with 3px borders here) the
uxterm should have around 260 columns. Check that with e.g. typing
"echo $COLUMNS".

Then start mutt in a nearly virgin environment:

env -i LC_CTYPE=en_US.UTF-8 USER=$USER HOME=$HOME TERM=xterm mutt

mutt will segfault when trying to display the mail index.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.33.2-1-dphys-k8-smp-64gb
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages mutt depends on:
ii  libc6               2.3.2.ds1-22sarge6   GNU C Library: Shared libraries an
ii  libdb4.3            4.3.27-2             Berkeley v4.3 Database Libraries [
ii  libgnutls11         1.0.16-13.2sarge2    GNU TLS library - runtime library
ii  libidn11            0.5.13-1.0           GNU libidn library, implementation
ii  libncursesw5        5.4-4                Shared libraries for terminal hand
ii  libsasl2            2.1.19.dfsg1-0sarge2 Authentication abstraction library
ii  postfix [mail-trans 2.1.5-9              A high-performance mail transport 

-- no debconf information

Reply via email to