Aptitude crashes when fetching repository package list

Bug #191094 reported by xavierzenith on 2008-02-11
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
aptitude (Ubuntu)
Undecided
Unassigned

Bug Description

Kubuntu 7.10; KDE 3;
aptitude 0.4.6.1 compiled at Sep 15 2007 09:17:56
Compiler: g++ 4.1.3 20070831 (prerelease) (Ubuntu 4.1.2-16ubuntu1)

NCurses version: 5.6
libsigc++ version: 2.0.17

aptitude crashes when attempting to update repository package lists.

EDIT: Very random. Reboot sometime helps, but doesn't help in other instances. Also, this only happens to aptitude when used in Kuake terminal. aptitude functions normally when executed in Konsole.

Apt-get does not seem to be effected, just aptitude.

===
Here's the error and backtrace:

~$ sudo aptitude update
Ign cdrom://Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.1) gutsy/main Translation-en_US
Ign cdrom://Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.1) gutsy/restricted Translation-en_US
Get:1 http://packages.medibuntu.org gutsy Release.gpg [189B]
Ign http://packages.medibuntu.org gutsy/free Translation-en_US
Ign http://packages.medibuntu.org gutsy/non-free Translation-en_US
Hit http://packages.medibuntu.org gutsy Release
Ign http://packages.medibuntu.org gutsy/free Packages
Ign http://packages.medibuntu.org gutsy/non-free Packages
Hit http://packages.medibuntu.org gutsy/free Packages
Hit http://packages.medibuntu.org gutsy/non-free Packages
Get:2 http://archive.canonical.com gutsy Release.gpg [191B]
Ign http://archive.canonical.com gutsy/partner Translation-en_US
Hit http://archive.canonical.com gutsy Release
Hit http://archive.canonical.com gutsy/partner Packages
Hit http://archive.canonical.com gutsy/partner Sources
99% [Connecting to archive.ubuntu.com] [Connecting to security.ubuntu.com] 1603B/s 0s*** glibc detected *** aptitude: double free or corruption (!prev): 0x082f6e38 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7c70d65]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7c74800]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7e38d81]
aptitude[0x820ec46]
aptitude[0x820cf0e]
aptitude[0x815651b]
aptitude[0x81543fb]
aptitude[0x8053f69]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7c1d050]
aptitude[0x80523d1]
======= Memory map: ========
08048000-082e9000 r-xp 00000000 08:02 1226469 /usr/bin/aptitude
082e9000-082eb000 rw-p 002a0000 08:02 1226469 /usr/bin/aptitude
082eb000-08351000 rw-p 082eb000 00:00 0 [heap]
b7900000-b7921000 rw-p b7900000 00:00 0
b7921000-b7a00000 ---p b7921000 00:00 0
b7adc000-b7add000 rw-p b7adc000 00:00 0
b7add000-b7b1c000 r--p 00000000 08:02 1308633 /usr/lib/locale/en_US.utf8/LC_CTYPE
b7b1c000-b7b1d000 r--p 00000000 08:02 1308638 /usr/lib/locale/en_US.utf8/LC_NUMERIC
b7b1d000-b7bfd000 r--p 00000000 08:02 1308632 /usr/lib/locale/en_US.utf8/LC_COLLATE
b7bfd000-b7bfe000 rw-p b7bfd000 00:00 0
b7bfe000-b7c00000 r-xp 00000000 08:02 1586196 /lib/tls/i686/cmov/libdl-2.6.1.so
b7c00000-b7c02000 rw-p 00001000 08:02 1586196 /lib/tls/i686/cmov/libdl-2.6.1.so
b7c02000-b7c04000 r-xp 00000000 08:02 1586283 /lib/tls/i686/cmov/libutil-2.6.1.so
b7c04000-b7c06000 rw-p 00001000 08:02 1586283 /lib/tls/i686/cmov/libutil-2.6.1.so
b7c06000-b7c07000 rw-p b7c06000 00:00 0
b7c07000-b7d4b000 r-xp 00000000 08:02 1586171 /lib/tls/i686/cmov/libc-2.6.1.so
b7d4b000-b7d4c000 r--p 00143000 08:02 1586171 /lib/tls/i686/cmov/libc-2.6.1.so
b7d4c000-b7d4e000 rw-p 00144000 08:02 1586171 /lib/tls/i686/cmov/libc-2.6.1.so
b7d4e000-b7d51000 rw-p b7d4e000 00:00 0
b7d51000-b7d5b000 r-xp 00000000 08:02 1586211 /lib/libgcc_s.so.1
b7d5b000-b7d5c000 rw-p 0000a000 08:02 1586211 /lib/libgcc_s.so.1
b7d5c000-b7d7f000 r-xp 00000000 08:02 1586203 /lib/tls/i686/cmov/libm-2.6.1.so
b7d7f000-b7d81000 rw-p 00023000 08:02 1586203 /lib/tls/i686/cmov/libm-2.6.1.so
b7d81000-b7e69000 r-xp 00000000 08:02 1228908 /usr/lib/libstdc++.so.6.0.9
b7e69000-b7e6c000 r--p 000e8000 08:02 1228908 /usr/lib/libstdc++.so.6.0.9
b7e6c000-b7e6e000 rw-p 000eb000 08:02 1228908 /usr/lib/libstdc++.so.6.0.9
b7e6e000-b7e74000 rw-p b7e6e000 00:00 0
b7e74000-b7e88000 r-xp 00000000 08:02 1586256 /lib/tls/i686/cmov/libpthread-2.6.1.so
b7e88000-b7e8a000 rw-p 00013000 08:02 1586256 /lib/tls/i686/cmov/libpthread-2.6.1.so
b7e8a000-b7e8c000 rw-p b7e8a000 00:00 0
b7e8c000-b7e91000 r-xp 00000000 08:02 1228881 /usr/lib/libsigc-2.0.so.0.0.0
b7e91000-b7e92000 rw-p 00004000 08:02 1228881 /usr/lib/libsigc-2.0.so.0.0.0
b7e92000-b7e93000 rw-p b7e92000 00:00 0
b7e93000-b7eda000 r-xp 00000000 08:02 1586225 /lib/libncursesw.so.5.6
b7eda000-b7ee2000 rw-p 00046000 08:02 1586225 /lib/libncursesw.so.5.6
b7ee2000-b7fae000 r-xp 00000000 08:02 1228107 /usr/lib/libapt-pkg-libc6.6-6.so.4.5.0
b7fae000-b7fb1000 rw-p 000cb000 08:02 1228107 /usr/lib/libapt-pkg-libc6.6-6.so.4.5.0
b7fb1000-b7fb2000 r--p 00000000 08:02 1308641 /usr/lib/locale/en_US.utf8/LC_TIME
b7fb2000-b7fb3000 r--p 00000000 08:02 1308636 /usr/lib/locale/en_US.utf8/LC_MONETARY
b7fb3000-b7fb4000 r--p 00000000 08:02 1308642 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b7fb4000-b7fb5000 r--p 00000000 08:02 1308639 /usr/lib/locale/en_US.utf8/LC_PAPER
b7fb5000-b7fb6000 r--p 00000000 08:02 1308637 /usr/lib/locale/en_US.utf8/LC_NAME
b7fb6000-b7fb7000 r--p 00000000 08:02 1308631 /usr/lib/locale/en_US.utf8/LC_ADDRESS
b7fb7000-b7fb8000 r--p 00000000 08:02 1308640 /usr/lib/locale/en_US.utf8/LC_TELEPHONE
b7fb8000-b7fb9000 r--p 00000000 08:02 1308635 /usr/lib/locale/en_US.utf8/LC_MEASUREMENT
b7fb9000-b7fc0000 r--s 00000000 08:02 1226531 /usr/lib/gconv/gconv-modules.cache
b7fc0000-b7fc1000 r--p 00000000 08:02 1308634 /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION
b7fc1000-b7fc3000 rw-p b7fc1000 00:00 0
b7fc3000-b7fdd000 r-xp 00000000 08:02 1586212 Aborted (core dumped)
~$
====

Xavier

description: updated
description: updated
ironstorm (ironstorm-gmail) wrote :
Download full text (9.1 KiB)

Happened to me also...

I've been seeing aptitude download a bit then pause, I suspect my router is the culprit for that...

ged@quadcore:~/workspace/ctest$ aptitude update
Hit http://dl.google.com testing Release.gpg
Ign http://dl.google.com testing/non-free Translation-en_CA
Hit http://dl.google.com testing Release
Hit http://dl.google.com testing/non-free Packages
Get:1 http://mirrors.ccs.neu.edu intrepid Release.gpg [189B]
Ign http://mirrors.ccs.neu.edu intrepid/main Translation-en_CA
Ign http://mirrors.ccs.neu.edu intrepid/universe Translation-en_CA
Get:2 http://mirrors.ccs.neu.edu intrepid/restricted Translation-en_CA [3750B]
Ign http://mirrors.ccs.neu.edu intrepid/multiverse Translation-en_CA
Get:3 http://mirrors.ccs.neu.edu intrepid Release [65.9kB]
Ign http://ppa.launchpad.net intrepid Release.gpg
Ign http://ppa.launchpad.net intrepid/main Translation-en_CA
Get:4 http://ppa.launchpad.net intrepid Release [27.6kB]
Hit http://wine.budgetdedicated.com intrepid Release.gpg
Ign http://wine.budgetdedicated.com intrepid/main Translation-en_CA
Get:5 http://mirrors.ccs.neu.edu intrepid/main Packages [1254kB]
Ign http://ppa.launchpad.net int...

Read more...

ironstorm (ironstorm-gmail) wrote :

It would seem part of my problem is that my terminal has too many columns... A few months back I got a 30" monitor, when one maximizes the terminal and does "echo ${COLUMNS}" the result is "423" ... rows are around 113 or 114

At this width, when I do "aptitude install" with some large package, aptitude freezes as soon as the "[speed/sec]" is shown on the right side of the terminal.

When I reduce the size of the terminal down to a smaller width/height, I do not experience the same freeze ups... I suspect the freeze ups eventually crash out...

Hugo Alvarado (hugo102) wrote :

I had the same problem with aptitude:

97% [Waiting for headers] [Waiting for headers] [Waiting for headers] [Waiting for headers] [Waiting for headers] [Waiting for headers] [Waiting for headers] [Waiting for headers] [Waiting for headers] 188B/s 0s*** glibc detected *** aptitude: double free or corruption (out): 0x0a728cc8 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb79c6604]
/lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb79c85b6]

And it was because of I had two monitors at the same time, and the terminal was as wide as both of them, afer I resized the terminal to normal (only in one monitor) I was able to finish the update successfully.

Martin Majlis (martin-majlis) wrote :
Download full text (6.0 KiB)

I confirm this bug - crashing is based on terminal size.

Terminal size:
24 x 364 => Segmentation fault
24 x 363 => Ok

23 x 344 => Segmentation fault
24 x 344 => Sgmentation fault
25 x 344 => Segmentation faul
25 x 343 => Ok
24 x 343 => Ok
23 x 343 => Ok

echo ${LINES} ${COLUMNS}; sudo aptitude update
24 344
Hit http://us.archive.ubuntu.com jaunty Release.gpg
Hit http://us.archive.ubuntu.com jaunty/main Translation-en_GB
Hit http://us.archive.ubuntu.com jaunty/restricted Translation-en_GB
Hit http://security.ubuntu.com jaunty-security Release.gpg
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_GB
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_GB
Hit http://us.archive.ubuntu.com jaunty/universe Translation-en_GB
Hit http://us.archive.ubuntu.com jaunty/multiverse Translation-en_GB
Hit http://us.archive.ubuntu.com jaunty-updates Release.gpg
Ign http://us.archive.ubuntu.com jaunty-updates/universe Translation-en_GB
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Translation-en_GB
Hit http://us.archive.ubuntu.com jaunty Release
Hit http://security.ubuntu.com jaunty-security Release
Ign http://download.skype.com stable Release.gpg
Ign http://download.skype.com stable/non-free Translation-en_GB
Hit http://us.archive.ubuntu.com jaunty-updates Release
Ign http://download.skype.com stable Release
Hit http://us.archive.ubuntu.com jaunty/main Packages
Hit http://us.archive.ubuntu.com jaunty/restricted Packages
Hit http://us.archive.ubuntu.com jaunty/universe Packages
Hit http://us.archive.ubuntu.com jaunty/multiverse Packages
Hit http://security.ubuntu.com jaunty-security/universe Packages
Hit http://us.archive.ubuntu.com jaunty-updates/universe Packages
Hit http://security.ubuntu.com jaunty-security/multiverse Packages
Hit http://download.skype.com stable/non-free Packages
Hit http://us.archive.ubuntu.com jaunty-updates/multiverse Packages
*** glibc detected *** aptitude: free(): invalid pointer: 0x0b265d38 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7aaa604]
/lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb7aac5b6]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7c8c231]
/usr/lib/libsigc-2.0.so.0(_ZN4sigc9slot_baseD1Ev+0x3f)[0xb7f7c22f]
/usr/lib/libsigc-2.0.so.0(_ZNSt4listIN4sigc9slot_baseESaIS1_EE5eraseESt14_List_iteratorIS1_E+0x37)[0xb7f7b5c7]
/usr/lib/libsigc-2.0.so.0(_ZN4sigc8internal11signal_impl5sweepEv+0x58)[0xb7f7b218]
/usr/lib/libsigc-2.0.so.0(_ZN4sigc8internal11signal_impl6notifyEPv+0x30)[0xb7f7b250]
/usr/lib/libsigc-2.0.so.0(_ZN4sigc8internal8slot_rep10disconnectEv+0x27)[0xb7f7bed7]
/usr/lib/libsigc-2.0.so.0(_ZN4sigc8internal8slot_rep6notifyEPv+0x35)[0xb7f7bf25]
/usr/lib/libsigc-2.0.so.0(_ZN4sigc8internal23trackable_callback_listD1Ev+0x31)[0xb7f7b811]
/usr/lib/libsigc-2.0.so.0(_ZN4sigc9trackable16notify_callbacksEv+0x2b)[0xb7f7b89b]
/usr/lib/libsigc-2.0.so.0(_ZN4sigc9trackableD2Ev+0x1d)[0xb7f7b90d]
aptitude[0x816e17b]
aptitude[0x818cd6d]
aptitude[0x818a5ee]
aptitude[0x814e76e]
aptitud...

Read more...

Changed in aptitude (Ubuntu):
status: New → Confirmed
Henrik (neu242) wrote :

This bug is related to bug #515525, since the same workaround works there. Another workaround (from that issue) is to run aptitude with -q.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers