Bug#703427: segfault in rred
Package: apt
Version: 0.9.7.8
Severity: important
Architecture: i386
Hi,
apt-get update segfaults for me:
} root@buran:~# apt-get update
} Hit http://ftp.it.debian.org wheezy Release.gpg
} Hit http://ftp.it.debian.org wheezy-updates Release.gpg
} Hit http://ftp.it.debian.org wheezy Release
} Hit http://ftp.it.debian.org wheezy-updates Release
} Hit http://ftp.it.debian.org wheezy/main i386 Packages/DiffIndex
} Hit http://security.debian.org wheezy/updates Release.gpg
} Hit http://deb.torproject.org wheezy Release.gpg
} Hit http://deb.torproject.org experimental-wheezy Release.gpg
} Hit http://ftp.it.debian.org wheezy/main Translation-en/DiffIndex
} Hit http://security.debian.org wheezy/updates Release
} Hit http://deb.torproject.org wheezy Release
} Hit http://ftp.it.debian.org wheezy-updates/main i386 Packages
} Get:1 http://ftp.it.debian.org wheezy/main 2013-03-19-0212.19.pdiff [179 B]
} Get:2 http://ftp.it.debian.org wheezy/main 2013-03-19-0212.19.pdiff [179 B]
} E: Method rred has died unexpectedly!
} E: Sub-process rred received a segmentation fault.
] root@buran:~# gdb /usr/lib/apt/methods/rred core
....
] warning: Can't read pathname for load map: Input/output error.
] Core was generated by `/usr/lib/apt/methods/rred'.
] Program terminated with signal 11, Segmentation fault.
] #0 0xb76586c6 in FileFd::Read(void*, unsigned long long, unsigned long long*) () from /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12
] (gdb) bt
] #0 0xb76586c6 in FileFd::Read(void*, unsigned long long, unsigned long long*) () from /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12
] #1 0xb7642301 in MMap::Map(FileFd&) () from /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12
] #2 0xb76424e6 in MMap::MMap(FileFd&, unsigned long) () from /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12
] #3 0x0804ab29 in ?? ()
] #4 0x0804bb8f in ?? ()
] #5 0xb76966d1 in pkgAcqMethod::Run(bool) () from /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12
] #6 0x08049f9b in ?? ()
] #7 0xb7393e46 in __libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
] #8 0x0804a021 in ?? ()
] (gdb)
It probably shouldn't segfault.
> root@buran:/var/lib/apt/lists# ls -l ftp.it.debian.org_debian_dists_wheezy_main_i18n_Translation-en*
> -rw-r--r-- 1 root root 18541202 Mar 18 02:13 ftp.it.debian.org_debian_dists_wheezy_main_i18n_Translation-en
> -rw-r--r-- 1 root root 7876 Mar 19 02:12 ftp.it.debian.org_debian_dists_wheezy_main_i18n_Translation-en.IndexDiff
> -rw-r--r-- 1 root root 179 Mar 19 02:12 ftp.it.debian.org_debian_dists_wheezy_main_i18n_Translation-en.ed
> root@buran:/var/lib/apt/lists# rm ftp.it.debian.org_debian_dists_wheezy_main_i18n_Translation-en*
> root@buran:/var/lib/apt/lists#
Makes it work again. If needed, I can provide these files.
Cheers,
weasel
--
| .''`. ** Debian **
Peter Palfrader | : :' : The universal
http://www.palfrader.org/ | `. `' Operating System
| `- http://www.debian.org/
Reply to: