Bug#561852: apt: Method http has died unexpectedly (undefined symbol:)
David Kalnischkies writes: > Hi George Danchev, > > 2009/12/29 George Danchev : > > It turns out that some previous version of apt (<= 0.7.24) provide > > libapt-pkg- libc6.9-6.so.4.8.1 shared object, which according to objdump > > -T and readelf -s do not provide the missing symbol in question > > (_Z14maybe_add_authR3URISs). > > Correct, maybe_add_auth was added in rev 1561.3.1 of the debian-sid branch. > (Seems to be we forget to bump the minor abi while trying hard to not break > the major abi) but as the library and the user (method/http) are shipped in > the same package the error is still a bit strange, especially as the http > method is the most used acquire method and the call to maybe_add_auth is > unconditional, so many (read: all) users should have faced this problem... Yes, I agree with that logic and actually very few users reported about behavior like that. > So is this somehow reproducible? Since there are so many upgrade paths, I haven't been able to reproduce that starting to upgrade apt from a clean lenny, I tried several combinations with no luck. I wonder if the resetted shared object versioning has something to do with it, e.g: apt < 0.7.24 libapt-pkg- libc6.9-6.so.4.8.0 apt = 0.7.24 libapt-pkg- libc6.9-6.so.4.8.1 and then again: apt = 0.7.25 libapt-pkg- libc6.9-6.so.4.8.0 that being said, I don't see many chances for libapt-pkg- libc6.9-6.so.4.8.1 and a previous version libapt-pkg- libc6.9-6.so.4.8.0 (with that symbol missing) to be left in place with a symlink and latest apt-get binary which is trying to resolve the missing symbol. (I reproduced it artificially extracting and putting in place libapt-pkg- libc6.9-6.so.4.8.1 from apt 0.7.24 when apt 0.7.25 was installed, but this is not so realistic as scenario) > I would personally prefer to understand why this happen at all > before closing the bug to be able to avoid such problems in the future. Yes, I can see your reasons... -- pub 4096R/0E4BD0AB -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#561852: apt: Method http has died unexpectedly (undefined symbol:)
Hi George Danchev, 2009/12/29 George Danchev : > It turns out that some previous version of apt (<= 0.7.24) provide libapt-pkg- > libc6.9-6.so.4.8.1 shared object, which according to objdump -T and readelf -s > do not provide the missing symbol in question (_Z14maybe_add_authR3URISs). Correct, maybe_add_auth was added in rev 1561.3.1 of the debian-sid branch. (Seems to be we forget to bump the minor abi while trying hard to not break the major abi) but as the library and the user (method/http) are shipped in the same package the error is still a bit strange, especially as the http method is the most used acquire method and the call to maybe_add_auth is unconditional, so many (read: all) users should have faced this problem... So is this somehow reproducible? I would personally prefer to understand why this happen at all before closing the bug to be able to avoid such problems in the future. Thanks for your help so far and a happy new year! David Kalnischkies -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#561852: apt: Method http has died unexpectedly (undefined symbol:)
Hi, It turns out that some previous version of apt (<= 0.7.24) provide libapt-pkg- libc6.9-6.so.4.8.1 shared object, which according to objdump -T and readelf -s do not provide the missing symbol in question (_Z14maybe_add_authR3URISs). To force dynamic linker to resolve all symbols at program startup instead of when they are first referenced: LD_BIND_NOW=true apt-get update To produce a more verbose debugging about the dynamic linkage: (what object files linker picks up and which symbols are being resolved) on x86: LD_DEBUG=all /lib/ld-linux.so.2 /usr/bin/apt-get update on amd64: LD_DEBUG=all /lib/ld-linux-x86-64.so.2 /usr/bin/apt-get update Since that it a transient breakage, I think we can close that bug safely unless there is a possible upgrade path which could leave the system in a state such that apt-get executable could call maybe_add_auth function without being dynamically linked with the proper shared object providing that symbol (_Z14maybe_add_authR3URISs) as well. P.S. Many thanks to Wil van Lierop (dutchfish) and Ron Lee (ron) for taking part in hunting down that transient breakage on IRC. -- pub 4096R/0E4BD0AB -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#561852: apt: Method http has died unexpectedly (undefined symbol:)
Downgrade to apt-0.7.23.1, apt-get update(not sure if it is needed) and upgrade again solves this problem for me. Before the downgrade the requested command looked like this: (installed apt was: apt_0.7.25_amd64.deb) # ldd /usr/lib/apt/methods/http linux-vdso.so.1 => (0x7fff779ff000) libapt-pkg-libc6.9-6.so.4.8 => /usr/lib/libapt-pkg-libc6.9-6.so.4.8 (0x7f22b2553000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f22b2243000) libm.so.6 => /lib/libm.so.6 (0x7f22b1fc) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7f22b1daa000) libc.so.6 => /lib/libc.so.6 (0x7f22b1a56000) libutil.so.1 => /lib/libutil.so.1 (0x7f22b1852000) libdl.so.2 => /lib/libdl.so.2 (0x7f22b164e000) /lib64/ld-linux-x86-64.so.2 (0x7f22b283e000) # ls -l /usr/lib/libapt-pkg-libc6.9-6.so.4.8 lrwxrwxrwx 1 root root 29 27. Dez 22:04 /usr/lib/libapt-pkg-libc6.9-6.so.4.8 -> libapt-pkg-libc6.9-6.so.4.8.1 now this is the output: (installed apt is: apt_0.7.25_amd64.deb) # ldd /usr/lib/apt/methods/http linux-vdso.so.1 => (0x7fff387ff000) libapt-pkg-libc6.9-6.so.4.8 => /usr/lib/libapt-pkg-libc6.9-6.so.4.8 (0x7fea2820) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7fea27ef) libm.so.6 => /lib/libm.so.6 (0x7fea27c6d000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7fea27a57000) libc.so.6 => /lib/libc.so.6 (0x7fea27703000) libutil.so.1 => /lib/libutil.so.1 (0x7fea274ff000) libdl.so.2 => /lib/libdl.so.2 (0x7fea272fb000) /lib64/ld-linux-x86-64.so.2 (0x7fea284ee000) # ls -l /usr/lib/libapt-pkg-libc6.9-6.so.4.8 lrwxrwxrwx 1 root root 29 28. Dez 21:58 /usr/lib/libapt-pkg-libc6.9-6.so.4.8 -> libapt-pkg-libc6.9-6.so.4.8.0 signature.asc Description: This is a digitally signed message part.
Bug#561852: apt: Method http has died unexpectedly (undefined symbol:)
On Sun, Dec 20, 2009 at 12:31:06PM -0430, Ramon Ramos wrote: > Package: apt > Version: 0.7.25 > Justification: renders package unusable > Severity: grave > > Hi guys. the system show me this message when i try to update it, > > Zen2:/home/ramon# apt-get update > 0% [Conectando a ftp.debian.org (130.89.149.226)]/usr/lib/apt/methods/http: > symbol lookup error: /usr/lib/apt/methods/http: undefined symbol: > _Z14maybe_add_authR3URISs > E: Method http has died unexpectedly! > E: El subproceso http devolvió un código de error (127) Can you please give me the output of: $ ldd /usr/lib/apt/methods/http and $ ls -l /usr/lib/libapt-pkg-libc6.9-6.so.4.8 Thanks, Michael > -- Package-specific info: > > -- apt-config dump -- > > APT ""; > APT::Architecture "i386"; > APT::Build-Essential ""; > APT::Build-Essential:: "build-essential"; > APT::Install-Recommends "1"; > APT::Install-Suggests "0"; > APT::Acquire ""; > APT::Acquire::Translation "environment"; > APT::Authentication ""; > APT::Authentication::TrustCDROM "true"; > APT::NeverAutoRemove ""; > APT::NeverAutoRemove:: "^linux-image.*"; > APT::NeverAutoRemove:: "^linux-restricted-modules.*"; > Dir "/"; > Dir::State "var/lib/apt/"; > Dir::State::lists "lists/"; > Dir::State::cdroms "cdroms.list"; > Dir::State::userstatus "status.user"; > 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::parts "apt.conf.d"; > Dir::Etc::preferences "preferences"; > Dir::Etc::preferencesparts "preferences.d"; > Dir::Bin ""; > Dir::Bin::methods "/usr/lib/apt/methods"; > Dir::Bin::dpkg "/usr/bin/dpkg"; > Dir::Log "var/log/apt"; > Dir::Log::Terminal "term.log"; > DPkg ""; > DPkg::Pre-Install-Pkgs ""; > DPkg::Pre-Install-Pkgs:: "/usr/sbin/apt-listbugs apt || exit 10"; > DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true"; > DPkg::Tools ""; > DPkg::Tools::Options ""; > DPkg::Tools::Options::/usr/sbin/apt-listbugs ""; > DPkg::Tools::Options::/usr/sbin/apt-listbugs::Version "2"; > > -- /etc/apt/preferences -- > > > Explanation: Pinned by apt-listbugs at Mon Dec 07 01:00:34 -0430 2009 > Explanation: #559135: gedit-latex-plugin: installation fails > Package: gedit-latex-plugin > Pin: version 0.2rc2-2 > Pin-Priority: 1000 > > Explanation: Pinned by apt-listbugs at Tue Dec 08 22:23:03 -0430 2009 > Explanation: #547038: Still dash vs bash problems > Package: bash > Pin: version 4.0-4 > Pin-Priority: 1000 > > -- /etc/apt/sources.list -- > > > # deb cdrom:[Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 NETINST Binary-1 > 20070820-20:21]/ etch contrib main > > > # deb cdrom:[Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 NETINST Binary-1 > 20070820-20:21]/ etch contrib main > > deb http://ftp.debian.org/debian/ unstable main non-free contrib > deb-src http://ftp.debian.org/debian/ unstable main non-free contrib > > # deb http://debian.unesr.edu.ve/debian/ unstable main non-free contrib > # deb-src http://debian.unesr.edu.ve/debian/ unstable main non-free contrib > > > > # deb http://ppa.launchpad.net/synce/ubuntu/ hardy main > # deb-src http://security.debian.org/ unstable/updates main contrib > non-free > > # deb http://people.debian.org/~stigge/packages/ ./ > # deb-src http://people.debian.org/~stigge/packages/ ./ > > # deb http://mirror-01.cantv.net/debian/ sid main non-free contrib > > # deb http://mirror-01.cantv.net/debian-security/ sid main non-free contrib > > -- System Information: > Debian Release: squeeze/sid > APT prefers unstable > APT policy: (500, 'unstable') > Architecture: i386 (i686) > > Kernel: Linux 2.6.31-1-686-bigmem (SMP w/2 CPU cores) > Locale: LANG=es_VE.UTF-8, LC_CTYPE=es_VE.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/bash > > Versions of packages apt depends on: > ii debian-archive-keyring2009.01.31 GnuPG archive keys of the > Debian a > ii libc6 2.10.2-2 GNU C Library: Shared libraries > ii libgcc1 1:4.4.2-5 GCC support library > ii libstdc++64.4.2-5The GNU Standard C++ Library v3 > > apt recommends no packages. > > Versions of packages apt suggests: > pn apt-doc(no description available) > ii aptitude 0.6.1.3-3 terminal-based package manager > (te > ii bzip2 1.0.5-3high-quality block-sorting file > co > ii dpkg-dev 1.15.4.1 Debian package development > tools > ii lzma 4.43-14Compression method of 7z format > in > ii python-apt0.7.13.4 Python interface to libapt-pkg > ii synaptic 0.63
Bug#561852: apt: Method http has died unexpectedly (undefined symbol:)
Package: apt Version: 0.7.25 Justification: renders package unusable Severity: grave Hi guys. the system show me this message when i try to update it, Zen2:/home/ramon# apt-get update 0% [Conectando a ftp.debian.org (130.89.149.226)]/usr/lib/apt/methods/http: symbol lookup error: /usr/lib/apt/methods/http: undefined symbol: _Z14maybe_add_authR3URISs E: Method http has died unexpectedly! E: El subproceso http devolvió un código de error (127) -- Package-specific info: -- apt-config dump -- APT ""; APT::Architecture "i386"; APT::Build-Essential ""; APT::Build-Essential:: "build-essential"; APT::Install-Recommends "1"; APT::Install-Suggests "0"; APT::Acquire ""; APT::Acquire::Translation "environment"; APT::Authentication ""; APT::Authentication::TrustCDROM "true"; APT::NeverAutoRemove ""; APT::NeverAutoRemove:: "^linux-image.*"; APT::NeverAutoRemove:: "^linux-restricted-modules.*"; Dir "/"; Dir::State "var/lib/apt/"; Dir::State::lists "lists/"; Dir::State::cdroms "cdroms.list"; Dir::State::userstatus "status.user"; 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::parts "apt.conf.d"; Dir::Etc::preferences "preferences"; Dir::Etc::preferencesparts "preferences.d"; Dir::Bin ""; Dir::Bin::methods "/usr/lib/apt/methods"; Dir::Bin::dpkg "/usr/bin/dpkg"; Dir::Log "var/log/apt"; Dir::Log::Terminal "term.log"; DPkg ""; DPkg::Pre-Install-Pkgs ""; DPkg::Pre-Install-Pkgs:: "/usr/sbin/apt-listbugs apt || exit 10"; DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true"; DPkg::Tools ""; DPkg::Tools::Options ""; DPkg::Tools::Options::/usr/sbin/apt-listbugs ""; DPkg::Tools::Options::/usr/sbin/apt-listbugs::Version "2"; -- /etc/apt/preferences -- Explanation: Pinned by apt-listbugs at Mon Dec 07 01:00:34 -0430 2009 Explanation: #559135: gedit-latex-plugin: installation fails Package: gedit-latex-plugin Pin: version 0.2rc2-2 Pin-Priority: 1000 Explanation: Pinned by apt-listbugs at Tue Dec 08 22:23:03 -0430 2009 Explanation: #547038: Still dash vs bash problems Package: bash Pin: version 4.0-4 Pin-Priority: 1000 -- /etc/apt/sources.list -- # deb cdrom:[Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 NETINST Binary-1 20070820-20:21]/ etch contrib main # deb cdrom:[Debian GNU/Linux 4.0 r1 _Etch_ - Official i386 NETINST Binary-1 20070820-20:21]/ etch contrib main deb http://ftp.debian.org/debian/ unstable main non-free contrib deb-src http://ftp.debian.org/debian/ unstable main non-free contrib # deb http://debian.unesr.edu.ve/debian/ unstable main non-free contrib # deb-src http://debian.unesr.edu.ve/debian/ unstable main non-free contrib # deb http://ppa.launchpad.net/synce/ubuntu/ hardy main # deb-src http://security.debian.org/ unstable/updates main contrib non-free # deb http://people.debian.org/~stigge/packages/ ./ # deb-src http://people.debian.org/~stigge/packages/ ./ # deb http://mirror-01.cantv.net/debian/ sid main non-free contrib # deb http://mirror-01.cantv.net/debian-security/ sid main non-free contrib -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.31-1-686-bigmem (SMP w/2 CPU cores) Locale: LANG=es_VE.UTF-8, LC_CTYPE=es_VE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages apt depends on: ii debian-archive-keyring2009.01.31 GnuPG archive keys of the Debian a ii libc6 2.10.2-2 GNU C Library: Shared libraries ii libgcc1 1:4.4.2-5 GCC support library ii libstdc++64.4.2-5The GNU Standard C++ Library v3 apt recommends no packages. Versions of packages apt suggests: pn apt-doc(no description available) ii aptitude 0.6.1.3-3 terminal-based package manager (te ii bzip2 1.0.5-3high-quality block-sorting file co ii dpkg-dev 1.15.4.1 Debian package development tools ii lzma 4.43-14Compression method of 7z format in ii python-apt0.7.13.4 Python interface to libapt-pkg ii synaptic 0.63 Graphical package manager -- no debconf information