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

Bug#352955: marked as done (apt runs out of memory)



Your message dated Wed, 15 Feb 2006 16:06:02 -0000
with message-id <28cb01c6324a$36c867f0$eb00010a@andromeda>
and subject line Bug#352955: oops
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: apt
Version: 0.6.43.2
Severity: normal

I'm running Xen so this is probably a Xen bug but it's still really 
strange.  apt fails to mmap because of running out of memory. I am
attaching the strace & /proc/meminfo.  Can you confirm this is a Xen
bug?  I tried apt 0.5.23 with approx the same results.

strace env -i apt-cache gencache

access("/var/cache/apt/", W_OK)         = 0
stat64("/var/cache/apt/pkgcache.bin", 0xbffff8dc) = -1 ENOENT (No such 
file or directory)
unlink("/var/cache/apt/pkgcache.bin")   = -1 ENOENT (No such file or 
directory)
lstat64("/var/cache/apt/pkgcache.bin", 0xbffff98c) = -1 ENOENT (No such 
file or directory)
open("/var/cache/apt/pkgcache.bin", O_RDWR|O_CREAT|O_TRUNC, 0666) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fchmod(3, 0644)                         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
lseek(3, 12582911, SEEK_SET)            = 12582911
write(3, "\0", 1)                       = 1
fstat64(3, {st_mode=S_IFREG|0644, st_size=12582912, ...}) = 0
mmap2(NULL, 12582912, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = -1 
ENOMEM (Cannot allocate memory)
munmap(0xffffffff, 12582912)            = -1 EINVAL (Invalid argument)
ftruncate(3, 0)                         = 0
close(3)                                = 0
write(2, "E: ", 3E: )                      = 3
write(2, "Couldn\'t make mmap of 12582912 b"..., 71Couldn't make mmap of 
12582912 bytes - mmap (12 Cannot allocate memory)) = 71
write(2, "\n", 1
)                       = 1
write(2, "W: ", 3W: )                      = 3
write(2, "Unable to munmap", 16Unable to munmap)        = 16

unspot:/var/cache/apt# cat /proc/meminfo
MemTotal:        94004 kB
MemFree:          6856 kB
Buffers:          4476 kB
Cached:          55048 kB
SwapCached:        120 kB
Active:          53600 kB
Inactive:        23924 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:        94004 kB
LowFree:          6856 kB
SwapTotal:       98296 kB
SwapFree:        97352 kB
Dirty:               0 kB
Writeback:           0 kB
Mapped:          33624 kB
Slab:             8804 kB
CommitLimit:    145296 kB
Committed_AS:   106944 kB
PageTables:        864 kB
VmallocTotal:   876516 kB
VmallocUsed:       204 kB
VmallocChunk:   876312 kB


-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
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::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";

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


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

deb http://http.us.debian.org/debian stable main contrib non-free
#deb http://http.us.debian.org/debian testing main contrib non-free
#deb http://http.us.debian.org/debian unstable main contrib non-free
#deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
#deb http://security.debian.org sarge/updates main contrib non-free

# Uncomment if you want the apt-get source function to work
#deb-src http://http.us.debian.org/debian sarge main contrib non-free
#deb-src http://non-us.debian.org/debian-non-US sarge/non-US main contrib non-free


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.11.12-xenU-rimu1
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages apt depends on:
ii  libc6                         2.3.5-13   GNU C Library: Shared libraries an
ii  libgcc1                       1:4.0.2-8  GCC support library
ii  libstdc++6                    4.0.2-8    The GNU Standard C++ Library v3

-- no debconf information


--- End Message ---
--- Begin Message ---
On Wednesday, February 15, 2006 1:45 PM, Joshua N Pritikin
<jpritikin@pobox.com> wrote:

> Sorry, I'm an idiot.
>
> You may close this bug.

Closing with this message.

Regards,

Adam


--- End Message ---

Reply to: