Package: apt-cacher-ng
Version: 0.7.26-1
Severity: normal

Dear Maintainer,

When I was trying to import packages, the daemon kept crashing
unexpectedly without logging any useful messages.  After some debugging,
I found that the hard disk had some bad sectors and was resulting in
some short reads.  I have fixed the problem with the hard drive, and all
is working as expected again, but I think apt-cacher-ng should handle
this situation more gracefully.  At the very least, it should output
some meaningful message before exiting.

>From my debugging and according the mmap() man page, I can tell you
that the daemon crashes because it uses memory-mapped I/O to read the
packages, but fails to handle the SIGBUS signal, in case of bad reads.

Specifically, the memory access violation occurred in the md5_append()
function, and the call stack was something like this:

    md5_append()
    csumMD5::add()
    filereader::GetChecksum()
    filereader::GetChecksum() [static]
    tFingerPrint::ScanFile()
    pkgimport::ProcessRegular()

Thanks,

Carlos Maddela

-- Package-specific info:

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-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-cacher-ng depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.53
ii  dpkg                   1.17.10
ii  init-system-helpers    1.19
ii  libbz2-1.0             1.0.6-5
ii  libc6                  2.19-3
ii  libgcc1                1:4.9.0-7
ii  liblzma5               5.1.1alpha+20120614-2
ii  libssl1.0.0            1.0.1h-3
ii  libstdc++6             4.9.0-7
ii  libwrap0               7.6.q-25
ii  zlib1g                 1:1.2.8.dfsg-1

Versions of packages apt-cacher-ng recommends:
ii  avahi-daemon  0.6.31-4
ii  ed            1.10-2

Versions of packages apt-cacher-ng suggests:
ii  curl      7.37.0-1+b1
ii  doc-base  0.10.5
ii  libfuse2  2.9.3-12
ii  wget      1.15-1+b1

-- Configuration Files:
/etc/apt-cacher-ng/acng.conf changed [not included]
/etc/apt-cacher-ng/security.conf [Errno 13] Permission denied: 
u'/etc/apt-cacher-ng/security.conf'

-- debconf information excluded


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