Package: bash
Version: 3.1-4
Severity: normal
Tags: l10n

Hello,

Here are the steps to reproduce the problem:

- have (and use) an fr_FR.UTF-8 locale
- install the dlocate package
- generate dpkg-list (localized) using this command (from 
/etc/cron.daily/dlocate):

LINES=40 COLUMNS=200 dpkg -l "*" | sed -e '1,5d' -e 's/  */ /g' > 
/var/lib/dlocate/dpkg-list

- use dlocate like this:
$ dlocate -l openoffice

The final lines read:

$ dlocate -l openoffice

[...]

un  openoffice.org2-l10n-el       <néant>                      (aucune 
description n'est disponible)
pn  openoffice.org2-l10n-en-gb    <néant>                      (aucune 
description n'est disponible)
pn  openoffice.org2-l10n-en-us    <néant>                      (aucune 
description n'est disponible)
/usr/bin/dlocate: line 55: 14278 Done                    egrep "$1" $DPKGLIST
     14279 Erreur de segmentation  | while read stat name ver descr; do
    printf "%-2s  %-${fieldw}.${fieldw}s %-${fieldw}.${fieldw}s 
%-${fieldd}.${fieldd}s\\n" "$stat" "$name" "$ver" "$descr";
done
$

If I change the printf command with /usr/sbin/printf, the segfault no
longer occurs. If I generate the dpkg-list file with the C locale, the
segfault no longer occurs. If I execute the dlocate command with the C
locale, the segfault no longer occurs.

I don't really know how to get a backtrace from a builtin bash
command. So any advice would be welcome.

Greetings,


Fred

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

Versions of packages bash depends on:
ii  base-files                    3.1.13     Debian base system miscellaneous f
ii  debianutils                   2.16.1     Miscellaneous utilities specific t
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  libncurses5                   5.5-2      Shared libraries for terminal hand

bash recommends no packages.

-- no debconf information

Reply via email to