Package: apt-cacher
Version: 1.6.12
Severity: normal

apt-cacher segfaults at random intervals when clients are accessing the cache. 
From /var/log/messages:

---%<---
Nov 24 15:35:43 camoscm2 kernel: [616289.995097] apt-cacher.pl[9964]: segfault 
at a80 ip 00007f9ec2485122 sp 00007fffc4fdfef0 error 4 in 
libperl.so.5.10.1[7f9ec23eb000+164000]
--->%---

The apt-cacher error log is empty for the day in question, the access log 
doesn't show anything unusual:

---%<---
Wed Nov 24 15:35:23 
2010|9890|10.10.13.11|HIT|198|de.archive.ubuntu.com_ubuntu_dists_maverick_Release.gpg
Wed Nov 24 15:35:26 
2010|9900|10.10.13.11|EXPIRED|198|de.archive.ubuntu.com_ubuntu_dists_natty_Release.gpg
Wed Nov 24 15:35:29 
2010|9910|10.10.13.11|HIT|198|de.archive.ubuntu.com_ubuntu_dists_maverick-updates_Release.gpg
Wed Nov 24 15:35:31 
2010|9919|10.10.13.11|HIT|198|de.archive.ubuntu.com_ubuntu_dists_natty-updates_Release.gpg
Wed Nov 24 15:35:33 
2010|9928|10.10.13.11|HIT|198|security.ubuntu.com_ubuntu_dists_maverick-security_Release.gpg
Wed Nov 24 15:35:35 
2010|9937|10.10.13.11|HIT|198|security.ubuntu.com_ubuntu_dists_natty-security_Release.gpg
Wed Nov 24 15:35:38 
2010|9946|10.10.13.11|HIT|316|ppa.launchpad.net_chromium-daily_ppa_ubuntu_dists_natty_Release.gpg
Wed Nov 24 15:35:39 
2010|9949|10.10.13.11|HIT|189|deb.opera.com_opera_dists_unstable_Release.gpg
Wed Nov 24 15:35:39 
2010|9954|10.10.13.11|HIT|316|ppa.launchpad.net_ubuntu-mozilla-daily_ppa_ubuntu_dists_maverick_Release.gpg
Wed Nov 24 15:35:40 
2010|9957|10.10.13.11|HIT|316|ppa.launchpad.net_xorg-edgers_wayland_ubuntu_dists_natty_Release.gpg
Wed Nov 24 15:35:41 
2010|9960|10.10.13.11|HIT|39772|de.archive.ubuntu.com_ubuntu_dists_maverick_Release
Wed Nov 24 15:35:42 
2010|9961|10.10.13.11|EXPIRED|39763|de.archive.ubuntu.com_ubuntu_dists_natty_Release
Wed Nov 24 15:35:42 
2010|9963|10.10.13.11|HIT|31364|de.archive.ubuntu.com_ubuntu_dists_maverick-updates_Release
Wed Nov 24 15:35:43 
2010|9964|10.10.13.11|HIT|23225|de.archive.ubuntu.com_ubuntu_dists_natty-updates_Release
Wed Nov 24 15:35:43 
2010|9966|10.10.13.11|HIT|27229|security.ubuntu.com_ubuntu_dists_maverick-security_Release
Wed Nov 24 15:35:43 
2010|9967|10.10.13.11|HIT|23227|security.ubuntu.com_ubuntu_dists_natty-security_Release
Wed Nov 24 15:35:44 
2010|9968|10.10.13.11|HIT|39810|ppa.launchpad.net_chromium-daily_ppa_ubuntu_dists_natty_Release
Wed Nov 24 15:35:44 
2010|9969|10.10.13.11|HIT|1067|deb.opera.com_opera_dists_unstable_Release
Wed Nov 24 15:35:44 
2010|9970|10.10.13.11|HIT|39826|ppa.launchpad.net_ubuntu-mozilla-daily_ppa_ubuntu_dists_maverick_Release
Wed Nov 24 15:35:45 
2010|9971|10.10.13.11|HIT|39805|ppa.launchpad.net_xorg-edgers_wayland_ubuntu_dists_natty_Release
Wed Nov 24 15:35:45 
2010|9972|10.10.13.11|HIT|1035702|de.archive.ubuntu.com_ubuntu_dists_maverick_main_source_Sources.gz
Wed Nov 24 15:35:45 
2010|9973|10.10.13.11|HIT|183821|de.archive.ubuntu.com_ubuntu_dists_maverick_multiverse_source_Sources.gz
Wed Nov 24 15:35:46 
2010|9974|10.10.13.11|HIT|4217|de.archive.ubuntu.com_ubuntu_dists_maverick_restricted_source_Sources.gz
Wed Nov 24 15:35:46 
2010|9975|10.10.13.11|HIT|5184535|de.archive.ubuntu.com_ubuntu_dists_maverick_universe_source_Sources.gz
Wed Nov 24 15:35:46 
2010|9976|10.10.13.11|HIT|1909018|de.archive.ubuntu.com_ubuntu_dists_maverick_main_binary-amd64_Packages.gz
Wed Nov 24 15:35:46 
2010|9977|10.10.13.11|HIT|234324|de.archive.ubuntu.com_ubuntu_dists_maverick_multiverse_binary-amd64_Packages.gz
Wed Nov 24 15:35:47 
2010|9978|10.10.13.11|HIT|5914|de.archive.ubuntu.com_ubuntu_dists_maverick_restricted_binary-amd64_Packages.gz
Wed Nov 24 15:35:47 
2010|9979|10.10.13.11|HIT|7455937|de.archive.ubuntu.com_ubuntu_dists_maverick_universe_binary-amd64_Packages.gz
Wed Nov 24 15:35:51 
2010|9980|10.10.13.11|EXPIRED|1046584|de.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources.gz
Wed Nov 24 15:35:52 
2010|9982|10.10.13.11|EXPIRED|192863|de.archive.ubuntu.com_ubuntu_dists_natty_multiverse_source_Sources.gz
Wed Nov 24 15:35:54 
2010|9984|10.10.13.11|EXPIRED|3979|de.archive.ubuntu.com_ubuntu_dists_natty_restricted_source_Sources.gz
--->%---

Enabling core files and analyzing the resulting core gives the following. Note 
that I'm not sure if this is the correct way to analyze the core file for a 
perl CGI script run by Apache, but the callstack looks reasonable so I'm 
including it.

---%<---
/tmp> gdb perl core.9964
GNU gdb (GDB) 7.0.1-debian
...

warning: core file may not match specified executable file.

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/libperl.so.5.10...Reading symbols from 
/usr/lib/debug/usr/lib/libperl.so.5.10.1...done.
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libperl.so.5.10
...
Core was generated by `/usr/share/apt-cacher/apt-cacher.pl [cgi]        '.
Program terminated with signal 11, Segmentation fault.
#0  Perl_csighandler (sig=15, sip=<value optimized out>, uap=<value optimized 
out>) at mg.c:1372
1372    mg.c: No such file or directory.
        in mg.c
(gdb) where
#0  Perl_csighandler (sig=15, sip=<value optimized out>, uap=<value optimized 
out>) at mg.c:1372
#1  <signal handler called>
#2  0x00007f9ec27613e4 in do_lookup_x (new_hash=1842243024, 
old_hash=0x7fffc4fe0508, ref=<value optimized out>,
    result=<value optimized out>, scope=<value optimized out>, i=5, flags=1, 
skip=0x0, undef_map=0x2215b50) at dl-lookup.c:241
#3  0x00007f9ec27617e2 in _dl_lookup_symbol_x (undef_name=<value optimized 
out>, undef_map=0x2215b50, ref=0x7fffc4fe0568,
    symbol_scope=<value optimized out>, version=0x2200468, type_class=<value 
optimized out>, flags=1, skip_map=0x0) at dl-lookup.c:721
#4  0x00007f9ec2765352 in _dl_fixup (l=<value optimized out>, reloc_arg=<value 
optimized out>) at ../elf/dl-runtime.c:118
#5  0x00007f9ec276b395 in _dl_runtime_resolve () at 
../sysdeps/x86_64/dl-trampoline.S:41
#6  0x00007f9ebf021d86 in ?? () from /lib/libkeyutils.so.1
#7  0x0000000000000029 in ?? ()
#8  0x0000000000000000 in ?? ()
--->%---

Regards,
Markus Schöpflin

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-cacher depends on:
ii  ed                            1.4-3      The classic UNIX line editor
ii  libdigest-sha1-perl           2.13-1     NIST SHA-1 message digest algorith
ii  libfilesys-diskspace-perl     0.05-13    fetch filesystem size and usage in
ii  libfreezethaw-perl            0.5001-1   module to serialize and deserializ
pn  libio-compress-bzip2-perl     <none>     (no description available)
ii  libio-interface-perl          1.05-1     socket methods to get/set interfac
ii  libwww-curl-perl              4.12-1     Perl bindings to libcurl
ii  libwww-perl                   5.836-1    Perl HTTP/WWW client/server librar
ii  perl [libio-compress-zlib-per 5.10.1-16  Larry Wall's Practical Extraction 

Versions of packages apt-cacher recommends:
ii  libberkeleydb-perl       0.42-1~squeeze1 use Berkeley DB 4 databases from P

Versions of packages apt-cacher suggests:
pn  libio-socket-inet6-perl       <none>     (no description available)

-- Configuration Files:
/etc/apt-cacher/apache.conf changed:
RedirectMatch permanent /apt-cacher-debian/([^/]*ubuntu[^/]*/.*) /apt-cacher/$1
RedirectMatch permanent /apt-cacher/([^/]*debian[^/]*/.*) /apt-cacher-debian/$1
Alias /apt-cacher-debian /usr/share/apt-cacher/apt-cacher_debian.pl
Alias /apt-cacher /usr/share/apt-cacher/apt-cacher.pl
<DirectoryMatch /usr/share/apt-cacher/>
        Options ExecCGI
        AddHandler cgi-script .pl
        AllowOverride None
        order allow,deny
        allow from all
</DirectoryMatch>

/etc/apt-cacher/apt-cacher.conf changed:
cache_dir=/var/cache/apt-cacher
admin_email=r...@localhost
daemon_port=3142
group=www-data
user=www-data
allowed_hosts=*
denied_hosts=<deleted>
allowed_hosts_6=fec0::/16
denied_hosts_6=
generate_reports=1
clean_cache=1
offline_mode=0
logdir=/var/log/apt-cacher
expire_hours=0
http_proxy=<deleted>
use_proxy=1
http_proxy_auth=<deleted>
use_proxy_auth=1
limit=300k
debug=0
checksum=0

/etc/cron.daily/apt-cacher changed:
if [ ! -x /usr/share/apt-cacher/apt-cacher.pl ]; then
  exit 0
fi
ulimit -c unlimited
/usr/share/apt-cacher/apt-cacher-report.pl
/usr/share/apt-cacher/apt-cacher-report.pl -c 
/etc/apt-cacher/apt-cacher_debian.conf
/usr/share/apt-cacher/apt-cacher-cleanup.pl
/usr/share/apt-cacher/apt-cacher-cleanup.pl -c 
/etc/apt-cacher/apt-cacher_debian.conf


-- 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

Reply via email to