<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32099</bug_id>
          
          <creation_ts>2016-05-15 08:45:32 +0300</creation_ts>
          <short_desc>apt-get иногда падает с SIGSEGV после обновления библиотек, с которыми он слинкован</short_desc>
          <delta_ts>2020-08-19 14:04:16 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>apt</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anton Farygin">rider</reporter>
          <assigned_to name="Ivan Zakharyaschev">imz</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>evg</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>iv</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>rider</cc>
    
    <cc>sbolshakov</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>156799</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2016-05-15 08:45:32 +0300</bug_when>
    <thetext># 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]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156800</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2016-05-15 09:49:22 +0300</bug_when>
    <thetext>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&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;::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==&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; (__rhs=&lt;optimized out&gt;, 
    __lhs=&quot;/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_p8_branch_i586_base_pkglist.classic&quot;)
    at /usr/include/c++/5/bits/basic_string.h:4937
#4  operator!=&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; (__rhs=&lt;optimized out&gt;, 
    __lhs=&quot;/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_p8_branch_i586_base_pkglist.classic&quot;)
    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=&lt;error: Cannot access memory at address 0x73656372&gt;, Start=..., Start@entry=, End=..., End@entry=&lt;rpmSys&gt;, 
    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=&lt;optimized out&gt;) 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156808</commentid>
    <comment_count>2</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2016-05-16 13:51:48 +0300</bug_when>
    <thetext>Нашёл ещё одного пострадавшего - такая же история, падать стал внезапно.
откат glibc не помогает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156979</commentid>
    <comment_count>3</comment_count>
    <who name="Gleb F-Malinovskiy">glebfm</who>
    <bug_when>2016-05-24 15:59:45 +0300</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156994</commentid>
    <comment_count>4</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2016-05-25 13:39:36 +0300</bug_when>
    <thetext>после обновления glibc надо удалять кеш apt-get, т.к. данный кеш - это дамп памяти.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>