apt-get/aptitude crash

Bug #64349 reported by Jonathan
2
Affects Status Importance Assigned to Milestone
Ubuntu
Fix Released
Medium
Michael Vogt

Bug Description

Binary package hint: apt

from one day to another while trying to update, apt-get crashes (as root, same with sudo):

...
open("/var/cache/apt/pkgcache.bin", O_RDWR|O_CREAT|O_TRUNC, 0666) = 7
fcntl64(7, F_SETFD, FD_CLOEXEC) = 0
fchmod(7, 0644) = 0
fstat64(7, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
lseek(7, 16777215, SEEK_SET) = 16777215
write(7, "\0", 1) = 1
fstat64(7, {st_mode=S_IFREG|0644, st_size=16777216, ...}) = 0
mmap2(NULL, 16777216, PROT_READ|PROT_WRITE, MAP_SHARED, 7, 0) = 0xb6b8e000
stat64("/var/cache/apt/srcpkgcache.bin", {st_mode=S_IFREG|0644, st_size=9153875, ...}) = 0
open("/var/cache/apt/srcpkgcache.bin", O_RDONLY) = 8
fcntl64(8, F_SETFD, FD_CLOEXEC) = 0
fstat64(8, {st_mode=S_IFREG|0644, st_size=9153875, ...}) = 0
mmap2(NULL, 9153875, PROT_READ, MAP_SHARED, 8, 0) = 0xb62d3000
stat64("/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_edgy_main_binary-i386_Packages", {st_mode=S_IFREG|0644, st_size=4821346, ...}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 29184 detached

same with aptitude

rename("/root/.aptitude/config.new", "/root/.aptitude/config") = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
access("/root/.terminfo/x/xterm", R_OK) = -1 ENOENT (No such file or directory)
access("/etc/terminfo/x/xterm", R_OK) = -1 ENOENT (No such file or directory)
access("/lib/terminfo/x/xterm", R_OK) = 0
open("/lib/terminfo/x/xterm", O_RDONLY|O_LARGEFILE) = 3
read(3, "\32\1\34\0\35\0\17\0\235\1&\5", 12) = 12
read(3, "xterm|X11 terminal emulator\0", 28) = 28
read(3, "\0\1\0\0\1\0\0\0\1\0\0\0\0\1\1\0\0\0\0\0\0\0\1\0\0\1\0"..., 29) = 29
read(3, "\0", 1) = 1
read(3, "P\0\10\0\30\0\377\377\377\377\377\377\377\377\377\377\377"..., 30) = 30
read(3, "\0\0\4\0\6\0\10\0\31\0\36\0&\0*\0.\0\377\3779\0J\0L\0P"..., 826) = 826
read(3, "\33[Z\0\7\0\r\0\33[%i%p1%d;%p2%dr\0\33[3g\0\33["..., 1318) = 1318
read(3, "", 10) = 0
close(3) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=53, ws_col=158, ws_xpixel=0, ws_ypixel=0}) = 0
brk(0x82ff000) = 0x82ff000
brk(0x8320000) = 0x8320000
brk(0x8341000) = 0x8341000
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
brk(0x8362000) = 0x8362000
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
                                                                               ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
   rt_sigaction(SIGTSTP, NULL, {SIG_DFL}, 8) = 0
                                                rt_sigaction(SIGTSTP, {0xb7e0ddfe, [], SA_RESTART}, NULL, 8) = 0
                                                                                                                rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0
                                                                                                                                                            rt_sigaction(SIGINT, {0xb7e0dd0b, [], SA_RESTART}, NULL, 8) = 0
                                                             rt_sigaction(SIGTERM, NULL, {SIG_DFL}, 8) = 0
                                                                          rt_sigaction(SIGTERM, {0xb7e0dd0b, [], SA_RESTART}, NULL, 8) = 0
            rt_sigaction(SIGWINCH, NULL, {SIG_DFL}, 8) = 0
                                                          rt_sigaction(SIGWINCH, {0xb7e0dce7, [], 0}, NULL, 8) = 0
                                                                                                                  ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
                                      ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
                                                                                                                        ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
                                         ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
                                                                                                                           ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
                                               ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0
                                                                                                                              ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
) = 16 write(1, "\33[?1049h\33[1;53r\33[m\33(B\33[4l\33[?7h\33["..., 37
      ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
                                                                                        ioctl(1, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(2, "Aua! SIGSEGV erhalten, sterbe.."..., 34Aua! SIGSEGV erhalten, sterbe...
) = 34
rt_sigaction(SIGSEGV, {SIG_DFL}, {0x8170430, [SEGV], SA_RESTART}, 8) = 0
tgkill(29235, 29235, SIGSEGV) = 0
sigreturn() = ? (mask now [WINCH])
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 29235 detached

with synaptic
...
stat64("/var/cache/apt/pkgcache.bin", {st_mode=S_IFREG|0644, st_size=16777216, ...}) = 0
open("/var/cache/apt/pkgcache.bin", O_RDONLY) = 9
fcntl64(9, F_SETFD, FD_CLOEXEC) = 0
fstat64(9, {st_mode=S_IFREG|0644, st_size=16777216, ...}) = 0
mmap2(NULL, 16777216, PROT_READ, MAP_SHARED, 9, 0) = 0xb5627000
munmap(0xb5627000, 16777216) = 0
close(9) = 0
unlink("/var/cache/apt/pkgcache.bin") = 0
lstat64("/var/cache/apt/pkgcache.bin", 0xbfd52150) = -1 ENOENT (No such file or directory)
open("/var/cache/apt/pkgcache.bin", O_RDWR|O_CREAT|O_TRUNC, 0666) = 9
fcntl64(9, F_SETFD, FD_CLOEXEC) = 0
fchmod(9, 0644) = 0
fstat64(9, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
lseek(9, 16777215, SEEK_SET) = 16777215
write(9, "\0", 1) = 1
fstat64(9, {st_mode=S_IFREG|0644, st_size=16777216, ...}) = 0
mmap2(NULL, 16777216, PROT_READ|PROT_WRITE, MAP_SHARED, 9, 0) = 0xb5627000
stat64("/var/cache/apt/srcpkgcache.bin", {st_mode=S_IFREG|0644, st_size=9153875, ...}) = 0
open("/var/cache/apt/srcpkgcache.bin", O_RDONLY) = 10
fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
fstat64(10, {st_mode=S_IFREG|0644, st_size=9153875, ...}) = 0
mmap2(NULL, 9153875, PROT_READ, MAP_SHARED, 10, 0) = 0xb4d6c000
stat64("/var/lib/apt/lists/de.archive.ubuntu.com_ubuntu_dists_edgy_main_binary-i386_Packages", {st_mode=S_IFREG|0644, st_size=4821346, ...}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 29280 detached

then i changed my source.list from de.archive... to archive.... but nothing changed (apt-get update)
fstat64(8, {st_mode=S_IFREG|0644, st_size=9153875, ...}) = 0
mmap2(NULL, 9153875, PROT_READ, MAP_SHARED, 8, 0) = 0xb61f7000
stat64("/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_edgy_main_binary-i386_Packages", {st_mode=S_IFREG|0644, st_size=4832238, ...}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 29370 detached

dpkg -i .deb works

Revision history for this message
Jonathan (jonathan00) wrote :

added pkg-list

Revision history for this message
Michael Vogt (mvo) wrote :

This sounds like a duplicate of #61708. Do you use kubuntu/adept sometimes?

Changed in apt:
status: Unconfirmed → Needs Info
Revision history for this message
Michael Vogt (mvo) wrote :

Removing /var/cache/apt/pkgcache.bin and /var/cache/apt/srcpkgcache.bin probably fixes the issue.

Please confirm.

Thanks,
 Michael

Revision history for this message
Jonathan (jonathan00) wrote :

hi,

thanks for your answer. Unfortunately i saw your today answer (email notification doesn't work or my spamfilter...).

But 15min before, i found the command
dpkg --clear-avail

that helped me.

And yes, i use kubuntu/adept

Regards

Jonathan

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for confirming this.

This should be fixed now with the latest apt-index-watcher upload. Please reopen if you experience the problem again.

Cheers,
 Michael

Changed in apt:
assignee: nobody → mvo
importance: Undecided → Medium
status: Needs Info → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.