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

Bug#613424: segfault in libapt-pkg.so on non-english locales

Package: apt
Version: 0.8.11
Severity: important
Tags: sid

Hi, apt-get update segfaults for me if i use russian utf8 locale.

If i set LC_ALL=C, then everything works fine. 

here is bt:

Core was generated by `apt-get update'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f5d05951d8a in _IO_vfprintf_internal (s=0x7fff6687cc50,
format=<value optimized out>, ap=0x7fff6687ce20) at vfprintf.c:1614
1614    vfprintf.c: No such file or directory.
        in vfprintf.c
        (gdb) bt
#0  0x00007f5d05951d8a in _IO_vfprintf_internal (s=0x7fff6687cc50,
        format=<value optimized out>, ap=0x7fff6687ce20) at
#1  0x00007f5d059733f2 in _IO_vsnprintf (
            \320\270 \320\261\321\203\320\264\321\203\321\202
            \321\204\320\260"..., maxlen=<value optimized out>, 
                format=0x7f5d06b21e2d <Address 0x7f5d06b21e2d out of
                bounds>, args=0x7fff6687ce20) at vsnprintf.c:120
#2  0x00007f5d066519dc in GlobalError::Insert(GlobalError::MsgType, char
                const*, __va_list_tag (&) [1]) () from
#3  0x00007f5d0664f9ec in GlobalError::Warning(char const*, ...) () from
#4  0x00007f5d066c0b47 in
                std::char_traits<char>, std::allocator<char> >,
                pkgAcquire::MethodConfig*) ()
                   from /usr/lib/libapt-pkg.so.4.10
#5  0x00007f5d0669aa79 in pkgAcquire::Worker::RunMessages() () from
#6  0x00007f5d0669b2e0 in pkgAcquire::Worker::InFdReady() () from
#7  0x00007f5d06693b9b in pkgAcquire::RunFds(fd_set*, fd_set*) () from
#8  0x00007f5d06694d75 in pkgAcquire::Run(int) () from
#9  0x00007f5d0668b270 in ListUpdate(pkgAcquireStatus&, pkgSourceList&,
                   int) () from /usr/lib/libapt-pkg.so.4.10
#10 0x000000000041238d in ?? ()
#11 0x00007f5d0665c7b3 in
                   bool) () from /usr/lib/libapt-pkg.so.4.10
#12 0x0000000000413ef9 in ?? ()
#13 0x00007f5d0592ac4d in __libc_start_main (main=<value optimized out>,
                   argc=<value optimized out>, ubp_av=<value optimized
                   out>, init=<value optimized out>, 
                       fini=<value optimized out>, rtld_fini=<value
                       optimized out>, stack_end=0x7fff6687e598) at
#14 0x0000000000409359 in ?? ()
#15 0x00007fff6687e598 in ?? ()
#16 0x000000000000001c in ?? ()
#17 0x0000000000000002 in ?? ()
#18 0x00007fff6687ee82 in ?? ()
#19 0x00007fff6687ee8a in ?? ()
#20 0x0000000000000000 in ?? ()

I expect this :  "format=0x7f5d06b21e2d <Address 0x7f5d06b21e2d out of
bounds>" is the cause in #1.
I hope it'll help.

-- Package-specific info:

-- (no /etc/apt/preferences present) --

-- (/etc/apt/sources.list present, but not submitted) --

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt depends on:
ii  debian-archive-keyring  2010.08.28       GnuPG archive keys of the Debian a
ii  gnupg                   1.4.10-4         GNU privacy guard - a free PGP rep
ii  libc6                   2.11.2-11        Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.4.5-10       GCC support library
ii  libstdc++6              4.4.5-10         The GNU Standard C++ Library v3
ii  zlib1g                  1: compression library - runtime

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc                       <none>     (no description available)
ii  aptitude                      0.6.3-3.2  terminal-based package manager (te
ii  bzip2                         1.0.5-6    high-quality block-sorting file co
ii  dpkg-dev              Debian package development tools
pn  lzma                          <none>     (no description available)
ii  python-apt            Python interface to libapt-pkg
ii  wajig                  simple and unified package managem

-- no debconf information

Reply to: