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

Bug#619586: apt: [apt-transport-mirror] what(): std::bad_alloc (was: Re: cdn.debian.net as a project service?)



Package: apt
Version: 0.8.13
Severity: normal

Hi there!

The discussion started on debian-devel@l.d.o, specifically:

  <http://lists.debian.org/msgid-search/%3c20110310195547.GA24278%40localhost%3e>

On Thu, 10 Mar 2011 20:55:47 +0100, Michael Vogt wrote:
> On Thu, Mar 10, 2011 at 10:22:29AM +0100, Peter Palfrader wrote:
>> On Thu, 10 Mar 2011, Lars Wirzenius wrote:
>> > What would it take to get cdn.debian.net become a service provided by
>> > the project? In other words, cdn.debian.org, instead of cdn.debian.net.
> [..] 
>> I'd really like to see support for sane mirror selection in apt itself,
>> possibly with archive support (i.e. list of mirrors somewhere on
>> ftp.d.o).  That would allow apt to for instance retry on a different
>> server if the first one it tried does not work for some reason, and
>> maybe even report the problem to a central mirror.
>
> There is a "mirror" method in apt since some time that is a bit of a
> combined cdn/README.mirrors approach. Its not much used and probably
> has some rough edges but should be a good starting point.
>
> The idea is that you have a sources.list entry like: 
> deb mirrors://mirrors.debian.org/mirror sid main
      ^^^^^^^
The method is singular and mirros.debian.org does not exist.  Anyway, my
sid freezes when trying to use it (top shows 3.1g VIRT and 1.6g RES
memory) and then apt dies:
=====
root@gismo:~# echo "deb mirrors://mirrors.debian.org/mirror sid main" >/etc/apt/sources.list
root@gismo:~# apt-get update
E: The method driver /usr/lib/apt/methods/mirrors could not be found.

root@gismo:~# echo "deb mirror://mirrors.debian.org/mirror sid main" >/etc/apt/sources.list
root@gismo:~# apt-get update
0% [Working]terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
E: Method mirror has died unexpectedly!
E: Sub-process mirror received signal 6.

root@gismo:~# echo "deb mirror://mirror.debian.org/mirror sid main" >/etc/apt/sources.list
root@gismo:~# apt-get update
0% [Working]terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
E: Method mirror has died unexpectedly!
E: Sub-process mirror received signal 6.

root@gismo:~# find /var/lib/apt/mirrors/
/var/lib/apt/mirrors/
/var/lib/apt/mirrors/partial

root@gismo:~#
=====

This is on an updated sid with 2GB RAM plus 2GB swap, on an Intel X25-M
80GB SSD partitioned as cryptsetup/LVM/ext4.

Thx, bye,
Gismo / Luca

-- 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::Acquire "";
APT::Acquire::Translation "environment";
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::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::Default-Release "sid";
APT::Languages "none";
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::PDiffs "false";
DPkg "";
DPkg::Pre-Invoke "";
DPkg::Pre-Invoke:: "if [ -x /usr/bin/etckeeper ]; then etckeeper pre-install; fi";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/bin/etckeeper ]; then etckeeper post-install; fi";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/apt-listbugs apt || exit 10";
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/sbin/apt-listbugs "";
DPkg::Tools::Options::/usr/sbin/apt-listbugs::Version "2";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
RPM "";
RPM::Pre-Invoke "";
RPM::Pre-Invoke:: "if [ -x /usr/bin/etckeeper ]; then etckeeper pre-install; fi";
RPM::Post-Invoke "";
RPM::Post-Invoke:: "if [ -x /usr/bin/etckeeper ]; then etckeeper post-install; fi";
CommandLine "";
CommandLine::AsString "apt-config dump";

-- (no /etc/apt/preferences present) --


-- /etc/apt/sources.list --

deb mirror://mirrors.debian.org/mirror sid main
-- System Information:
Debian Release: wheezy/sid
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

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.11.2-13        Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.5.2-7        GCC support library
ii  libstdc++6              4.5.2-7          The 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.3-3.2  terminal-based package manager (te
ii  bzip2                         1.0.5-6    high-quality block-sorting file co
ii  dpkg-dev                      1.15.8.10  Debian package development tools
ii  lzma                          4.43-14    Compression method of 7z format in
ii  python-apt                    0.7.100.2  Python interface to libapt-pkg

-- no debconf information

Attachment: pgpgAUAXP_Ywa.pgp
Description: PGP signature


Reply to: