# uname -a Linux riderhome.borovsk.ru 4.1.21-std-def-alt1 #1 SMP Wed Apr 13 11:53:22 UTC 2016 i686 GNU/Linux May 15 08:40:24 riderhome apt-get: glib2-locales-2.48.1-alt1 1462917508 installed May 15 08:40:24 riderhome apt-get: glib2-locales-2.48.0-alt1 1459162298 removed May 15 08:40:25 riderhome apt-get: glibc-preinstall-6:2.23-alt2 1462966239 installed May 15 08:40:25 riderhome apt-get: glibc-preinstall-6:2.23-alt1 1455883192 removed May 15 08:40:26 riderhome apt-get: glibc-core-6:2.23-alt2 1462966239 installed May 15 08:40:26 riderhome apt-get: glibc-core-6:2.23-alt1 1455883192 removed May 15 08:40:27 riderhome apt-get: glibc-pthread-6:2.23-alt2 1462966239 installed May 15 08:40:27 riderhome apt-get: glibc-pthread-6:2.23-alt1 1455883192 removed May 15 08:40:28 riderhome apt-get: glibc-gconv-modules-6:2.23-alt2 1462966239 installed May 15 08:40:29 riderhome apt-get: glibc-gconv-modules-6:2.23-alt1 1455883192 removed May 15 08:40:29 riderhome apt-get: apt-repo-1.3.5-alt1 1462815119 installed May 15 08:40:29 riderhome apt-get: apt-repo-1.3.3-alt1 1462364359 removed May 15 08:40:30 riderhome apt-get: glibc-nss-6:2.23-alt2 1462966239 installed May 15 08:40:30 riderhome apt-get: glibc-nss-6:2.23-alt1 1455883192 removed May 15 08:40:44 riderhome apt-get: glibc-locales-6:2.23-alt2 1462966239 installed May 15 08:40:45 riderhome apt-get: glibc-locales-6:2.23-alt1 1455883192 removed May 15 08:40:45 riderhome apt-get: iconv-6:2.23-alt2 1462966239 installed May 15 08:40:46 riderhome apt-get: iconv-6:2.23-alt1 1455883192 removed May 15 08:40:46 riderhome apt-get: glibc-utils-6:2.23-alt2 1462966239 installed May 15 08:40:46 riderhome apt-get: glibc-utils-6:2.23-alt1 1455883192 removed M # apt-get update Получено: 1 http://ftp.altlinux.org i586 release [914B] Получено: 2 http://ftp.altlinux.org noarch release [709B] Получено 1623B за 0s (10,8kB/s). Найдено http://ftp.altlinux.org i586/classic pkglist Найдено http://ftp.altlinux.org i586/classic release Найдено http://ftp.altlinux.org noarch/classic pkglist Найдено http://ftp.altlinux.org noarch/classic release Ошибка сегментирования... 0% [485414.724484] apt-get[7702]: segfault at 0 ip b73a9681 sp bfbc0c3c error 4 in libc-2.23.so[b7335000+172000] [485510.398377] apt-get[7722]: segfault at 0 ip b737e681 sp bff62e7c error 4 in libc-2.23.so[b730a000+172000]
glibc откатил, не помогло. Чтение списков пакетов... 0% Program received signal SIGSEGV, Segmentation fault. 0xb7c77821 in strlen () from /lib/libc.so.6 (gdb) bt #0 0xb7c77821 in strlen () from /lib/libc.so.6 #1 0xb7e9f823 in length (__s=0x0) at /usr/src/debug/gcc-5.3.1-20151207/obj-i586-alt-linux/i586-alt-linux/libstdc++-v3/include/bits/char_traits.h:267 #2 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare (this=0xbfffe364, __s=0x0) at /usr/src/debug/gcc-5.3.1-20151207/obj-i586-alt-linux/i586-alt-linux/libstdc++-v3/include/bits/basic_string.tcc:1398 #3 0xb7f439f1 in operator==<char, std::char_traits<char>, std::allocator<char> > (__rhs=<optimized out>, __lhs="/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_p8_branch_i586_base_pkglist.classic") at /usr/include/c++/5/bits/basic_string.h:4937 #4 operator!=<char, std::char_traits<char>, std::allocator<char> > (__rhs=<optimized out>, __lhs="/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_p8_branch_i586_base_pkglist.classic") at /usr/include/c++/5/bits/basic_string.h:4974 #5 rpmPkgListIndex::FindInCache (this=0x80b5a08, Cache=...) at rpm/rpmindexfile.cc:448 #6 0xb7f98062 in CheckValidity (CacheFile=<error: Cannot access memory at address 0x73656372>, Start=..., Start@entry=, End=..., End@entry=<rpmSys>, OutMap=0xbfffe9c0) at pkgcachegen.cc:673 #7 0xb7f9a55e in pkgMakeStatusCache (List=..., Progress=..., OutMap=0xbfffe9c0, AllowMem=false) at pkgcachegen.cc:808 #8 0xb7f83fc4 in pkgCacheFile::BuildCaches (this=0xbfffe9c0, Progress=..., WithLock=<optimized out>) at cachefile.cc:76 #9 0xb7f84111 in pkgCacheFile::Open (this=0xbfffe9c0, Progress=..., WithLock=true) at cachefile.cc:96 #10 0x0805fe5f in CacheFile::Open (this=0xbfffe9c0, WithLock=true) at apt-get.cc:102 #11 0x080575f6 in DoUpdate (CmdL=...) at apt-get.cc:1915 #12 0xb7f326c2 in CommandLine::DispatchArg (this=0xbffff0bc, Map=0xbffff0d4, NoMatch=true) at contrib/cmndline.cc:360 #13 0x0804daa9 in main (argc=2, argv=0xbffff634) at apt-get.cc:3531
Нашёл ещё одного пострадавшего - такая же история, падать стал внезапно. откат glibc не помогает.
https://www.altlinux.org/Apt/TroubleShooting#.D0.9E.D1.88.D0.B8.D0.B1.D0.BA.D0.B0_.D1.81.D0.B5.D0.B3.D0.BC.D0.B5.D0.BD.D1.82.D0.B8.D1.80.D0.BE.D0.B2.D0.B0.D0.BD.D0.B8.D1.8F
после обновления glibc надо удалять кеш apt-get, т.к. данный кеш - это дамп памяти.