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
vfprintf.c:1614
#1 0x00007f5d059733f2 in _IO_vsnprintf (
string=0x1e5ad50
"\320\237\321\200\320\276\320\270\320\267\320\276\321\210\320\273\320\260
\320\276\321\210\320\270\320\261\320\272\320\260
\320\277\321\200\320\270
\320\277\321\200\320\276\320\262\320\265\321\200\320\272\320\265
\320\277\320\276\320\264\320\277\320\270\321\201\320\270.
\320\240\320\265\320\277\320\276\320\267\320\270\321\202\320\276\321\200\320\270\320\271
\320\275\320\265
\320\276\320\261\320\275\320\276\320\262\320\273\321\221\320\275
\320\270 \320\261\321\203\320\264\321\203\321\202
\320\270\321\201\320\277\320\276\320\273\321\214\320\267\320\276\320\262\320\260\320\275\321\213
\320\277\321\200\320\265\320\264\321\213\320\264\321\203\321\211\320\270\320\265
\320\270\320\275\320\264\320\265\320\272\321\201\320\275\321\213\320\265
\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
/usr/lib/libapt-pkg.so.4.10
#3 0x00007f5d0664f9ec in GlobalError::Warning(char const*, ...) () from
/usr/lib/libapt-pkg.so.4.10
#4 0x00007f5d066c0b47 in
pkgAcqMetaIndex::Failed(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
pkgAcquire::MethodConfig*) ()
from /usr/lib/libapt-pkg.so.4.10
#5 0x00007f5d0669aa79 in pkgAcquire::Worker::RunMessages() () from
/usr/lib/libapt-pkg.so.4.10
#6 0x00007f5d0669b2e0 in pkgAcquire::Worker::InFdReady() () from
/usr/lib/libapt-pkg.so.4.10
#7 0x00007f5d06693b9b in pkgAcquire::RunFds(fd_set*, fd_set*) () from
/usr/lib/libapt-pkg.so.4.10
#8 0x00007f5d06694d75 in pkgAcquire::Run(int) () from
/usr/lib/libapt-pkg.so.4.10
#9 0x00007f5d0668b270 in ListUpdate(pkgAcquireStatus&, pkgSourceList&,
int) () from /usr/lib/libapt-pkg.so.4.10
#10 0x000000000041238d in ?? ()
#11 0x00007f5d0665c7b3 in
CommandLine::DispatchArg(CommandLine::Dispatch*,
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
libc-start.c:228
#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:1.2.3.4.dfsg-3 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 1.15.8.10 Debian package development tools
pn lzma <none> (no description available)
ii python-apt 0.7.100.1 Python interface to libapt-pkg
ii wajig 2.0.50.1 simple and unified package managem
-- no debconf information
Reply to: