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

apt-cache search XXX segfault under locale zh_CN



    Apt-cache search didn't work for me since I upgraded to
"experimental".It always segmentation fault under local zh_CN.gbk:
.......
debian:~$ apt-cache search libgcc
Segmentation fault
debian:~$ locale
LANG=
LC_CTYPE=zh_CN.gbk
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
debian:~$ export LC_CTYPE=C
debian:~$ apt-cache search libgcc
libgcc1 - GCC support library
debian:~$ apt-cache --version
apt 0.6.42.1exp1 for linux i386 compiled on Oct 23 2005 12:13:40
debian:~$
......

GDB output:
(gdb) set arg search libgcc
(gdb) r
Starting program: /usr/bin/apt-cache search libgcc
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
0xb7d2267f in memcpy () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb7d2267f in memcpy () from /lib/tls/libc.so.6
#1  0xb7d53c62 in re_set_registers () from /lib/tls/libc.so.6
#2  0xb7d53f25 in re_set_registers () from /lib/tls/libc.so.6
#3  0xb7d6798a in re_compile_pattern () from /lib/tls/libc.so.6
#4  0xb7d68e2b in regexec () from /lib/tls/libc.so.6
#5  0x080500c3 in ?? ()
#6  0xb7f1c142 in CommandLine::DispatchArg () from
/usr/lib/libapt-pkg-libc6.3-6.so.3.11
#7  0x080530b1 in ?? ()
#8  0xb7cc7ec0 in __libc_start_main () from /lib/tls/libc.so.6
#9  0x0804a991 in ?? ()
(gdb)

Version info:
debian:~$ dpkg -s libc6 |grep ^Version
Version: 2.3.5-7
debian:~$ uname -a
Linux debian 2.6.13.4 #5 Sun Oct 16 10:33:54 CST 2005 i686 GNU/Linux
debian:~$ cat /etc/debian_version
testing/unstable
debian:~$ dpkg -s apt |grep ^Version
Version: 0.6.42.1exp1
debian:~$

Thanks!



Reply to: