aptitude: Segmentation fault

Bug #28139 reported by Debian Bug Importer
8
Affects Status Importance Assigned to Milestone
aptitude (Debian)
Fix Released
Unknown
aptitude (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

Automatically imported from Debian bug report #346380 http://bugs.debian.org/346380

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Sat, 07 Jan 2006 16:00:14 +0100
From: Hilko Bengen <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: aptitude: Segmentation fault

Package: aptitude
Version: 0.4.1-1
Severity: grave

When trying to update the packages list (pressing "u" in the GUI)
today, I got this warning:

,----
| W: GPG error: http://ftp.de.debian.org sid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010908312D230C5F
| W: GPG error: http://ftp.de.debian.org experimental Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 010908312D230C5F
`----

Nevertheless, I started the upgrade ("U", "g" in the GUI).

aptitude told me:
  "Some packages were broken and have been fixed:...".

I didn't change anything in the list presented to me and told it to
start the upgrade ("g").

aptitude told me:
  "WARNING: untrusted version of the following packages will be
   installed!..." with a list of packages.

I selected "Abort Installation", exited the Preview buffer ("q") and
tried to update the package list again. aptitude exited with a
segmentation fault:

,----
| Ouch! Got SIGSEGV, dying..
| Segmentation fault (core dumped)
`----

I saw very little in the GUI just before the crash, but it appeared as
if the download of the first file had been started.

I have uploaded the core files (core.23303, core.23498) to
<http://www.hilluzination.de/stuff/debian/aptitude/>.

Cheers,
-Hilko

,----[ /etc/apt/sources.list ]
|
| # deb http://ftp.de.debian.org/debian/ sarge main contrib non-free
| deb http://ftp.de.debian.org/debian/ sid main contrib non-free
| deb-src http://ftp.de.debian.org/debian/ sid main contrib non-free
|
| # deb http://security.debian.org/ sarge/updates main
|
| deb http://ftp.de.debian.org/debian/ experimental main contrib non-free
| deb-src http://ftp.de.debian.org/debian/ experimental main contrib non-free
|
| #deb ftp://ftp.nerim.net/debian-marillat/ unstable main
| #deb-src ftp://ftp.nerim.net/debian-marillat/ unstable main
|
| #deb-src http://eric.lavar.de/comp/linux/debian/ experimental/
|
|
`----

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages aptitude depends on:
ii apt [libapt-pkg-libc6.3-6-3.1 0.6.43 Advanced front-end for dpkg
ii libc6 2.3.5-9 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.2-5 GCC support library
ii libncursesw5 5.5-1 Shared libraries for terminal hand
ii libsigc++-2.0-0c2a 2.0.16-2 type-safe Signal Framework for C++
ii libstdc++6 4.0.2-5 The GNU Standard C++ Library v3

Versions of packages aptitude recommends:
ii aptitude-doc-en [aptitude-doc 0.4.1-1 English manual for aptitude, a ter

-- no debconf information

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 07 Jan 2006 16:06:06 +0100
From: Hilko Bengen <email address hidden>
To: <email address hidden>
Cc: Debian Bug Tracking System <email address hidden>
Subject: Re: Bug#346380: aptitude: Segmentation fault

I have been able to reproduce this bug in a simpler setting. Calling
aptitude with an up-to-date package list, I immediately started the
upgrade ("U", "g"), exited the Preview buffer ("q"), and updated the
package lists again ("u"). Segmentation fault.

I have uploaded the resulting core file core.23873 to the same place.

Cheers,
-Hilko

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 07 Jan 2006 16:28:17 +0100
From: Hilko Bengen <email address hidden>
To: <email address hidden>
Subject: Re: Bug#346380: aptitude: Segmentation fault

I have been able to reproduce this bug in a simpler setting. Calling
aptitude with an up-to-date package list, I immediately started the
upgrade ("U", "g"), exited the Preview buffer ("q"), and updated the
package lists again ("u"). Segmentation fault.

I have uploaded the resulting core file core.23873 to the same place.

Cheers,
-Hilko

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 7 Jan 2006 10:57:00 -0800
From: Daniel Burrows <email address hidden>
To: Hilko Bengen <email address hidden>, <email address hidden>
Subject: Re: Bug#346380: aptitude: Segmentation fault

--+pHx0qQiF2pBVqBT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jan 07, 2006 at 04:06:06PM +0100, Hilko Bengen <email address hidden> =
was heard to say:
> I have been able to reproduce this bug in a simpler setting. Calling
> aptitude with an up-to-date package list, I immediately started the
> upgrade ("U", "g"), exited the Preview buffer ("q"), and updated the
> package lists again ("u"). Segmentation fault.
>=20
> I have uploaded the resulting core file core.23873 to the same place.

                            Forbidden =20
                                                                =20
   You don't have permission to access =20
   /stuff/debian/aptitude/core.23873 on this server.

    Apache/1.3.33 Server at www.hilluzination.de Port 80

--+pHx0qQiF2pBVqBT
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDwA78ch6xsM7kSXgRAupiAJ4uC7D4ncorsLiSNVHzN8vZt/TgDACg1Rrm
07ojWi+RAhDVYxCJXLeWTdw=
=uKee
-----END PGP SIGNATURE-----

--+pHx0qQiF2pBVqBT--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 7 Jan 2006 11:30:10 -0800
From: Daniel Burrows <email address hidden>
To: Hilko Bengen <email address hidden>, <email address hidden>
Subject: Re: Bug#346380: aptitude: Segmentation fault

--fUYQa+Pmc3FrFX/N
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

  I can't reproduce this at all.

  Daniel

--fUYQa+Pmc3FrFX/N
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDwBbCch6xsM7kSXgRAnOTAJ46Tv341r/qecPTMtM7HXbVCazRzwCg4CT+
/RIx6Nhp7C6UD/WW83o4uxA=
=eT34
-----END PGP SIGNATURE-----

--fUYQa+Pmc3FrFX/N--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 7 Jan 2006 11:29:19 -0800
From: Daniel Burrows <email address hidden>
To: <email address hidden>
Subject: Fix severity

severity 346380 normal

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

I'm unable to reproduce this problem, the steps work fine for me.

Changed in aptitude:
status: Unconfirmed → Needs Info
Changed in aptitude:
status: Unconfirmed → Fix Released
Revision history for this message
totya (totya) wrote :

Today I downloaded the kubuntu edgy alternate iso (kubuntu-edgy-20060811). I installed server (so I choosed the install-server menu instead of the kubuntu-desktop) on my machine. The installation went fine.

After I finished the installation, I replace my sources.list file with this one:

# main restricted universe multiverse
deb http://de.archive.ubuntu.com/ubuntu edgy main restricted universe multiverse
deb-src http://de.archive.ubuntu.com/ubuntu edgy main restricted universe multiverse

# updates main restricted universe multiverse
deb http://de.archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse
deb-src http://de.archive.ubuntu.com/ubuntu edgy-updates main restricted universe multiverse

# security main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted universe multiverse

I run:

apt-get update
aptitude install openssh
aptitude install ssh

This part went fine too.

After fire up aptitude in ncourse mode, to change the dependecy handling. I switched off the dependecy handling/Remove unused packages automatically.

After I typed:

# aptitude install kubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
Segmentation fault

So I also encountered this problem.

However check this out:

root@penge:~# aptitude purge ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be REMOVED:
  ssh{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 32.8kB will be freed.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
(Reading database ... 15927 files and directories currently installed.)
Removing ssh ...
root@penge:~# aptitude install kubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
Segmentation fault
root@penge:~# aptitude install ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following NEW packages will be installed:
  ssh
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1056B of archives. After unpacking 32.8kB will be used.
Writing extended state information... Done
Selecting previously deselected package ssh.
(Reading database ... 15926 files and directories currently installed.)
Unpacking ssh (from .../ssh_1%3a4.3p2-2ubuntu4_all.deb) ...
Setting up ssh (4.3p2-2ubuntu4) ...

Strange.

Revision history for this message
totya (totya) wrote :

You can find the strace output in the attachment.

I created the trace output this way:

strace -o /tmp/aptitude.trace aptitude install kubuntu-desktop

root@penge:/tmp# dpkg -l | grep aptitude
ii aptitude 0.4.1-1.1ubuntu2 terminal-based apt frontend

totya

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

I close this bugreport because:
a) the imported debian bug is fixed
b) the other segfault is fixed with the patch from Bug #55900

Changed in aptitude:
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

Remote bug watches

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