Subject: apt: Segmentation fault on manual upgrade Package: apt Version: 0.8.15.4 Severity: normal
Apt segfaults if a required package (libtelepathy-farstream0 in my case) is prevented from installing by policy. Stack looks corrupt in gdb. I also added the last lines from ltrace -C -S -s256 -f. # apt-get -mu install empathy/experimental empathy-common/experimental Reading package lists... Done Building dependency tree Reading state information... Done Selected version '3.1.4-1' (Debian:experimental [amd64]) for 'empathy' Segmentation fault # apt-get -mu install -t experimental empathy/experimental empathy-common/experimental Reading package lists... Done Building dependency tree Reading state information... Done Selected version '3.1.4-1' (Debian:experimental [amd64]) for 'empathy' Selected version '3.1.4-1' (Debian:experimental [all]) for 'empathy-common' The following package was automatically installed and is no longer required: libtracker-client-0.8-0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libtelepathy-farstream0 Suggested packages: telepathy-haze telepathy-butterfly Recommended packages: telepathy-salut nautilus-sendto-empathy The following NEW packages will be installed: libtelepathy-farstream0 The following packages will be upgraded: empathy empathy-common 2 upgraded, 1 newly installed, 0 to remove and 217 not upgraded. Need to get 6,397 kB of archives. After this operation, 1,044 kB of additional disk space will be used. # apt-cache policy empathy empathy-common libtelepathy-farstream0 Installed: 3.1.3-1 Candidate: 3.1.3-1 Version table: 3.1.4-1 0 -1 http://ftp.de.debian.org/debian/ experimental/main amd64 Packages *** 3.1.3-1 0 100 /var/lib/dpkg/status 2.30.3-2 0 800 http://ftp.de.debian.org/debian/ sid/main amd64 Packages empathy-common: Installed: 3.1.3-1 Candidate: 3.1.3-1 Version table: 3.1.4-1 0 -1 http://ftp.de.debian.org/debian/ experimental/main amd64 Packages *** 3.1.3-1 0 100 /var/lib/dpkg/status 2.30.3-2 0 800 http://ftp.de.debian.org/debian/ sid/main amd64 Packages libtelepathy-farstream0: Installed: (none) Candidate: (none) Version table: 0.1.1-1 0 -1 http://ftp.de.debian.org/debian/ experimental/main amd64 Packages # gdb apt-get [...] (gdb) run -mu install empathy/experimental empathy-common/experimental Starting program: /usr/bin/apt-get -mu install empathy/experimental empathy-common/experimental Reading package lists... Done Building dependency tree Reading state information... Done Selected version '3.1.4-1' (Debian:experimental [amd64]) for 'empathy' Program received signal SIGSEGV, Segmentation fault. 0x000000000041e90e in ?? () (gdb) bt #0 0x000000000041e90e in ?? () #1 0x000000000041b994 in ?? () #2 0x00007ffff7b0ade3 in CommandLine::DispatchArg(CommandLine::Dispatch*, bool) () from /usr/lib/libapt-pkg.so.4.10 #3 0x00000000004097d4 in ?? () #4 0x00007ffff6dbdead 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=0x7fffffffec28) at libc-start.c:228 #5 0x0000000000409af1 in ?? () #6 0x00007fffffffec28 in ?? () #7 0x000000000000001c in ?? () #8 0x0000000000000005 in ?? () #9 0x00007fffffffee4a in ?? () #10 0x00007fffffffee5b in ?? () #11 0x00007fffffffee5f in ?? () #12 0x00007fffffffee67 in ?? () #13 0x00007fffffffee7c in ?? () #14 0x0000000000000000 in ?? () # ltrace -C -S -s256 -f -o apt.ltracef apt-get -mu install empathy/experimental empathy-common/experimental [...] # tail -n 40 /srv/backup2/brian/apt.ltracef 14929 Configuration::FindB(char const*, bool const&) const(0x90e010, 0x4256c2, 0x7fff44900f27, 3, 0x7fe5e8208ef8) = 1 14929 operator new(unsigned long)(48, 0x9143d5, 0x7fff449007f8, 0x4256d7, 0x7fff4490067f) = 0x9168c0 14929 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&)(0x9168e8, 0x916a88, 0x7fe5e74ad5c8, 0x9168b0, 0x9168b0) = 0x916b58 14929 std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)(0x9168c0, 0x7fff44900cc0, 0x7fe5e74ad5c8, 0x9168b0, 0) = 0x7fff44900cc0 14929 operator new(unsigned long)(48, 0x7fff44900cc0, 0x7fe5e74ad5c8, 0x9168b0, 0) = 0x916b70 14929 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&)(0x916b98, 0x917478, 0x7fe5e74ad610, 0x916b60, 0x916b60) = 0x9169f8 14929 std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)(0x916b70, 0x7fff44900cc0, 0x7fe5e74ad610, 0x916b60, 0) = 0x9168c0 14929 pkgCacheFile::BuildDepCache(OpProgress*)(0x7fff449008f0, 0, 0x7fe5e74ad5c8, 0x916b60, 0) = 1 14929 pkgDepCache::SetCandidateVersion(pkgCache::VerIterator, bool const&)(0x916920, 0x7fff44900590, 0x7fff4490064c, 0x916b60, 0) = 0x7fe5e6458000 14929 pkgCacheFile::BuildDepCache(OpProgress*)(0x7fff449008f0, 0, 0x7fe5e74ad610, 0x7fe5e6458000, 0) = 1 14929 pkgDepCache::SetCandidateVersion(pkgCache::VerIterator, bool const&)(0x916920, 0x7fff44900590, 0x7fff4490064c, 0x7fe5e6458000, 0) = 0x7fe5e6458000 14929 operator new(unsigned long)(64, 445976, 0x7fe5e74ad610, 0x7fe5e6458000, 0) = 0x916a10 14929 std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)(0x916a10, 0x7fff449005f0, 0x7fe5e8208e60, 0x916a00, 0x916a00) = 0x7fff449005f0 14929 pkgCacheFile::BuildDepCache(OpProgress*)(0x7fff449008f0, 0, 0x7fe5e74ad5c8, 0x916a00, 0x916a00) = 1 14929 pkgDepCache::SetCandidateRelease(pkgCache::VerIterator, std::string const&, std::list<std::pair<pkgCache::VerIterator, pkgCache::VerIterator>, std::allocator<std::pair<pkgCache::VerIterator, pkgCache::VerIterator> > >&)(0x916920, 0x7fff449005b0, 0x9168e8, 0x7fff449005f0, 0x916a00 <unfinished ...> 14929 SYS_mmap(0, 0x106000, 3, 34, 0xffffffff) = 0x7fe5e6147000 14929 SYS_munmap(0x7fe5e6147000, 1073152) = 0 14929 SYS_brk(0x00a5f000) = 0x00a5f000 14929 <... pkgDepCache::SetCandidateRelease(pkgCache::VerIterator, std::string const&, std::list<std::pair<pkgCache::VerIterator, pkgCache::VerIterator>, std::allocator<std::pair<pkgCache::VerIterator, pkgCache::VerIterator> > >&) resumed> ) = 1 14929 operator new(unsigned long)(64, 0, 1, 0xffffffff, 0x7fff4490018f) = 0x917640 14929 std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)(0x917640, 0x7fff449005f0, 0x7fe5e8208e60, 0x917630, 0x917630) = 0x917530 14929 pkgCacheFile::BuildDepCache(OpProgress*)(0x7fff449008f0, 0, 0x7fe5e74ad610, 0x917630, 0x917630) = 1 14929 pkgDepCache::SetCandidateRelease(pkgCache::VerIterator, std::string const&, std::list<std::pair<pkgCache::VerIterator, pkgCache::VerIterator>, std::allocator<std::pair<pkgCache::VerIterator, pkgCache::VerIterator> > >&)(0x916920, 0x7fff449005b0, 0x916b98, 0x7fff449005f0, 0x917630) = 1 14929 pkgCache::PkgIterator::FullName(bool const&) const(0x7fff44900610, 0x7fff44900530, 0x7fff4490064d, 0x7fe5e6458000, 0x7fff4490018f) = 0x7fff44900610 14929 pkgCache::VerIterator::RelStr() const(0x7fff44900600, 0x916a20, 1, 0, 0) = 0x7fff44900600 14929 gettext(0x423530, 0x7fe5e8c9fbed, 0x917330, 0x917808, 0x7fe5e8208f08 <unfinished ...> 14929 SYS_open("/usr/share/locale/en_GB.UTF-8/LC_MESSAGES/apt.mo", 0, 01) = -2 14929 SYS_open("/usr/share/locale/en_GB.utf8/LC_MESSAGES/apt.mo", 0, 01) = -2 14929 SYS_open("/usr/share/locale/en_GB/LC_MESSAGES/apt.mo", 0, 01) = -2 14929 SYS_open("/usr/share/locale/en.UTF-8/LC_MESSAGES/apt.mo", 0, 01) = -2 14929 SYS_open("/usr/share/locale/en.utf8/LC_MESSAGES/apt.mo", 0, 01) = -2 14929 SYS_open("/usr/share/locale/en/LC_MESSAGES/apt.mo", 0, 01) = -2 14929 <... gettext resumed> ) = 0x423530 14929 ioprintf(std::ostream&, char const*, ...)(0x62b820, 0x423530, 0x7fe5e759d4bd, 0x917808, 0x9176a8 <unfinished ...> 14929 SYS_write(1, "Selected version '3.1.4-1' (Debian:experimental [amd64]) for 'empathy'\n", 71) = 71 14929 <... ioprintf(std::ostream&, char const*, ...) resumed> ) = 0x62b820 14929 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()(0x7fff44900600, 0x7fe5e90dc000, 71, 1024, 0x206c61746e656d69) = 0 14929 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()(0x7fff44900610, 0, 4, 1024, 0x206c61746e656d69) = 0x9169a0 14929 --- SIGSEGV (Segmentation fault) --- 14929 +++ killed by SIGSEGV +++ -- Package-specific info: -- apt-config dump -- APT ""; APT::Architecture "amd64"; APT::Build-Essential ""; APT::Build-Essential:: "build-essential"; APT::Install-Recommends "False"; APT::Install-Suggests "0"; APT::Authentication ""; APT::Authentication::TrustCDROM "true"; APT::NeverAutoRemove ""; APT::NeverAutoRemove:: "^firmware-linux.*"; APT::NeverAutoRemove:: "^linux-firmware$"; APT::NeverAutoRemove:: "^linux-image.*"; APT::NeverAutoRemove:: "^kfreebsd-image.*"; APT::NeverAutoRemove:: "^linux-restricted-modules.*"; APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*"; APT::NeverAutoRemove:: "^gnumach$"; APT::NeverAutoRemove:: "^gnumach-image.*"; APT::Never-MarkAuto-Sections ""; APT::Never-MarkAuto-Sections:: "metapackages"; APT::Never-MarkAuto-Sections:: "restricted/metapackages"; APT::Never-MarkAuto-Sections:: "universe/metapackages"; APT::Never-MarkAuto-Sections:: "multiverse/metapackages"; APT::Never-MarkAuto-Sections:: "oldlibs"; APT::Never-MarkAuto-Sections:: "restricted/oldlibs"; APT::Never-MarkAuto-Sections:: "universe/oldlibs"; APT::Never-MarkAuto-Sections:: "multiverse/oldlibs"; APT::Periodic ""; APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "0"; APT::Periodic::AutocleanInterval "0"; APT::Update ""; APT::Update::Post-Invoke ""; APT::Update::Post-Invoke:: "touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true"; APT::Update::Post-Invoke-Success ""; APT::Update::Post-Invoke-Success:: "[ ! -f /var/run/dbus/system_bus_socket ] || /usr/bin/dbus-send --system --dest=org.debian.apt --type=signal /org/debian/apt org.debian.apt.CacheChanged || true"; APT::Archives ""; APT::Archives::MaxAge "30"; APT::Archives::MinAge "2"; APT::Archives::MaxSize "500"; APT::Architectures ""; APT::Architectures:: "amd64"; Dir "/"; Dir::State "var/lib/apt/"; Dir::State::lists "lists/"; Dir::State::cdroms "cdroms.list"; Dir::State::mirrors "mirrors/"; Dir::State::extended_states "extended_states"; Dir::State::status "/var/lib/dpkg/status"; Dir::Cache "var/cache/apt/"; Dir::Cache::archives "archives/"; Dir::Cache::srcpkgcache "srcpkgcache.bin"; Dir::Cache::pkgcache "pkgcache.bin"; Dir::Etc "etc/apt/"; Dir::Etc::sourcelist "sources.list"; Dir::Etc::sourceparts "sources.list.d"; Dir::Etc::vendorlist "vendors.list"; Dir::Etc::vendorparts "vendors.list.d"; Dir::Etc::main "apt.conf"; Dir::Etc::netrc "auth.conf"; Dir::Etc::parts "apt.conf.d"; Dir::Etc::preferences "preferences"; Dir::Etc::preferencesparts "preferences.d"; Dir::Etc::trusted "trusted.gpg"; Dir::Etc::trustedparts "trusted.gpg.d"; Dir::Bin ""; Dir::Bin::methods "/usr/lib/apt/methods"; Dir::Bin::dpkg "/usr/bin/dpkg"; Dir::Media ""; Dir::Media::MountPath "/media/apt"; Dir::Log "var/log/apt"; Dir::Log::Terminal "term.log"; Dir::Log::History "history.log"; Dir::Ignore-Files-Silently ""; Dir::Ignore-Files-Silently:: "~$"; Dir::Ignore-Files-Silently:: "\.disabled$"; Dir::Ignore-Files-Silently:: "\.bak$"; Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$"; Acquire ""; Acquire::cdrom ""; Acquire::cdrom::mount "/media/cdrom/"; Acquire::gpgv ""; Acquire::gpgv::Options ""; Acquire::gpgv::Options:: "--ignore-time-conflict"; Acquire::Languages ""; Acquire::Languages:: "en"; Acquire::Languages:: "none"; Acquire::Languages:: "de"; DPkg ""; DPkg::Pre-Install-Pkgs ""; DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10"; DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true"; DPkg::Tools ""; DPkg::Tools::Options ""; DPkg::Tools::Options::/usr/bin/apt-listchanges ""; DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2"; DPkg::Post-Invoke ""; DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi"; DPkg::Post-Invoke:: "if [ -x /usr/bin/rkhunter ] && grep -qiE '^APT_AUTOGEN=.?(true|yes)' /etc/default/rkhunter; then /usr/share/rkhunter/scripts/rkhupd.sh; fi"; DPkg::Post-Invoke:: "if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi "; Unattended-Upgrade ""; Unattended-Upgrade::Origins-Pattern ""; Unattended-Upgrade::Origins-Pattern:: "origin=Debian,label=Debian-Security,archive=stable"; CommandLine ""; CommandLine::AsString "apt-config dump"; -- /etc/apt/preferences -- Package: * Pin: origin debian.meebey.net Pin-Priority: 800 Package: * Pin: release o=Debian,a=stable Pin-Priority: 900 Package: * Pin: release o=Debian,a=testing Pin-Priority: 850 Package: * Pin: release o=Debian,a=unstable Pin-Priority: 800 Package: * Pin: release o=Debian,a=experimental Pin-Priority: -1 Package: * Pin: release o=Debian Pin-Priority: 600 -- /etc/apt/sources.list -- deb http://ftp.de.debian.org/debian sid main contrib non-free deb-src http://ftp.de.debian.org/debian sid main contrib non-free deb http://ftp.de.debian.org/debian experimental main contrib non-free deb-src http://ftp.de.debian.org/debian experimental main contrib non-free deb http://www.debian-multimedia.org sid main non-free deb-src http://www.debian-multimedia.org sid main non-free -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (800, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-pinguin20110723 (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages apt depends on: ii debian-archive-keyring 2010.08.28 GnuPG archive keys of the Debian a ii gnupg 1.4.11-3 GNU privacy guard - a free PGP rep ii libc6 2.13-11 Embedded GNU C Library: Shared lib ii libgcc1 1:4.6.1-5 GCC support library ii libstdc++6 4.6.1-5 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.4-1 terminal-based package manager (te ii bzip2 1.0.5-6 high-quality block-sorting file co ii dpkg-dev 1.16.0.3 Debian package development tools ii lzma 4.43-14 Compression method of 7z format in ii python-apt 0.8.0 Python interface to libapt-pkg ii synaptic 0.75.2 Graphical package manager -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org