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

Bug#186366: segmentation fault on any apt-get install-type operation



Package: apt
Version: 0.5.4
Severity: important

After a recent dist-upgrade, which succeeded, subsequent apt-get
install/upgrade/dist-upgrade operations fail with a segmentation fault.

cyclops:/var/cache/apt# apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
The following NEW packages will be installed:
  python-htmlgen python2.2-htmlgen 
15 packages upgraded, 2 newly installed, 0 to remove and 0  not upgraded.
Need to get 8246kB of archives. After unpacking 319kB will be used.
Do you want to continue? [Y/n] 
Get:1 http://192.168.1.16 sid/main debconf 1.2.34 [139kB]
Segmentation fault (core dumped)

gdb backtrace on the core file shows:

(gdb) bt
#0  0x40083225 in pkgAcquireStatus::Pulse () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#1  0x08064237 in strcpy ()
#2  0x4008181a in pkgAcquire::Run () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#3  0x08051b9c in strcpy ()
#4  0x0805a9a1 in strcpy ()
#5  0x4005f31a in CommandLine::DispatchArg () from /usr/lib/libapt-pkg-libc6.2-3-2.so.3.2
#6  0x08063610 in strcpy ()
#7  0x40175a51 in __libc_start_main () from /lib/libc.so.6


strace of the program ends in:

select(14, [13], [], NULL, {0, 500000}) = 1 (in [13], left {0, 500000})
read(13, "102 Status\nURI: http://192.168.1";..., 4000) = 271
select(14, [13], [], NULL, {0, 500000}) = 1 (in [13], left {0, 500000})
read(13, "102 Status\nURI: http://192.168.1";..., 4000) = 118
select(14, [13], [], NULL, {0, 500000}) = 1 (in [13], left {0, 390000})
read(13, "200 URI Start\nURI: http://192.16";..., 4000) = 153
Get:1 http://192.168.1.16 sid/main debconf 1.2.34 [139kB]
) = 72
stat64("/var/cache/apt/archives/partial/debconf_1.2.34_all.deb", {st_mode=S_IFREG|0644, st_size=116176, ...}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

As suggested in other bug reports, I renamed /var/cache/apt/*.bin to
/var/cache/apt/*.bin.bak and reran the above commands and there was no
change.  (It still segfaulted.)


Eric



Reply to: